• 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

OsCommerce error aftr upgrading to 8.1

M

meat1oaf

Guest
After upgrading, we noticed one of our hosted oscommerce sites started showing the following error:

Warning: main(includes/configure.php): failed to open stream: No such file or directory in /home/httpd/vhosts/paperbacksworld.com/httpdocs/cart/includes/application_top.php on line 37

Warning: main(includes/configure.php): failed to open stream: No such file or directory in /home/httpd/vhosts/paperbacksworld.com/httpdocs/cart/includes/application_top.php on line 37

Warning: main(): Failed opening 'includes/configure.php' for inclusion (include_path='\') in /home/httpd/vhosts/paperbacksworld.com/httpdocs/cart/includes/application_top.php on line 37

Warning: Cannot modify header information - headers already sent by (output started at /home/httpd/vhosts/paperbacksworld.com/httpdocs/cart/includes/application_top.php:37) in /home/httpd/vhosts/paperbacksworld.com/httpdocs/cart/includes/application_top.php on line 52

I have made sure Globals is turned on (which I believe the app requires, and even temporarily changed the permissions on configure.php to 777 - still no luck. Get the exact same error.
 
Hi,

This is my line 37 in includes/application_top.php
// define the project version
define('PROJECT_VERSION', 'osCommerce 2.2-MS2');

What is yours?

Also, make sure there are no blank lines at the end of application_top.php or the configure.php file.

What are your values on these in the includes/configure.php?

define('DIR_WS_DOWNLOAD_PUBLIC', 'pub/');
define('DIR_FS_CATALOG', '/var/www/vhosts/domain/httpdocs/ms2/');
define('DIR_FS_DOWNLOAD', DIR_FS_CATALOG . 'download/');
define('DIR_FS_DOWNLOAD_PUBLIC', DIR_FS_CATALOG . 'pub/');

You should make the DIR_FS_CATALOG value to be the absolute path instead of define('DIR_FS_CATALOG', dirname($HTTP_SERVER_VARS['SCRIPT_FILENAME']) . '/');
 
Back
Top