• If you are still using CentOS 7.9, it's time to convert to Alma 8 with the free centos2alma tool by Plesk or Plesk Migrator. Please let us know your experiences or concerns in this thread:
    CentOS2Alma discussion

Error while running script

G

GattoPuzzolone

Guest
We use Plesk 7.5 reloaded for Linux. A costumer of us is getting errors while running a script. See here 3 examples. Anybody suggestions??? According to the costumer it must be a "safe mode" setting but I can't find anything about "safe mode"...

Note: The original domainname is replaced by domainname.nl.... You never know ;-))

Warning: getimagesize(starnet/media/gallery/ourbuilding.jpg): failed to open stream: No such file or directory in /home/httpd/vhosts/domainname.nl/httpdocs/tienercentrum/starnet/modules/sn_allbum/shared.inc.php on line 678

Warning: Division by zero in /home/httpd/vhosts/domainname.nl/httpdocs/tienercentrum/starnet/modules/sn_allbum/shared.inc.php on line 689

Warning: imagecreatefromjpeg(starnet/media/gallery/ourbuilding.jpg): failed to open stream: No such file or directory in /home/httpd/vhosts/domainnames.nl/httpdocs/tienercentrum/starnet/modules/sn_allbum/shared.inc.php on line 696
 
Originally posted by GattoPuzzolone
We use Plesk 7.5 reloaded for Linux. A costumer of us is getting errors while running a script. See here 3 examples. Anybody suggestions??? According to the costumer it must be a "safe mode" setting but I can't find anything about "safe mode"...

Note: The original domainname is replaced by domainname.nl.... You never know ;-))

Warning: getimagesize(starnet/media/gallery/ourbuilding.jpg): failed to open stream: No such file or directory in /home/httpd/vhosts/domainname.nl/httpdocs/tienercentrum/starnet/modules/sn_allbum/shared.inc.php on line 678

Warning: Division by zero in /home/httpd/vhosts/domainname.nl/httpdocs/tienercentrum/starnet/modules/sn_allbum/shared.inc.php on line 689

Warning: imagecreatefromjpeg(starnet/media/gallery/ourbuilding.jpg): failed to open stream: No such file or directory in /home/httpd/vhosts/domainnames.nl/httpdocs/tienercentrum/starnet/modules/sn_allbum/shared.inc.php on line 696

I don't know if safe_mode is the problem, but you can check safe_mode in the /etc/php.ini script. You might try turning it off (if is on) and trying that. Be sure to make a backup copy of the existing php.ini file BEFORE editing, just in case.
 
What value for php's 'openbasedir' statement do you have configured?

Check in your /etc/php.ini file (this is the global file), as well as checking in the domain's vhost.conf and any .htaccess file for the domain.

You an also use PHP's phpinfo() function to check the current settings for the domain. Create a .php file in the domain's docroot which calls the phpinfo() function, then browse to that file and it will display the current PHP settings (for that domain).

Contents of the file:

<?php
phpinfo();
?>
 
Back
Top