<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
</head>
<body>
<div class="moz-cite-prefix">On 1/8/2023 11:25 AM, Donald Brett via
mythtv-users wrote:<br>
</div>
<blockquote type="cite"
cite="mid:6bc12d86-7359-dce0-cc6b-7ecccd36dc44@yahoo.com"> Just
finished building an new box with Ubuntu-Mate-22.04, installed
latest mythtv (frontend/backend - fixes/32 (v32.0+fixes)), and
migrated mythconverg from an Ubuntu-Mate-20.04 box. Everything
went pretty well, except a couple of items.<br>
<br>
After installing mythweb, I discovered that php wasn't installed,
so installed it, but getting this error.<br>
<br>
<b style="color: rgb(0, 0, 0); font-family: "Times New
Roman"; font-size: medium; font-style: normal;
font-variant-ligatures: normal; font-variant-caps: normal;
letter-spacing: normal; orphans: 2; text-align: start;
text-indent: 0px; text-transform: none; white-space: normal;
widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px;
text-decoration-thickness: initial; text-decoration-style:
initial; text-decoration-color: initial;">Fatal error</b><span
style="color: rgb(0, 0, 0); font-family: "Times New
Roman"; font-size: medium; font-style: normal;
font-variant-ligatures: normal; font-variant-caps: normal;
font-weight: 400; letter-spacing: normal; orphans: 2;
text-align: start; text-indent: 0px; text-transform: none;
white-space: normal; widows: 2; word-spacing: 0px;
-webkit-text-stroke-width: 0px; text-decoration-thickness:
initial; text-decoration-style: initial; text-decoration-color:
initial; display: inline !important; float: none;">: Uncaught
Error: Undefined constant "modules_path" in
/usr/share/mythtv/mythweb/includes/class_autoload.php:19 Stack
trace: #0 /usr/share/mythtv/mythweb/classes/Translate.php(16):
autoload() #1
/usr/share/mythtv/mythweb/includes/class_autoload.php(18):
include_once('...') #2 [internal function]: autoload() #3
/usr/share/mythtv/mythweb/includes/errors.php(116):
class_exists() #4 [internal function]: error_handler() #5
/usr/share/mythtv/mythweb/includes/php_version_check.php(20):
trigger_error() #6
/usr/share/mythtv/mythweb/includes/init.php(33):
require_once('...') #7
/usr/share/mythtv/mythweb/mythweb.php(20): require_once('...')
#8 {main} thrown in<span> </span></span><b style="color: rgb(0,
0, 0); font-family: "Times New Roman"; font-size:
medium; font-style: normal; font-variant-ligatures: normal;
font-variant-caps: normal; letter-spacing: normal; orphans: 2;
text-align: start; text-indent: 0px; text-transform: none;
white-space: normal; widows: 2; word-spacing: 0px;
-webkit-text-stroke-width: 0px; text-decoration-thickness:
initial; text-decoration-style: initial; text-decoration-color:
initial;">/usr/share/mythtv/mythweb/includes/class_autoload.php</b><span
style="color: rgb(0, 0, 0); font-family: "Times New
Roman"; font-size: medium; font-style: normal;
font-variant-ligatures: normal; font-variant-caps: normal;
font-weight: 400; letter-spacing: normal; orphans: 2;
text-align: start; text-indent: 0px; text-transform: none;
white-space: normal; widows: 2; word-spacing: 0px;
-webkit-text-stroke-width: 0px; text-decoration-thickness:
initial; text-decoration-style: initial; text-decoration-color:
initial; display: inline !important; float: none;"><span> </span>on
line<span> </span></span><b style="color: rgb(0, 0, 0);
font-family: "Times New Roman"; font-size: medium;
font-style: normal; font-variant-ligatures: normal;
font-variant-caps: normal; letter-spacing: normal; orphans: 2;
text-align: start; text-indent: 0px; text-transform: none;
white-space: normal; widows: 2; word-spacing: 0px;
-webkit-text-stroke-width: 0px; text-decoration-thickness:
initial; text-decoration-style: initial; text-decoration-color:
initial;">19</b><br>
<br>
Using Stephen's guidance from an earlier thread:<br>
<br>
<span style="color: rgb(79, 76, 73); font-family: Lato, Arial,
sans-serif; font-size: 14px; font-style: normal;
font-variant-ligatures: normal; font-variant-caps: normal;
font-weight: 400; letter-spacing: normal; orphans: 2;
text-align: start; text-indent: 0px; text-transform: none;
white-space: normal; widows: 2; word-spacing: 0px;
-webkit-text-stroke-width: 0px; background-color: rgb(246, 246,
246); text-decoration-thickness: initial; text-decoration-style:
initial; text-decoration-color: initial; display: inline
!important; float: none;">sudo apt list --installed | grep -i
php</span><br>
libapache2-mod-php8.1/jammy-updates,now 8.1.2-1ubuntu2.9 amd64
[installed,upgradable to: 8.1.14-1+ubuntu22.04.1+deb.sury.org+1]<br>
....and several similar lines.<br>
<br>
sudo a2query -m | grep -i php<br>
php8.1 (enabled by maintainer script)<br>
<br>
<br>
It looks like I have the correct versions, what else should I look
for?<br>
<br>
Don<br>
<br>
<div id="DAB4FAD8-2DD7-40BB-A1B8-4E2AA1F9FDF2"><br>
<table style="border-top: 1px solid #D3D4DE;">
<tbody>
<tr>
<td style="width: 55px; padding-top: 13px;"><a
href="https://www.avast.com/sig-email?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=emailclient"
target="_blank"><img
src="https://s-install.avcdn.net/ipm/preview/icons/icon-envelope-tick-round-orange-animated-no-repeat-v1.gif"
alt="" style="width: 46px; height: 29px;" width="46"
height="29"></a></td>
<td style="width: 470px; padding-top: 12px; color:
#41424e; font-size: 13px; font-family: Arial, Helvetica,
sans-serif; line-height: 18px;">Virus-free.<a
href="https://www.avast.com/sig-email?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=emailclient"
target="_blank" style="color: #4453ea;">www.avast.com</a></td>
</tr>
</tbody>
</table>
<a
href="about:blank?compose#DAB4FAD8-2DD7-40BB-A1B8-4E2AA1F9FDF2"
width="1" height="1"> </a></div>
<br>
<fieldset class="moz-mime-attachment-header"></fieldset>
<pre class="moz-quote-pre" wrap="">_______________________________________________
mythtv-users mailing list
<a class="moz-txt-link-abbreviated moz-txt-link-freetext" href="mailto:mythtv-users@mythtv.org">mythtv-users@mythtv.org</a>
<a class="moz-txt-link-freetext" href="http://lists.mythtv.org/mailman/listinfo/mythtv-users">http://lists.mythtv.org/mailman/listinfo/mythtv-users</a>
<a class="moz-txt-link-freetext" href="http://wiki.mythtv.org/Mailing_List_etiquette">http://wiki.mythtv.org/Mailing_List_etiquette</a>
MythTV Forums: <a class="moz-txt-link-freetext" href="https://forum.mythtv.org">https://forum.mythtv.org</a>
</pre>
</blockquote>
I tried removing mythweb, php, apache, then rebooting. Then
reinstalled apache2, php, and mythweb. Got the same errors when
running mythweb, but slightly different results when checking the
versions:<br>
<br>
don@johnny:~$ sudo apt list --installed | grep -i php<br>
<br>
WARNING: apt does not have a stable CLI interface. Use with caution
in scripts.<br>
<br>
libapache2-mod-php8.1/jammy-updates,now 8.1.2-1ubuntu2.9 amd64
[installed,upgradable to: 8.1.14-2+ubuntu22.04.1+deb.sury.org+1]<br>
libapache2-mod-php8.2/now 8.2.1-1+ubuntu22.04.1+deb.sury.org+1 amd64
[installed,upgradable to: 8.2.1-2+ubuntu22.04.1+deb.sury.org+1]<br>
php-common/jammy,jammy,now 2:92ubuntu1 all [installed,upgradable to:
2:93+ubuntu22.04.1+deb.sury.org+2]<br>
php-mysql/jammy,jammy,now 2:8.2+93+ubuntu22.04.1+deb.sury.org+2 all
[installed,automatic]<br>
php-mythtv/now 2:32.0+fixes.202301051905.e677dd354f~ubuntu22.04.1
all [installed,upgradable to:
2:32.0+fixes.202301091618.e677dd354f~ubuntu22.04.1]<br>
php8.1-cli/jammy-updates,now 8.1.2-1ubuntu2.9 amd64
[installed,upgradable to: 8.1.14-2+ubuntu22.04.1+deb.sury.org+1]<br>
php8.1-common/jammy-updates,now 8.1.2-1ubuntu2.9 amd64
[installed,upgradable to: 8.1.14-2+ubuntu22.04.1+deb.sury.org+1]<br>
php8.1-opcache/jammy-updates,now 8.1.2-1ubuntu2.9 amd64
[installed,upgradable to: 8.1.14-2+ubuntu22.04.1+deb.sury.org+1]<br>
php8.1-readline/jammy-updates,now 8.1.2-1ubuntu2.9 amd64
[installed,upgradable to: 8.1.14-2+ubuntu22.04.1+deb.sury.org+1]<br>
php8.1/jammy-updates,jammy-updates,now 8.1.2-1ubuntu2.9 all
[installed,upgradable to: 8.1.14-2+ubuntu22.04.1+deb.sury.org+1]<br>
php8.2-cli/now 8.2.1-1+ubuntu22.04.1+deb.sury.org+1 amd64
[installed,upgradable to: 8.2.1-2+ubuntu22.04.1+deb.sury.org+1]<br>
php8.2-common/now 8.2.1-1+ubuntu22.04.1+deb.sury.org+1 amd64
[installed,upgradable to: 8.2.1-2+ubuntu22.04.1+deb.sury.org+1]<br>
php8.2-mysql/now 8.2.1-1+ubuntu22.04.1+deb.sury.org+1 amd64
[installed,upgradable to: 8.2.1-2+ubuntu22.04.1+deb.sury.org+1]<br>
php8.2-opcache/now 8.2.1-1+ubuntu22.04.1+deb.sury.org+1 amd64
[installed,upgradable to: 8.2.1-2+ubuntu22.04.1+deb.sury.org+1]<br>
php8.2-readline/now 8.2.1-1+ubuntu22.04.1+deb.sury.org+1 amd64
[installed,upgradable to: 8.2.1-2+ubuntu22.04.1+deb.sury.org+1]<br>
php8.2/now 8.2.1-1+ubuntu22.04.1+deb.sury.org+1 all
[installed,upgradable to: 8.2.1-2+ubuntu22.04.1+deb.sury.org+1]<br>
php/jammy,jammy,now 2:8.2+93+ubuntu22.04.1+deb.sury.org+2 all
[installed]<br>
don@johnny:~$<br>
<br>
don@johnny:~$ sudo a2query -m | grep -i php<br>
php8.2 (enabled by site administrator)<br>
php8.1 (enabled by maintainer script)<br>
don@johnny:~$<br>
<br>
On closer inspection of /var/log/apache2/error.log, there's an error
about the version check (Undefined constant "FATAL" in
/var/www/html/php_version_check.php). That leads back to the
earlier suggestion, from the other thread, to adjust apache2
(adapted to the currently installed versions), by:<br>
<br>
sudo a2dismod php8.1<br>
sudo a2enmod php8.2<br>
sudo systemctl restart apache2<br>
<br>
Now Mythweb works fine.<br>
</body>
</html>