[Solved] Mythweb broken after upgrade to Ubuntu 18.04.1
Moderator: Forum Moderators
[Solved] Mythweb broken after upgrade to Ubuntu 18.04.1
I took the plunge (to Ubuntu 18.04.1) and most seems fine (on my MythBuntu server) except mythweb
To get Apache to restart (without mythweb) I had to edit
/etc/apache2/sites-enabled/mythweb.conf
with the following:
#these lines commented by Robert
# php_value file_uploads 0
# php_value allow_url_fopen On
# php_value zlib.output_handler Off
# php_value memory_limit 64M
# php_value max_execution_time 30
# php_value display_startup_errors On
# php_value display_errors On
Any help appreciated on what to do to get Mythweb working again.
I have tried:-
sudo apt purge php-mythtv
and
sudo apt-get purge mythweb
(then reinstalling them) but still the same problem. Could be another problem created with the PHP upgrade?
To get Apache to restart (without mythweb) I had to edit
/etc/apache2/sites-enabled/mythweb.conf
with the following:
#these lines commented by Robert
# php_value file_uploads 0
# php_value allow_url_fopen On
# php_value zlib.output_handler Off
# php_value memory_limit 64M
# php_value max_execution_time 30
# php_value display_startup_errors On
# php_value display_errors On
Any help appreciated on what to do to get Mythweb working again.
I have tried:-
sudo apt purge php-mythtv
and
sudo apt-get purge mythweb
(then reinstalling them) but still the same problem. Could be another problem created with the PHP upgrade?
Re: Mythweb broken after upgrade to Ubuntu 18.04.1
I don't use mythweb, but have it running (without commenting out the above.)
Try: dpkg -l | grep libapache2-mod-php7.2
I have that installed and enabled. Also, try looking in /var/log/apache2/error.log
Try: dpkg -l | grep libapache2-mod-php7.2
I have that installed and enabled. Also, try looking in /var/log/apache2/error.log
Re: Mythweb broken after upgrade to Ubuntu 18.04.1
When I uncomment those lines again I get errors when I restart Apache. If I leave the lines uncommented I get a new error when I comment them out one at a time.
The first one is.....
Invalid command 'php_value', perhaps misspelled or defined by a module not included in the server configuration
Reading state information... Done
libapache2-mod-php7.2 is already the newest version (7.2.7-0ubuntu0.18.04.2)
How can I tell if it is "enabled"
The first one is.....
Invalid command 'php_value', perhaps misspelled or defined by a module not included in the server configuration
Reading state information... Done
libapache2-mod-php7.2 is already the newest version (7.2.7-0ubuntu0.18.04.2)
How can I tell if it is "enabled"
Re: Mythweb broken after upgrade to Ubuntu 18.04.1
Mine are in: /etc/apache2/mods-enabled
See: a2enmod if there isn't a link there to mods-available.
See: a2enmod if there isn't a link there to mods-available.
Re: Mythweb broken after upgrade to Ubuntu 18.04.1
I did this upgrade and fixed my Mythweb problems by running:
sudo a2enmod php7.2
I then had to edit:
/usr/share/mythtv/mythweb/modules/tv/recorded.php
and put quotes around disk_size and disk_used at lines 188,189. Then I ran:
sudo systemctl restart apache2
Hope this helps.
sudo a2enmod php7.2
I then had to edit:
/usr/share/mythtv/mythweb/modules/tv/recorded.php
and put quotes around disk_size and disk_used at lines 188,189. Then I ran:
sudo systemctl restart apache2
Hope this helps.
Re: Mythweb broken after upgrade to Ubuntu 18.04.1
The quotes mentioned above were fixed in: https://github.com/MythTV/mythweb/commit/664dc17
in May 2018.
Thanks for mentioning restarting apache2
in May 2018.
Thanks for mentioning restarting apache2
Re: Mythweb broken after upgrade to Ubuntu 18.04.1
Maybe that fix hasn't yet propagated to the Mythbuntu updates repository I use. I also see at the top of Recording Schedules:
Warning at /usr/share/mythtv/mythweb/modules/tv/classes/Schedule.php, line 106:
!!NoTrans: count(): Parameter must be an array or an object that implements Countable!!
But since this is "just" a warning, Mythweb still works.
Warning at /usr/share/mythtv/mythweb/modules/tv/classes/Schedule.php, line 106:
!!NoTrans: count(): Parameter must be an array or an object that implements Countable!!
But since this is "just" a warning, Mythweb still works.
Re: Mythweb broken after upgrade to Ubuntu 18.04.1
Thanks,
sudo a2enmod php7.2
then a restart
sudo systemctl restart apache2
Did the trick.
sudo a2enmod php7.2
then a restart
sudo systemctl restart apache2
Did the trick.
Re: Mythweb broken after upgrade to Ubuntu 18.04.1
My lines (187-189) look like this:-
// This is inaccurate, but it's the best we can get without GMP.
define(disk_size, ($size * 1024));
define(disk_used, ($used * 1024));
What should they be changed to?
// This is inaccurate, but it's the best we can get without GMP.
define(disk_size, ($size * 1024));
define(disk_used, ($used * 1024));
What should they be changed to?
Re: Mythweb broken after upgrade to Ubuntu 18.04.1
Take a look at the link 3 posts above your last one.
Four lines get changed.
Four lines get changed.