• Debian 11 has reached its end-of-life (vendor EOL date - August 31, 2026). Plesk Obsidian 18.0.81 is the last release to support it.
    If you are running Plesk Obsidian on Debian 11, we recommend you upgrade those servers to Debian 12 using our dist-upgrade tool.
  • We plan to deprecate and remove the support for XML RPC protocol versions earlier than 1.6.9.1 in Plesk Obsidian 18.0.82. We strongly recommend that you update all existing integrations using earlier versions of the XML RPC protocol to comply with the version 1.6.9.1 specification.

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