Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

whats going wrong


Sinbadsurf

Recommended Posts

Posted

I moved my existing shop to a new server, its not working anymore see here, by clicking on categories (it just reloads) or on Top 10 (shows: no products found): http://www.shop-test.cjb.net/ No errors, there are plenty of pizzas in the shop.

I than installed a brand new shop on the same host/server, which just works great see here: http://shop-new.cjb.net/

 

I need to get the existing shop working. Please help :rolleyes:

Posted
I moved my existing shop to a new server, its not working anymore see here, by clicking on categories (it just reloads) or on Top 10 (shows: no products found): http://www.shop-test.cjb.net/ No errors, there are plenty of pizzas in the shop.

I than installed a brand new shop on the same host/server, which just works great see here: http://shop-new.cjb.net/

 

I need to get the existing shop working. Please help :rolleyes:

 

Compare the includes/configure.php files for your 2 stores. Also admin/includes/configure.php

Posted
Compare the includes/configure.php files for your 2 stores. Also admin/includes/configure.php

 

I rechecked them several times, they are correct.

Posted

I found out the following issue: when clicking on any category it just redirects to itself e.g. /catalog/index.php?cPath=27 it goes just back to index.php the cPath is just ignored.

I have the same issue in the admins section.

Posted
I rechecked them several times, they are correct.

 

Good luck then.

 

Why not post the contents of all 4 files excluding the user names and passwords etc.

Need help installing add ons/contributions, cleaning a hacked site or a bespoke development, check my profile

 

Virus Threat Scanner

My Contributions

Basic install answers.

Click here for Contributions / Add Ons.

UK your site.

Site Move.

Basic design info.

 

For links mentioned in old answers that are no longer here follow this link Useful Threads.

 

If this post was useful, click the Like This button over there ======>>>>>.

Posted
Good luck then.

 

Why not post the contents of all 4 files excluding the user names and passwords etc.

 

sure sure :blush:

 

OLD INCLUDES

 

<?php
 define('HTTP_SERVER', 'http://www.testdomain.de'); // eg, http://localhost - should not be empty for productive servers
 define('HTTPS_SERVER', 'https://www.testdomain.de'); // eg, https://localhost - should not be empty for productive servers
 define('ENABLE_SSL', false); // secure webserver for checkout procedure?
 define('HTTP_COOKIE_DOMAIN', 'www.testdomain.de');
 define('HTTPS_COOKIE_DOMAIN', 'www.testdomain.de');
 define('HTTP_COOKIE_PATH', '/catalog/');
 define('HTTPS_COOKIE_PATH', '/catalog/');
 define('DIR_WS_HTTP_CATALOG', '/catalog/');
 define('DIR_WS_HTTPS_CATALOG', '/catalog/');
 define('DIR_WS_IMAGES', 'images/');
 define('DIR_WS_ICONS', DIR_WS_IMAGES . 'icons/');
 define('DIR_WS_INCLUDES', 'includes/');
 define('DIR_WS_BOXES', DIR_WS_INCLUDES . 'boxes/');
 define('DIR_WS_FUNCTIONS', DIR_WS_INCLUDES . 'functions/');
 define('DIR_WS_CLASSES', DIR_WS_INCLUDES . 'classes/');
 define('DIR_WS_MODULES', DIR_WS_INCLUDES . 'modules/');
 define('DIR_WS_LANGUAGES', DIR_WS_INCLUDES . 'languages/');

 define('DIR_WS_DOWNLOAD_PUBLIC', 'pub/');
 define('DIR_FS_CATALOG', '/srv/www/vhosts/testdomain.de/httpdocs/catalog/');
 define('DIR_FS_DOWNLOAD', DIR_FS_CATALOG . 'download/');
 define('DIR_FS_DOWNLOAD_PUBLIC', DIR_FS_CATALOG . 'pub/');

 define('DB_SERVER', 'www.testdomain.de'); // eg, localhost - should not be empty for productive servers
 define('DB_SERVER_USERNAME', 'usernamehere');
 define('DB_SERVER_PASSWORD', 'pwhere');
 define('DB_DATABASE', 'dbnamehere');
 define('USE_PCONNECT', 'false'); // use persistent connections?
 define('STORE_SESSIONS', 'mysql'); // leave empty '' for default handler or set to 'mysql'

// CLR 020605 defines needed for Product Option Type feature
define('PRODUCTS_OPTIONS_TYPE_SELECT', 0);
define('PRODUCTS_OPTIONS_TYPE_TEXT', 1);
define('PRODUCTS_OPTIONS_TYPE_RADIO', 2);
define('PRODUCTS_OPTIONS_TYPE_CHECKBOX', 3);

