• 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.

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