LinHES Forums http://forums.linhes.org/ |
|
SOLVED: I broke MythWeb http://forums.linhes.org/viewtopic.php?f=21&t=22012 |
Page 1 of 2 |
Author: | langelgjm [ Mon Feb 07, 2011 10:48 am ] |
Post subject: | SOLVED: I broke MythWeb |
When I visit my local mythweb page, I get the following message: Quote: Fatal error: Call to undefined function get_called_class() in /data/srv/httpd/htdocs/mythweb/classes/MythBase.php on line 22
I was having some issues with php and mysql so I upgraded some things, I don't really remember what and I ended up breaking a lot of stuff, only to have it fixed. Sorry, I know that's not really helpful, but just thought I'd admit that what happened is probably my fault :-/ I'm not using testing repositories, and pacman -Syu says everything is up to date. Apparently I'm running 0.24-fixes, and I guess LinHes 6.03.00? I get the feeling I have some packages that are not matching in versions, since I changed my repos from testing to non-testing (was that not good to do?) |
Author: | brfransen [ Tue Feb 08, 2011 11:02 am ] |
Post subject: | |
Do pacman -Syu again. Cecil fixed it last night. Britney |
Author: | langelgjm [ Tue Feb 08, 2011 12:10 pm ] |
Post subject: | |
Ok, did that, restarted lighttpd and now I am getting a different error (this is actually an error I was getting before): Quote: !!NoTrans: You are missing a php extension for mysql interaction. Please install php-mysqli or similar!!
I looked at my php.ini file, and found that the mysqli.so extension was commented out, so I uncommented it and restarted lighttpd, but no change. (I then went back and commented it out again). |
Author: | brfransen [ Tue Feb 08, 2011 3:37 pm ] |
Post subject: | |
Backup your php.ini and try replacing it with php pacnew. |
Author: | Mikesha311 [ Tue Feb 08, 2011 4:16 pm ] |
Post subject: | |
The issue seems to be extension_dir has the wrong path. extension_dir = "/usr/lib/php/20060613/" Should be extension_dir = "/usr/lib/php/modules/" |
Author: | langelgjm [ Wed Feb 09, 2011 12:46 pm ] |
Post subject: | |
Mikesha311 wrote: The issue seems to be extension_dir has the wrong path.
extension_dir = "/usr/lib/php/20060613/" Should be extension_dir = "/usr/lib/php/modules/" Thank you Mikesha311! This worked and everything appears to be back to normal now. |
Author: | Transverse [ Wed Feb 09, 2011 10:45 pm ] |
Post subject: | |
Thanks, Mikesha311. That fixed it for me, too. |
Author: | tonymuka [ Mon Feb 28, 2011 7:25 pm ] |
Post subject: | |
brfransen wrote: Backup your php.ini and try replacing it with php pacnew.
this worked for me too, thanks! |
Author: | Big_D_271 [ Mon Jun 20, 2011 11:02 pm ] |
Post subject: | |
Thanks guys. Just ran into this problem, and this quick fix got me going again! |
Author: | stinga [ Thu Jun 30, 2011 1:42 pm ] |
Post subject: | |
Reserecting an old thread. But I have just done Code: pacman -Syu /and now have... Code: Fatal error: Call to undefined function get_called_class() in /data/srv/httpd/htdocs/mythweb/classes/MythBase.php on line 22 So it must have come back. I made the suggested change and there error went, but now I have... Code: !!NoTrans: You are missing a php extension for mysql interaction. Please install php-mysqli or similar!! and a bunch of stuff, any suggestions? Edit 1: OK, so I found the problem... Code: $host = setting('MasterServerIP'); $port = setting('MasterServerPort'); The above does not work, so I did... Code: $host = setting('MasterServerIP');
$port = setting('MasterServerPort'); $host = 'localhost'; $port = 6543; to hammer the problem out of the way. |
Author: | Too Many Secrets [ Sun Dec 25, 2011 12:13 am ] |
Post subject: | |
brfransen wrote: Backup your php.ini and try replacing it with php pacnew.
Thanks! |
Author: | stevenj [ Sun Aug 12, 2012 3:35 pm ] |
Post subject: | Re: SOLVED: I broke MythWeb |
After upgrading from 7.1 or 7.2 (can't remember now) to 7.4, trying to connect to MythWeb gave me: Quote: Warning: file_exists() [function.file-exists]: open_basedir restriction in effect. File(/usr/local/share/mythtv/bindings/php//MythBase.php) is not within the allowed path(s): (/data/srv/httpd/htdocs/:/home/:/tmp/:/usr/share/pear/:/data/srv/tmp:/usr/share/mythtv/mythweather/scripts/:/data/srv/httpd/htdocs/mythweb/data/video:/myth/ipodfeed:/data/srv/httpd/htdocs/archive:/etc) in /data/srv/httpd/htdocs/mythweb/includes/class_autoload.php on line 22 Warning: file_exists() [function.file-exists]: open_basedir restriction in effect. File(/usr/share/mythtv/bindings/php//MythBase.php) is not within the allowed path(s): (/data/srv/httpd/htdocs/:/home/:/tmp/:/usr/share/pear/:/data/srv/tmp:/usr/share/mythtv/mythweather/scripts/:/data/srv/httpd/htdocs/mythweb/data/video:/myth/ipodfeed:/data/srv/httpd/htdocs/archive:/etc) in /data/srv/httpd/htdocs/mythweb/includes/class_autoload.php on line 22 Fatal error: Class 'MythBase' not found in /data/srv/httpd/htdocs/mythweb/classes/Translate.php on line 16 Just want to document that: Quote: brfransen wrote: Backup your php.ini and try replacing it with php pacnew. Then a sv restart lighttpd fixed this problem too. |
Author: | mattbatt [ Thu Oct 18, 2012 2:36 pm ] |
Post subject: | Re: SOLVED: I broke MythWeb |
just for reference 6.04 the Code: extension_dir = "/usr/lib/php/20060613/" line is line number 532 if you hit ctrl+c in nano it will tell you what line you are at.then do the Code: sv restart lighttpd
|
Author: | bterrier [ Thu Oct 25, 2012 3:27 pm ] |
Post subject: | Re: SOLVED: I broke MythWeb |
regarding php.ini backup and then 'php pacnew' ... is this a command? Confused on what exactly to do. ![]() |
Author: | bterrier [ Thu Oct 25, 2012 3:37 pm ] |
Post subject: | Re: SOLVED: I broke MythWeb |
Nevermind...got it. Code: cd /etc/php/
cp php.ini php.ini.bak sudo mv php.ini.pacnew php.ini sv restart lighttpd |
Page 1 of 2 | All times are UTC - 6 hours |
Powered by phpBB® Forum Software © phpBB Group http://www.phpbb.com/ |