View unanswered posts    View active topics

All times are UTC - 6 hours





Post new topic Reply to topic  [ 16 posts ] 
Go to page 1, 2  Next

Print view Previous topic   Next topic  
Author Message
Search for:
 Post subject: SOLVED: I broke MythWeb
PostPosted: Mon Feb 07, 2011 10:48 am 
Offline
Joined: Wed Jul 25, 2007 7:56 pm
Posts: 103
Location: Arlington, VA, USA
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?)

_________________
MBE/FE: R6, P4 2.8 GHz/2 GB/2 TB, GeForce 6200 512 MB, PVR-150, Cisco RNG-100 cable box
FE: R6, P4 2.0 GHz/1 GB, GeForce4 MX 420 64 MB, diskless netboot


Last edited by langelgjm on Wed Feb 09, 2011 12:46 pm, edited 1 time in total.


Top
 Profile  
 
 Post subject:
PostPosted: Tue Feb 08, 2011 11:02 am 
Offline
Joined: Fri Jul 21, 2006 11:12 pm
Posts: 1194
Location: SC
Do pacman -Syu again. Cecil fixed it last night.

Britney


Top
 Profile  
 
 Post subject:
PostPosted: Tue Feb 08, 2011 12:10 pm 
Offline
Joined: Wed Jul 25, 2007 7:56 pm
Posts: 103
Location: Arlington, VA, USA
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).

_________________
MBE/FE: R6, P4 2.8 GHz/2 GB/2 TB, GeForce 6200 512 MB, PVR-150, Cisco RNG-100 cable box
FE: R6, P4 2.0 GHz/1 GB, GeForce4 MX 420 64 MB, diskless netboot


Top
 Profile  
 
 Post subject:
PostPosted: Tue Feb 08, 2011 3:37 pm 
Offline
Joined: Fri Jul 21, 2006 11:12 pm
Posts: 1194
Location: SC
Backup your php.ini and try replacing it with php pacnew.


Top
 Profile  
 
 Post subject:
PostPosted: Tue Feb 08, 2011 4:16 pm 
Offline
Joined: Tue Apr 21, 2009 8:26 am
Posts: 5
Location: Dallas,TX
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/"


Top
 Profile  
 
 Post subject:
PostPosted: Wed Feb 09, 2011 12:46 pm 
Offline
Joined: Wed Jul 25, 2007 7:56 pm
Posts: 103
Location: Arlington, VA, USA
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.

_________________
MBE/FE: R6, P4 2.8 GHz/2 GB/2 TB, GeForce 6200 512 MB, PVR-150, Cisco RNG-100 cable box
FE: R6, P4 2.0 GHz/1 GB, GeForce4 MX 420 64 MB, diskless netboot


Top
 Profile  
 
 Post subject:
PostPosted: Wed Feb 09, 2011 10:45 pm 
Offline
Joined: Sat Oct 28, 2006 3:18 am
Posts: 6
Thanks, Mikesha311. That fixed it for me, too.


Top
 Profile  
 
 Post subject:
PostPosted: Mon Feb 28, 2011 7:25 pm 
Offline
Joined: Fri May 13, 2005 8:46 am
Posts: 48
Location: Grand Rapids, MI
brfransen wrote:
Backup your php.ini and try replacing it with php pacnew.


this worked for me too, thanks!

_________________
ASUS P5N7A-VM, 2.5gHz E5200, 2GB crucial DDR2, pvr-250, hdhomerun, URC-8820 remote, Panasonic TH-42PZ80U, LinHES 6.01.00


Top
 Profile  
 
 Post subject:
PostPosted: Mon Jun 20, 2011 11:02 pm 
Offline
Joined: Sat Aug 14, 2010 7:13 pm
Posts: 11
Thanks guys. Just ran into this problem, and this quick fix got me going again!

_________________
LinHES 6.03
-P4 2.8GHz (512 MB Ram)
-250 GB PATA
-Nvidia 9500 GT (PCI)
-PVR-350 capture card
-Samsung 32" 720p LCD HDTV (1360x768)


Top
 Profile  
 
 Post subject:
PostPosted: Thu Jun 30, 2011 1:42 pm 
Offline
Joined: Sat Nov 05, 2005 4:37 am
Posts: 191
Location: Cornwall - uk
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.

_________________
--
stinga

as of 17-May-2018
R8.2 - sort of working.
MB: gigabyte GA-P43-ES3G | RAM: 2GB
VGA: PNY Nvidia GT240 1GB
4 x Technisat skystar 2 dvb | 1 x TBS6981 dvb-s2
pata: 1x300Gb | sata: 2x1Tb 2x2Tb
Problems:
TBS6981 Does not work.


Top
 Profile  
 
 Post subject:
PostPosted: Sun Dec 25, 2011 12:13 am 
Offline
Joined: Fri Oct 20, 2006 12:04 pm
Posts: 905
Location: LA, CA
brfransen wrote:
Backup your php.ini and try replacing it with php pacnew.


Thanks!


Top
 Profile  
 
PostPosted: Sun Aug 12, 2012 3:35 pm 
Offline
Joined: Thu Jan 01, 2004 9:21 pm
Posts: 84
Location: Fort Collins, CO USA
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.

_________________
LinHES 8.4.1
MBE/FE: Athlon II X4 620, 2GB RAM, 12TB HD Storage, NVIDIA GT520, HD PVR
SBE/FE: Athlon II X4 625, 2GB RAM, 4.5TB HD Storage, NVIDIA 210
FE: iMac 27"
HDHomeRun Prime


Top
 Profile  
 
PostPosted: Thu Oct 18, 2012 2:36 pm 
Offline
Joined: Tue Aug 15, 2006 11:14 am
Posts: 1343
Location: Orlando FL
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

_________________
My System


Top
 Profile  
 
PostPosted: Thu Oct 25, 2012 3:27 pm 
Offline
Joined: Mon Sep 06, 2010 12:04 pm
Posts: 4
regarding php.ini backup and then 'php pacnew' ...

is this a command?

Confused on what exactly to do.

:oops:


Top
 Profile  
 
PostPosted: Thu Oct 25, 2012 3:37 pm 
Offline
Joined: Mon Sep 06, 2010 12:04 pm
Posts: 4
Nevermind...got it.

Code:
cd /etc/php/

cp php.ini php.ini.bak

sudo mv php.ini.pacnew php.ini

sv restart lighttpd



Top
 Profile  
 

Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 16 posts ] 
Go to page 1, 2  Next



All times are UTC - 6 hours




Who is online

Users browsing this forum: No registered users and 48 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Jump to:  
cron
Powered by phpBB® Forum Software © phpBB Group

Theme Created By ceyhansuyu