Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

checkout process logs out on trying to get to payment info


Recommended Posts

Hi all,

When I try to do check out in my shopping cart, whenever I get to the checkout_shipping.php page and click the [continue] button, the cart instantly logs out.

I noticed that while on the shopping_cart.php, if I hover over the [continue] button, it gets darker and points to the checkout_shipping.php page.

However, on the checkout_shipping.php page the [continue] button (while it gets darker on hovering) points to nowhere (ie nothing shows on the bottom of the page unlike the page before) and upon clicking it logs out.

Can someone help debug this?

I have installed Bootstrap Gold Edge (2.3.4.1 or master) under PHP 7.1

Thank you,

Thadson

Link to comment
Share on other sites

Hello Attila @thadson,

The behaviour of the 2 buttons is correct like you describe it. The continue button on the shopping_cart page links directly to the checkout shipping page, so it shows the link.

The continue button on th echeckout shipping page is a form submit button, therefore it doesn't show any link. The next page , checkout payment, is reached by a redirect on processing the form submitted data in the checkout shipping page.

Therefore the problem maybe produced by a wrong store configuration.

First of all one question: you say " Bootstrap Gold Edge (2.3.4.1 or master) under PHP 7.1 "

Make sure you didnb't download the GOLD version. It is outdated and not compatible with PHP 7.1.

You have to use the EDGE version (GOLD is not equal to EDGE)

https://github.com/gburton/Responsive-osCommerce/archive/master.zip

 

When you ensured to use the right version and you have still the same issue, please post your includes/configure.php (without the database credentials at the end).

 

Link to comment
Share on other sites

5 minutes ago, raiwa said:

When you ensured to use the right version and you have still the same issue, please post your includes/configure.php (without the database credentials at the end).

You could also check if you have in your CPanel the correct session.save_path in PHP options

Link to comment
Share on other sites

I'm sure about using the right version. I thought the Edge was called Gold Edge, my mistake, but I meand Edge not gold.

here is the content requested:

  define('HTTP_SERVER', 'http://my_osc_site.com');
  define('HTTPS_SERVER', 'https://my_osc_site.com');
  define('ENABLE_SSL', false);
  define('HTTP_COOKIE_DOMAIN', '');
  define('HTTPS_COOKIE_DOMAIN', '');
  define('HTTP_COOKIE_PATH', '/shop/admin');
  define('HTTPS_COOKIE_PATH', '/shop/admin');
  define('HTTP_CATALOG_SERVER', 'http://my_osc_site.com');
  define('HTTPS_CATALOG_SERVER', 'https://my_osc_site.com');
  define('ENABLE_SSL_CATALOG', 'false');
  define('DIR_FS_DOCUMENT_ROOT', '/home/my_osc_site/public_html/shop/');
  define('DIR_WS_ADMIN', '/shop/admin/');
  define('DIR_WS_HTTPS_ADMIN', '/shop/admin/');
  define('DIR_FS_ADMIN', '/home/my_osc_site/public_html/shop/admin/');
  define('DIR_WS_CATALOG', '/shop/');
  define('DIR_WS_HTTPS_CATALOG', '/shop/');
  define('DIR_FS_CATALOG', '/home/my_osc_site/public_html/shop/');
  define('DIR_WS_CATALOG_IMAGES', DIR_WS_CATALOG . 'images/');
  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('DIR_FS_DOWNLOAD', DIR_FS_CATALOG . 'download/');
  define('DIR_FS_DOWNLOAD_PUBLIC', DIR_FS_CATALOG . 'pub/');
  define('DIR_WS_ICONS', DIR_WS_CATALOG . 'admin/images/icons/');

I had to manually add in the DIR_WS_ICONS as it was needed for the theme_switcher add on, which I have used the latest bootstrap version as well.

