• Halloween is coming! To celebrate the occasion, we dusted off a couple of old skins, and even created a brand new one (Pixel).
    To get into the festive spirit, install the Skins extension.
  • The new Python extension is now available. It allows customers to deploy and manage WSGI-based Python applications on their websites directly from Plesk.
  • The Plesk Mobile apps for iOS and Android and the Plesk Mobile Center extension have been deprecated, and are no longer available for new installations. In Plesk Obsidian 18.0.84, the Plesk Mobile Center extension will be removed from servers during the upgrade, and the Plesk Mobile apps will lose their server management features.
  • The Social Login extension has been deprecated and will be removed in Plesk Obsidian 18.0.84. After that, it will no longer be possible to log in to Plesk with a Google, Facebook, GitHub account, or with a passkey. Plesk usernames and passwords, as well as logging in with a WebPros Account, are not affected.

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