Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Major fail! None of the products are linking correctly!


Dirk Duckler

Recommended Posts

Suddenly none of the products are linking correctly from category pages. Neither is the header, footer, or any other link that isn't just a simple HTML tag. I've checked my config.php files and everything looks correct.

 

Here's what happens when I click on a product...

 

Oops! Google Chrome could not find website.comdir_ws_http_catalogproductinfo.php

Link to comment
Share on other sites

@

 

It looks like your hosting provider (Network Solutions) updated there server software to PHP 5.3.8. Your website is v2.2 RC2a which is not compatible with PHP 5.3.8. You will need to update the site. You can use this GUIDE which covers all of the base file changes.

 

 

 

Chris

Link to comment
Share on other sites

show me your configure.php file (without database settings (last 6-7 lines of file).

 

<?php
 define('HTTP_SERVER', 'http://website.com');
 define('HTTP_CATALOG_SERVER', 'http://website.com');
 define('HTTPS_CATALOG_SERVER', 'http://website.com');
 define('ENABLE_SSL_CATALOG', 'false');
 define('DIR_FS_DOCUMENT_ROOT', '/path_to/htdocs/');
 define('DIR_WS_ADMIN', '/console/');
 define('DIR_FS_ADMIN', DIR_FS_DOCUMENT_ROOT . '/console/');
 define('DIR_WS_CATALOG', '/');
 define('DIR_FS_CATALOG', DIR_FS_DOCUMENT_ROOT .  '/');
 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/');

Link to comment
Share on other sites

@

 

It is NOT the configure.php file that needs to be changed. It is the deprecated code in ALL of your files.

 

 

 

Chris

 

ps. Also, that is the /admin/includes/configure.php file....not the /includes/configure.php file that was originally requested.

Link to comment
Share on other sites

@

 

It is NOT the configure.php file that needs to be changed. It is the deprecated code in ALL of your files.

 

 

 

Chris

 

ps. Also, that is the /admin/includes/configure.php file....not the /includes/configure.php file that was originally requested.

 

Strange... I replaced the configure.php with one from a previous backup and now the products are linking correctly. But still getting those errors for the deprecated code. I'll apply the changes and see if that helps.

Link to comment
Share on other sites

Update... mostly everything seems to be working, except for the Google Checkout addon.

 

Deprecated: Function split() is deprecated in /data/25/2/13/35/2502361/user/2740736/htdocs/googlecheckout/gcheckout.php on line 137

 

Here's lines 132 - 140

 

$tax_array = array();
$tax_name_array = array();
$flagAnyOutOfStock = false;
$product_list = '';
$restricted_categories_raw = gc_get_configuration_value($config->restrictedCategories());
$resticted_categories = split('([ ]?[,][ ]?)', $restricted_categories_raw);
for ($i = 0, $n = sizeof($products); $i < $n; $i++) {
 $product_virtual = false;
 if (isset($products[$i]['attributes']) && is_array($products[$i]['attributes'])) {

Link to comment
Share on other sites

  • 2 weeks later...

Update... mostly everything seems to be working, except for the Google Checkout addon.

 

 

 

Here's lines 132 - 140

 

$tax_array = array();
$tax_name_array = array();
$flagAnyOutOfStock = false;
$product_list = '';
$restricted_categories_raw = gc_get_configuration_value($config->restrictedCategories());
$resticted_categories = split('([ ]?[,][ ]?)', $restricted_categories_raw);
for ($i = 0, $n = sizeof($products); $i < $n; $i++) {
 $product_virtual = false;
 if (isset($products[$i]['attributes']) && is_array($products[$i]['attributes'])) {

 

I don't know how to rewrite the line using preg_splilt. Could you show me the rewrite for the line containing the split function?

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...