huggettm Posted March 20, 2018 Share Posted March 20, 2018 (edited) https://wonderlanduk.co.uk/store/index.php When i add something to the shopping basket it loads a mobile view within the page? any ideas? Edited March 20, 2018 by huggettm Quote Link to comment Share on other sites More sharing options...
bsmither Posted March 20, 2018 Share Posted March 20, 2018 That is an "off-screen" (placed off to the far right out of view) box that, under javascript control, when an "Add to Basket" button is clicked, AJAX will tell CubeCart to update the customer's shopping basket, and CubeCart will compile the HTML of just the box.basket.php skin template. When CubeCart is finished, the HTML is sent out to the waiting AJAX which will update the page source code and display the box as you see it. This is what is suppose to happen, and this is what it is suppose to look like. Quote Link to comment Share on other sites More sharing options...
huggettm Posted March 20, 2018 Author Share Posted March 20, 2018 Hi Brian, it loads the site again and again inside itself - this has never happened before and is definitely not right im not talking about the view basket popup, i mean the fact the site is loaded twice inside itself Quote Link to comment Share on other sites More sharing options...
bsmither Posted March 20, 2018 Share Posted March 20, 2018 Ah! This is a case where CubeCart has lost that visitor's "session". A session is maintained by a cookie, coupled with PHP keeping a record of that session (the name of the session file and the value of the cookie are the same), and certain things managed in session is databased in CubeCart_sessions (again, using the value of the cookie). So, either CubeCart is having problems maintaining records in the CubeCart_sessions database, PHP is having problems with an overly aggressive sessions garbage collection protocol, or the web browser is not sending back CubeCart's cookies. When the session is lost, CubeCart sends back to the waiting AJAX "Add to Basket" function the complete index.php page. And AJAX replaces the "mini-basket" HTML with the complete page HTML - a page within a page, etc. See if your web browser is sending back the cookie by using the browser's Network diagnostic page. Use an external database utility to examine the CubeCart_sessions table. You may need to get your hosting provider involved to determine if PHP session files are getting clobbered. As an aside, did you just now upgrade CubeCart, and now this is happening? I think a session could get lost if the security token is mismanaged. That is, if the skin's AJAX call does not send the security token with the "Add to Basket" data, or does not use the new security token that CubeCart sends back. A 'wrong token' situation destroys the session. This token mismanagement could happen if you are running a copy of Foundation which that version is now behind what CubeCart expects. Quote Link to comment Share on other sites More sharing options...
huggettm Posted March 20, 2018 Author Share Posted March 20, 2018 (edited) Ah ,could this be caused by changing the .htaccess file? i get this in the check table function: CubeCart_sessions check warning 18 clients are using or haven't closed the table properly Edited March 20, 2018 by huggettm Quote Link to comment Share on other sites More sharing options...
bsmither Posted March 20, 2018 Share Posted March 20, 2018 I am not familiar enough with database servers to know what that advisory would mean. I would guess that you have 18 visitors currently requesting pages from your store. I would think the .htaccess file would have nothing to do with this. Quote Link to comment Share on other sites More sharing options...
huggettm Posted March 21, 2018 Author Share Posted March 21, 2018 ok, thank you for your help Quote Link to comment Share on other sites More sharing options...
keat Posted March 21, 2018 Share Posted March 21, 2018 @huggettm did you fix this as I'm not replicating anything. Quote Link to comment Share on other sites More sharing options...
huggettm Posted March 21, 2018 Author Share Posted March 21, 2018 sorry, code a code fix from tech support this morning Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.