Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Anyone recognise these problems ?


UncleSteve

Recommended Posts

I (as a customer) can browse my site without problems  however I can't add anything to the cart 

 

If I log in and 'add to cart' a product from the category list, I get logged out and the cart is empty! Then if I go direct to the checkout, the system asks me to log in, after logging in, my product appears in the cart. The checkout runs fine, however after the final page where you confirm your order (or in my case it says your order has been received), and click 'continue', your normally taken back to the front page (index), however mine logs me out and displays the 'log in' page!

 

If I log in, then add a product to the cart, I get logged out, and still nothing in the cart. But like above, if I go direct to the checkout and log in again, the product is listed.

 

Looking in the error logs, there's nothing new in catalog/error_log, however in catalog/admin/error_log I get this sort of message

[18-Dec-2006 13:19:34] PHP Warning: imagegif(): Unable to open 'images/thumbnails/header_checkout.gif.thumb_50x50.gif' for writing in /home/monkley3/public_html/store/admin/product_thumb.php on line 346

[18-Dec-2006 13:19:34] PHP Warning: Cannot modify header information - headers already sent by (output started at /home/monkley3/public_html/store/admin/product_thumb.php:346) in /home/monkley3/public_html/store/admin/product_thumb.php on line 187

[18-Dec-2006 13:19:34] PHP Warning: Cannot modify header information - headers already sent by (output started at /home/monkley3/public_html/store/admin/product_thumb.php:346) in /home/monkley3/public_html/store/admin/product_thumb.php on line 188

[18-Dec-2006 13:19:34] PHP Warning: Cannot modify header information - headers already sent by (output started at /home/monkley3/public_html/store/admin/product_thumb.php:346) in /home/monkley3/public_html/store/admin/product_thumb.php on line 189

[18-Dec-2006 13:19:55] PHP Warning: imagegif(): Unable to open 'images/thumbnails/header_checkout.gif.thumb_50x50.gif' for writing in /home/monkley3/public_html/store/admin/product_thumb.php on line 346

[18-Dec-2006 13:19:55] PHP Warning: Cannot modify header information - headers already sent by (output started at /home/monkley3/public_html/store/admin/product_thumb.php:346) in /home/monkley3/public_html/store/admin/product_thumb.php on line 187

[18-Dec-2006 13:19:55] PHP Warning: Cannot modify header information - headers already sent by (output started at /home/monkley3/public_html/store/admin/product_thumb.php:346) in /home/monkley3/public_html/store/admin/product_thumb.php on line 188

[18-Dec-2006 13:19:55] PHP Warning: Cannot modify header information - headers already sent by (output started at /home/monkley3/public_html/store/admin/product_thumb.php:346) in /home/monkley3/public_html/store/admin/product_thumb.php on line 189

 

Seems like the above has been going on sometime, so I don't think its directly related to my problem above.

 

To try and save time, I had a company install 'Image Magic', 'Ultimate SEO URL's', and 'Page Cache'. I encountered problems when checking out. The last page wouldn't display, the error message then was something like 'Cannot modify header information - headers already sent….' The workabout was to remove '$from_email_address' from about line 1000 of catalog/includes/functions/general.php

 

These problems may not be related to one another, but any help/suggestions or directing me to someone who can sort my 'add to cart' issues will be hotly received.

 

Thanks for reading this far 

____________________________________________________________________

____________________________________________________________________

Link to comment
Share on other sites

as for your uggly errors, make sure the directory

images/thumbnails/

is writable by apache (i.e. cmod 777).

 

for the cart not filling up, post your includes/configure.php file here so we can take a look at that (without the mysql username pass etc.)

Link to comment
Share on other sites

Hi jdvb,

 

as requested catalog/includes/congure.php

<?php

/* osCommerce, Open Source E-Commerce Solutions

http://www.oscommerce.com

Copyright © 2003 osCommerce

Released under the GNU General Public License */

 

// Define the webserver and path parameters

// * DIR_FS_* = Filesystem directories (local/physical)

// * DIR_WS_* = Webserver directories (virtual/URL)

define('HTTP_SERVER', 'http://www.mydomain.com'); // eg, http://localhost - should not be empty for productive servers

define('HTTPS_SERVER', 'https://www.mydomain.com'); // eg, https://localhost - should not be empty for productive servers

define('ENABLE_SSL', true); // secure webserver for checkout procedure?

define('HTTP_COOKIE_DOMAIN', '.mydomain.com');

