System Info error

Asked by ivanrv on 2009-08-22

Hello

I have just installed PHPDevShell V 2.8.1 Everythimg looks to be working fine; Logged as admin i went to menu:
System Managment->System Status->System Info

and received this error:

Fatal error: Call to undefined function apache_get_version() in /home/ivanrv/public_html/ivanrv/plugins/PHPDevShell/scripts/system-admin/admin.php on line 33

line 33 is:

$apache_get_version = apache_get_version();

but problem may be some where else because line is apparently ok i guess.
Would like to know the cause of this error.

running on:
Apache version 2.2.13 (Unix)
PHP version 5.2.9
MySQL version 5.0.81-community-log
Architecture x86_64
Operating system Linux

Thanks

Question information

Language:
English Edit question
Status:
Solved
For:
PHPDevShell Edit question
Assignee:
No assignee Edit question
Solved by:
ivanrv
Solved:
2009-08-24
Last query:
2009-08-24
Last reply:
2009-08-22
Greg (gregfr) said : #1

The only reason I can see this function wouldn't be defined is when you're running PHP as CGI (as opposed to mod). Is that your case?

TitanKing (titan-phpdevshell) said : #2

Hi, this is a bug and will be fixed in the next version.

To prevent this from happening, just change the line in plugins/PHPDevShell/scripts/system-admin/admin.php on line 33 to $apache_get_version = 'Unknown';

This will be overwritten in the next fix and you should be ok.

ivanrv (ivanrv) said : #3

Thank you.

I have changed line 33 as specified.
But had to change also line 34 using ┬┤Unknown' for the apache_get_modules. It was causing the same error.

Now with line 33 and 34 changed all is working fine. Thanks for your help.

Regarding PHP running mode im not using Fast CGI.

Thanks to all for good work

Ivanrv

TitanKing (titan-phpdevshell) said : #4

Thanks for coming back to us with feedback, we will check the issues out before the next release.