define('PRODUCTS_OPTIONS_TYPE_TEXTAREA', 4); // DDB - 041107 - add textarea field 
define('TEXT_PREFIX', 'txt_');
define('PRODUCTS_OPTIONS_VALUE_TEXT_ID', 0); //Must match id for user defined "TEXT" value in db table TABLE_PRODUCTS_OPTIONS_VALUES 
?>

 

 

OLD ADMIN/INCLUDES

 

<?php
 define('HTTP_SERVER', 'http://www.testdomain.de'); // eg, http://localhost - should not be empty for productive servers
 define('HTTP_CATALOG_SERVER', 'http://www.testdomain.de');
 define('HTTPS_CATALOG_SERVER', 'http://www.testdomain.de');
 define('ENABLE_SSL_CATALOG', 'false'); // secure webserver for catalog module
 define('DIR_FS_DOCUMENT_ROOT', '/srv/www/vhosts/testdomain.de/httpdocs/catalog/'); // where the pages are located on the server
 define('DIR_WS_ADMIN', '/catalog/admin/'); // absolute path required
 define('DIR_FS_ADMIN', '/srv/www/vhosts/testdomain.de/httpdocs/catalog/admin/'); // absolute pate required
 define('DIR_WS_CATALOG', '/catalog/'); // absolute path required
 define('DIR_FS_CATALOG', '/srv/www/vhosts/testdomain.de/httpdocs/catalog/'); // absolute path required
 define('DIR_WS_IMAGES', 'images/');
 define('DIR_WS_ICONS', DIR_WS_IMAGES . 'icons/');
 define('DIR_WS_CATALOG_IMAGES', DIR_WS_CATALOG . 'images/');
 define('DIR_WS_INCLUDES', 'includes/');
 define('DIR_WS_BOXES', DIR_WS_INCLUDES . 'boxes/');
 define('DIR_WS_FUNCTIONS', DIR_WS_INCLUDES . 'functions/');
 define('DIR_WS_CLASSES', DIR_WS_INCLUDES . 'classes/');
 define('DIR_WS_MODULES', DIR_WS_INCLUDES . 'modules/');
 define('DIR_WS_LANGUAGES', DIR_WS_INCLUDES . 'languages/');
 define('DIR_WS_CATALOG_LANGUAGES', DIR_WS_CATALOG . 'includes/languages/');
 define('DIR_FS_CATALOG_LANGUAGES', DIR_FS_CATALOG . 'includes/languages/');
 define('DIR_FS_CATALOG_IMAGES', DIR_FS_CATALOG . 'images/');
 define('DIR_FS_CATALOG_MODULES', DIR_FS_CATALOG . 'includes/modules/');
 define('DIR_FS_BACKUP', DIR_FS_ADMIN . 'backups/');

// define our database connection
 define('DB_SERVER', 'www.testdomain.de'); // eg, localhost - should not be empty for productive servers
 define('DB_SERVER_USERNAME', 'usernamehere');
 define('DB_SERVER_PASSWORD', 'pwhere');
 define('DB_DATABASE', 'dbnamehere');
 define('USE_PCONNECT', 'false'); // use persisstent connections?
 define('STORE_SESSIONS', 'mysql'); // leave empty '' for default handler or set to 'mysql'
?>

 

 

NEW INCLUDES:

