• Plesk Uservoice will be deprecated by October. Moving forward, all product feature requests and improvement suggestions will be managed through our new platform Plesk Productboard.
    To continue sharing your ideas and feedback, please visit features.plesk.com

Plesk 8.2 (fatal error on most of my php site, after 8.1 update ...)

M

masterfred

Guest
Since the upgrade I'm having this kind of error popping everywhere !

Code:
Warning: showcategories(includes/pageNavigation.php): failed to open stream: No such file or directory in /var/www/vhosts/domain.com/httpdocs/administrator/components/com_events/admin.events.categories.php on line 365

Fatal error: showcategories(): Failed opening required 'includes/pageNavigation.php' (include_path='\') in /var/www/vhosts/domain.com/httpdocs/administrator/components/com_events/admin.events.categories.php on line 365

This is the line 365 :

Code:
require_once( "includes/pageNavigation.php" );

This is what's in my php.ini file :

memory_limit = "32M"
include_path = "\".:\""
short_open_tag = "On"
file_uploads = "On"
safe_mode = "Off"


I have no idea how to fix this and why it happens, but has I go around I find more and more site I have that are affected by this bugs.
 
Hi:
Php cann't include that file, because it cann't find it in their path.

Try:

include_path = "."

In your php.ini
 
Thanks for the info !

This is what I've tested and still get the same error :


include_path = "." [not working]

include_path = ".:" [not working]

include_path = "\".:\"" [not working]
 
Try that:
Replace:
PHP:
require_once( "includes/pageNavigation.php" );

To:
PHP:
require_once( "./includes/pageNavigation.php" );

As i can see, it's a php configuration problem. Remember to load a phpinfo page and ensure the php.ini's path before any change.

Hope this help.
 
This is what's in my php.ini file :

memory_limit = "32M"
include_path = "\".:\""
short_open_tag = "On"
file_uploads = "On"
safe_mode = "Off"


and that's all? if yes php.ini is cannot be used without issues. Get the default one somewhere, probably this one is suitable:
http://www.reallylinux.com/docs/php.ini

Plesk expects php.ini to be in /etc directory and if it's somewhere else it creates it (upon the installation or upgrade) with few lines like you have.
If your php.ini is somewhere else (execute php -i | grep php.ini to get to know) it's a good idea to create symlink.
 
Back
Top