I have changed my site to "my_osc_site" and my admin dir (since I don't like to advertise my admin dir name on a public forum), but otherwise everything is the same.

If you need me to send you the site and the original file, I can send  it to you on a private chanel if such exists.

Thank you for helping me. I appreciate it.

Link to comment
Share on other sites

This is the admin configure file, we'll need the store configure file:

shop/includes/configure.php, not shop/admin/includes/configure.php

Meanwhile, instead to add the DIR_WS_ICONS directory definition, it would be better to update your add-on to hardcoded path:' images/icons/'

 

AND:

- chekc your settings in: Admin => Configure => Sessions

Specifically your session path and check if it is writeable.

Link to comment
Share on other sites

  define('HTTP_SERVER', 'http://erikoart.com');
  define('HTTPS_SERVER', 'https://erikoart.com');
  define('ENABLE_SSL', false);
  define('HTTP_COOKIE_DOMAIN', '');
  define('HTTPS_COOKIE_DOMAIN', '');
  define('HTTP_COOKIE_PATH', '/shop/');
  define('HTTPS_COOKIE_PATH', '/shop/');
  define('DIR_WS_HTTP_CATALOG', '/shop/');
  define('DIR_WS_HTTPS_CATALOG', '/shop/');

  define('DIR_FS_CATALOG', '/home/erikoart/public_html/shop/');
  define('DIR_FS_DOWNLOAD', DIR_FS_CATALOG . 'download/');
  define('DIR_FS_DOWNLOAD_PUBLIC', DIR_FS_CATALOG . 'pub/');

 

session path is writable and I see new stuff in there.

Link to comment
Share on other sites

This looks correct.

What about this:

59 minutes ago, raiwa said:

You could also check if you have in your CPanel the correct session.save_path in PHP options

 

34 minutes ago, raiwa said:

- check your settings in: Admin => Configure => Sessions

Specifically your session path and check if it is writeable.

 

Link to comment
Share on other sites

Directive                    Local Value                                                                      Master Value
session.save_path /home/erikoart/public_html/shop/includes/work/  /tmp

Link to comment
Share on other sites

43 minutes ago, raiwa said:

Meanwhile, instead to add the DIR_WS_ICONS directory definition, it would be better to update your add-on to hardcoded path:' images/icons/'

there is no includes/images/icons/ folder in edge only admin/includes/images/icons/

where should I update the add-on?

Link to comment
Share on other sites

Can you check if in admin => Configure => Sessions this is set all to the following default values:

Force Cookie Use False Info 
Check SSL Session ID False Info 
Check User Agent False Info 
Check IP Address False Info 
Prevent Spider Sessions True Info 
Recreate Session True
Link to comment
Share on other sites

2 minutes ago, thadson said:

there is no includes/images/icons/ folder in edge only admin/includes/images/icons/

where should I update the add-on?

Search all your add-on files for DIR_WS_ICONS and replace it by DIR_WS_CATALOG . 'admin/images/icons/'

Link to comment
Share on other sites

Try to change Recreate setting to false and Force cookie use to true (one by one). Did you try with a different browser?

Link to comment
Share on other sites

10 minutes ago, raiwa said:

Search all your add-on files for DIR_WS_ICONS and replace it by DIR_WS_CATALOG . 'admin/images/icons/'

would DIR_WS_ADMIN . 'images/icons/' work? this way it picks up whatever I name my admin dir?

Link to comment
Share on other sites

thank you,

15 minutes ago, raiwa said:

Try to change Recreate setting to false and Force cookie use to true (one by one). Did you try with a different browser?

tried both, no change, still logging out.

I also have removed the "theme switcher module" to see if there is any difference, but no change , still logs out

 

Link to comment
Share on other sites

10 minutes ago, raiwa said:

Yes, sorry, my fault, but it should be then: DIR_WS_CATALOG . DIR_WS_ADMIN . 'images/icons/'

 

if

define('DIR_WS_ADMIN', '/shop/admin/');

and

define('DIR_WS_CATALOG', '/shop/');

wouldn't DIR_WS_CATALOG . DIR_WS_ADMIN . 'images/icons/' make it into a /shop/shop/admin/images/icons/ ?

 

Link to comment
Share on other sites

yes, removed my last message, messed up again, sorry.

For the session problem, I have no more ideas, sorry.

Link to comment
Share on other sites

as a last thing, could you go in there and tell me if it behaves for you the same, it is set for COD so you could test ordering...

also afterwards you can delete the acount or I can delete it for you. if you wish

if you don't want to do that, I unserstand too, just let me know please.

 

In any case, thank you for all the help.

Link to comment
Share on other sites

I don't think it's a session problem at all. I created an account and can move around quite happily without losing the session. What's the store country so I can set up an address that lets me into checkout?

Contact me for work on updating existing stores - whether to Phoenix or the new osC when it's released.

Looking for a payment or shipping module? Maybe I've already done it.

Working on generalising bespoke solutions for Quickbooks integration, Easify integration and pay4later (DEKO) integration at 2.3.x

Link to comment
Share on other sites

I remember now that I had some time ago similar issue on my hosting and it was related to a PHP config setting in php.ini but I can't say which exact because my host doesn't let see or edit the exact settings. They only let me choose among different pre sets.

Anyway I post now my php.ini from my local XAMPP PHP 7.1 installation which works correct, so you can compare:

php.ini

 

Link to comment
Share on other sites

 

19 minutes ago, BrockleyJohn said:

I don't think it's a session problem at all. I created an account and can move around quite happily without losing the session. What's the store country so I can set up an address that lets me into checkout?

I checked and it is like he says. Try with US-Illinois.

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...