<?php
 define('HTTP_SERVER', 'http://www.testdomain.de');
 define('HTTPS_SERVER', 'http://www.testdomain.de');
 define('ENABLE_SSL', false);
 define('HTTP_COOKIE_DOMAIN', 'www.testdomain.de');
 define('HTTPS_COOKIE_DOMAIN', 'www.testdomain.de');
 define('HTTP_COOKIE_PATH', '/catalog_rc/');
 define('HTTPS_COOKIE_PATH', '/catalog_rc/');
 define('DIR_WS_HTTP_CATALOG', '/catalog_rc/');
 define('DIR_WS_HTTPS_CATALOG', '/catalog_rc/');
 define('DIR_WS_IMAGES', 'images/');
 define('DIR_WS_ICONS', DIR_WS_IMAGES . 'icons/');
 define('DIR_WS_INCLUDES', 'includes/');
 define('DIR_WS_BOXES', DIR_WS_INCLUDES . 'boxes/');
 define('DIR_WS_FUNCTIONS', DIR_WS_INCLUDES . 'functions/');
 define('DIR_WS_CLASSES', DIR_WS_INCLUDES . 'classes/');
 define('DIR_WS_MODULES', DIR_WS_INCLUDES . 'modules/');
 define('DIR_WS_LANGUAGES', DIR_WS_INCLUDES . 'languages/');

 define('DIR_WS_DOWNLOAD_PUBLIC', 'pub/');
 define('DIR_FS_CATALOG', '/srv/www/vhosts/testdomain.de/httpdocs/catalog_rc/');
 define('DIR_FS_DOWNLOAD', DIR_FS_CATALOG . 'download/');
 define('DIR_FS_DOWNLOAD_PUBLIC', DIR_FS_CATALOG . 'pub/');

 define('DB_SERVER', 'www.testdomain.de');
 define('DB_SERVER_USERNAME', 'usernamehere');
 define('DB_SERVER_PASSWORD', 'pwhere');
 define('DB_DATABASE', 'dbnamehere');
 define('USE_PCONNECT', 'false');
 define('STORE_SESSIONS', 'mysql');
?>

 

NEW ADMIN/INCLUDES

<?php
 define('HTTP_SERVER', 'http://www.testdomain.de');
 define('HTTP_CATALOG_SERVER', 'http://www.testdomain.de');
 define('HTTPS_CATALOG_SERVER', 'http://www.testdomain.de');
 define('ENABLE_SSL_CATALOG', 'false');
 define('DIR_FS_DOCUMENT_ROOT', '/srv/www/vhosts/testdomain.de/httpdocs/catalog_rc/');
 define('DIR_WS_ADMIN', '/catalog_rc/admin/');
 define('DIR_FS_ADMIN', '/srv/www/vhosts/testdomain.de/httpdocs/catalog_rc/admin/');
 define('DIR_WS_CATALOG', '/catalog_rc/');
 define('DIR_FS_CATALOG', '/srv/www/vhosts/testdomain.de/httpdocs/catalog_rc/');
 define('DIR_WS_IMAGES', 'images/');
 define('DIR_WS_ICONS', DIR_WS_IMAGES . 'icons/');
 define('DIR_WS_CATALOG_IMAGES', DIR_WS_CATALOG . 'images/');
 define('DIR_WS_INCLUDES', 'includes/');
 define('DIR_WS_BOXES', DIR_WS_INCLUDES . 'boxes/');
 define('DIR_WS_FUNCTIONS', DIR_WS_INCLUDES . 'functions/');
 define('DIR_WS_CLASSES', DIR_WS_INCLUDES . 'classes/');
 define('DIR_WS_MODULES', DIR_WS_INCLUDES . 'modules/');
 define('DIR_WS_LANGUAGES', DIR_WS_INCLUDES . 'languages/');
 define('DIR_WS_CATALOG_LANGUAGES', DIR_WS_CATALOG . 'includes/languages/');
 define('DIR_FS_CATALOG_LANGUAGES', DIR_FS_CATALOG . 'includes/languages/');
 define('DIR_FS_CATALOG_IMAGES', DIR_FS_CATALOG . 'images/');
 define('DIR_FS_CATALOG_MODULES', DIR_FS_CATALOG . 'includes/modules/');
 define('DIR_FS_BACKUP', DIR_FS_ADMIN . 'backups/');

 define('DB_SERVER', 'www.testdomain.de');
 define('DB_SERVER_USERNAME', 'usernamehere');
 define('DB_SERVER_PASSWORD', 'pwhere');
 define('DB_DATABASE', 'dbnamehere');
 define('USE_PCONNECT', 'false');
 define('STORE_SESSIONS', 'mysql');
?>

Posted
I found out the following issue: when clicking on any category it just redirects to itself e.g. /catalog/index.php?cPath=27 it goes just back to index.php the cPath is just ignored.

I have the same issue in the admins section.

 

 

I got the ultimate hint in the german forums.

The issue relies on the register_long_arrays setting in the php.ini.

By default this is set to Off, I had to set it to On and very important, do a restart of your webserver after changing the php.ini.

Now the cPath= variables are passed to the index.php page and everything works fine.

 

Oh, this was a hard one...

 

This setting is required for oscommerce 2.2ms2.

2.2RC2a, also works with register_long_arrays Off.

 

You can check your php.ini settings (register_long_array) with the phpinfo() function. (Just create a php file with <? phpinfo(); ?> and upload it to your server to check your php.ini settings).

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...