Page 1 of 1

require_once(../include.php) errors after PHP upgrade from 5.2.4 to 5.2.10

Posted: Mon Sep 14, 2009 9:51 pm
by outerringz
CMSMS version 1.5.4 (Carolina) Schema 31
Modules: Can't access admin pages to retrieve this information
Platform: Windows Server 2003, IIS 6
PHP: 5.2.10
Database: MySQL 5.0.75 running on Ubuntu Server 9.04 32bit


Hi,

I was running fine with the above configuration, but with PHP 5.2.4. I had to upgrade PHP to 5.2.10 for security reasons and this upgrade created my admin page issues. I have two different CMSMS environments running on this server, and the errors are the same on both. The other CMSMS environment is 1.2.4 (Greenland) schema 29.

Error when trying to load the admin login page:
PHP Warning: require_once(../include.php) [function.require-once]: failed to open stream: No such file or directory in D:\Inetpub\wwwroot\issapac\admin\index.php on line 27 PHP Fatal error: require_once() [function.require]: Failed opening required '../include.php' (include_path='.;c:\PHP-5.2.10') in D:\Inetpub\wwwroot\issapac\admin\index.php on line 27

[c:\PHP-5.2.10] is my current PHP path.

I'm sure the issue is in my php.ini file, because a few other issues arose post PHP upgrade, but I can't seem to figure this one out. If I comment out the windows path include path in php.ini, the error changes to:

PHP Warning: require_once(../include.php) [function.require-once]: failed to open stream: No such file or directory in D:\Inetpub\wwwroot\issapac\admin\index.php on line 27 PHP Fatal error: require_once() [function.require]: Failed opening required '../include.php' (include_path='.;C:\php5\pear') in D:\Inetpub\wwwroot\issapac\admin\index.php on line 27

I have tried updating the include path to include the pear directory with [include_path = ".;C:\PHP-5.2.10\PEAR"], but this only changes the error to reflect the path change.

Any help anyone can provide is appreciated.

Re: require_once(../include.php) errors after PHP upgrade from 5.2.4 to 5.2.10

Posted: Tue Sep 15, 2009 4:41 pm
by outerringz
I also went from PHP 5.2.4 using isapi to PHP 5.2.10 using FastCGI. Both my older and newer installations are running fine on the website front ends. The issue only appears to be effecting the admin pages.

Re: require_once(../include.php) errors after PHP upgrade from 5.2.4 to 5.2.10

Posted: Tue Sep 15, 2009 5:17 pm
by Fraserm
Any time now you're going to be told by someone who could potentially help you (not me) that 1.5.4 is now no longer supported (1.6.4 and 1.6.5 only).

Suggest you revert back to the way things were if you can and then upgrade to 1.6.5

Re: require_once(../include.php) errors after PHP upgrade from 5.2.4 to 5.2.10

Posted: Tue Sep 15, 2009 6:31 pm
by outerringz
Kind of a bummer, but thanks for the info. I'll try that the next time I schedule an outage.