define('HTTPS_COOKIE_DOMAIN', '.mydomain.com');

define('HTTP_COOKIE_PATH', '/');

define('HTTPS_COOKIE_PATH', '/');

define('DIR_WS_HTTP_CATALOG', '/store/');

define('DIR_WS_HTTPS_CATALOG', '/store/');

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', '/home/REMOVED/public_html/store/');

define('DIR_FS_DOWNLOAD', DIR_FS_CATALOG . 'download/');

define('DIR_FS_DOWNLOAD_PUBLIC', DIR_FS_CATALOG . 'pub/');

 

// define our database connection

define('DB_SERVER', 'localhost'); // eg, localhost - should not be empty for productive servers

define('DB_SERVER_USERNAME', 'REMOVED');

define('DB_SERVER_PASSWORD', 'REMOVED');

define('DB_DATABASE', 'REMOVED');

define('USE_PCONNECT', 'false'); // use persistent connections?

define('STORE_SESSIONS', 'mysql'); // leave empty '' for default handler or set to 'mysql'

?>

____________________________________________________________________

____________________________________________________________________

Link to comment
Share on other sites

catalog/admin/includes/configure.php

<?php

/* osCommerce, Open Source E-Commerce Solutions

http://www.oscommerce.com

Copyright © 2003 osCommerce

Released under the GNU General Public License */

 

// Define the webserver and path parameters

// * DIR_FS_* = Filesystem directories (local/physical)

// * DIR_WS_* = Webserver directories (virtual/URL)

define('HTTP_SERVER', 'http://mydomain.com'); // eg, http://localhost - should not be empty for productive servers

define('HTTP_CATALOG_SERVER', 'http://mydomain.com');

define('HTTPS_CATALOG_SERVER', 'https://mydomain.com');

define('ENABLE_SSL_CATALOG', 'true'); // secure webserver for catalog module

define('DIR_FS_DOCUMENT_ROOT', '/home/REMOVED/public_html'); // where the pages are located on the server

define('DIR_WS_ADMIN', '/store/admin/'); // absolute path required

define('DIR_FS_ADMIN', '/home/REMOVED/public_html/store/admin/'); // absolute path required

// define('DIR_FS_ADMIN', 'http://www.mydomain.com/store/admin/'); // absolute path required

define('DIR_WS_CATALOG', '/store/'); // absolute path required

define('DIR_FS_CATALOG', '/home/REMOVED/public_html/store/'); // absolute path required

define('DIR_WS_IMAGES', 'images/');

//define('DIR_WS_CATALOG_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', 'localhost'); // eg, localhost - should not be empty for productive servers

define('DB_SERVER_USERNAME', 'REMOVED');

define('DB_SERVER_PASSWORD', 'REMOVED');

define('DB_DATABASE', 'REMOVED');

define('USE_PCONNECT', 'false'); // use persisstent connections?

define('STORE_SESSIONS', 'mysql'); // leave empty '' for default handler or set to 'mysql'

?>

____________________________________________________________________

____________________________________________________________________

Link to comment
Share on other sites

I had a similar problem. It was attributed to me trying to replace & with & in html_output.php (i'm pretty sure). I was led to this after breaking down the url in the address bar after the add to cart button was clicked. I changed back from & to & and it worked fine. Perhaps one of your installed contributions has done something like this. Hope this helps.

 

-Mike

Link to comment
Share on other sites

I had a similar problem. It was attributed to me trying to replace & with & in html_output.php (i'm pretty sure). I was led to this after breaking down the url in the address bar after the add to cart button was clicked. I changed back from & to & and it worked fine. Perhaps one of your installed contributions has done something like this. Hope this helps.

 

-Mike

Hi Mike,

 

Just done a whole site search and can only find "&amp" as part of html codes, apart from catalog\includes\functions\meta.php were the code is stripping &amp from its output.

 

Steve

____________________________________________________________________

____________________________________________________________________

Link to comment
Share on other sites

as for your uggly errors, make sure the directory
images/thumbnails/

is writable by apache (i.e. cmod 777).

 

for the cart not filling up, post your includes/configure.php file here so we can take a look at that (without the mysql username pass etc.)

 

Following on from your cmod idea, I went a stage further.

 

Crossing my fingers.. changed the cmod's on both configure.php files and I 'seem' to have solved the problem :D

____________________________________________________________________

____________________________________________________________________

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...