kbrmin Posted September 28, 2011 Share Posted September 28, 2011 Sometimes when I add an item to the cart, I get a message "Invalid token" or the item just doesn't add to the cart. How do I fix that? If I refresh the page (resubmit the item) it works usually. http://kingsblooming...d8ef718dbe4 Link to comment Share on other sites More sharing options...
kbrmin Posted September 30, 2011 Author Share Posted September 30, 2011 Is anyone else having this problem?? A customer is having this message when adding an item to cart. I only get the message sometimes. Link to comment Share on other sites More sharing options...
Mike Kranzler Posted October 6, 2011 Share Posted October 6, 2011 Hi kbrmin, There are several different things that can be causing this issue, but I can't identify the best approach for you unless I can reproduce the error. Can you please give me more details on the steps needed to reach this error? -Mike Link to comment Share on other sites More sharing options...
kbrmin Posted October 14, 2011 Author Share Posted October 14, 2011 One of the repeating times this message occurs seems to be after I have from the Back Office emptied the cart of a browser. How should I reproduce that error for you? Link to comment Share on other sites More sharing options...
Mike Kranzler Posted October 14, 2011 Share Posted October 14, 2011 One of the repeating times this message occurs seems to be after I have from the Back Office emptied the cart of a browser. How should I reproduce that error for you? Are there specific steps I can take as a potential customer (in the Front Office) that would give me this error? I just tried again, and continue to have no trouble adding products to the cart. -Mike Link to comment Share on other sites More sharing options...
kbrmin Posted October 14, 2011 Author Share Posted October 14, 2011 I think I found the cart you added the product to, and emptied it. Now it might show the error; it seems to show up after I have emptied someone's cart. Link to comment Share on other sites More sharing options...
Mike Kranzler Posted October 14, 2011 Share Posted October 14, 2011 Still working fine for me... Sounds like your customers may want to try clearing their browser's cache and cookies, hopefully that will solve a lot of these issues. -Mike Link to comment Share on other sites More sharing options...
Lyn&Or Bijoux Posted January 10, 2012 Share Posted January 10, 2012 Hi, i have the same problem and i don't know hao to solve it. WHen the costumer is not logged, there's no problem, the product is going in the cart. But, when the costumer is logged, and click on "add to cart" a new page appears whit the error 01.token invalid I tried to empty cache of my navigator i tried to update paypal module what can i do for that? Thanks (and sorry for my bad english) Link to comment Share on other sites More sharing options...
Mike Kranzler Posted January 16, 2012 Share Posted January 16, 2012 Hi corbeille-cadeaux, Can you please post your URL so that I can test this out for you? -Mike Link to comment Share on other sites More sharing options...
Lyn&Or Bijoux Posted January 18, 2012 Share Posted January 18, 2012 hi mike, the url is http://www.le-coffre-a-bijoux.com To see the error, you have to create an account first, and put a jewel in your cart. thanks Link to comment Share on other sites More sharing options...
Mike Kranzler Posted January 18, 2012 Share Posted January 18, 2012 hi mike, the url is http://www.le-coffre-a-bijoux.com To see the error, you have to create an account first, and put a jewel in your cart. thanks Do you have instant search enabled in your Back Office? -Mike Link to comment Share on other sites More sharing options...
Lyn&Or Bijoux Posted January 18, 2012 Share Posted January 18, 2012 Hi, by instant search, do you mean the module blocksearch? this one is not enabled on my site. I've the module ya search (advanced search) which works with module blocklayered. Link to comment Share on other sites More sharing options...
Mike Kranzler Posted January 18, 2012 Share Posted January 18, 2012 No, Instant Search is an option in your Back Office under Preferences > Search. Please let me know whether or not you have that enabled currently. -Mike Link to comment Share on other sites More sharing options...
Lyn&Or Bijoux Posted January 18, 2012 Share Posted January 18, 2012 hi, no it's not enable for instance Link to comment Share on other sites More sharing options...
Mike Kranzler Posted January 18, 2012 Share Posted January 18, 2012 hi, no it's not enable for instance Can you also please check if "Increase Front Office Security" is enabled in your Back Office under Preferences? -Mike Link to comment Share on other sites More sharing options...
Lyn&Or Bijoux Posted January 18, 2012 Share Posted January 18, 2012 hi, yes it's enable. You have to know that i use the module ebsupercache too. Link to comment Share on other sites More sharing options...
Mike Kranzler Posted January 18, 2012 Share Posted January 18, 2012 hi, yes it's enable. You have to know that i use the module ebsupercache too. Can you please disable "Increase Front Office Security," ensure that you have Force Compile set to Yes and Cache set to No under Preferences > Performance and then let me know if that works better for you? There is a code fix I can suggest for this, but I want to confirm that this is the root of your issue first. -Mike Link to comment Share on other sites More sharing options...
Lyn&Or Bijoux Posted January 18, 2012 Share Posted January 18, 2012 Hi, yes, it seems to work fine with: front office security : no Force compile: yes cache: no your code could be helpfull Link to comment Share on other sites More sharing options...
Mike Kranzler Posted January 18, 2012 Share Posted January 18, 2012 Hi corbeille, This appears to be an issue with a missing security token. In your modules/blocklayered/blocklayered.php file, please locate the following line: $smarty->assign('products_per_page', (int)Configuration::get('PS_PRODUCTS_PER_PAGE')); And just after that, add this: $smarty->assign('static_token', Tools::getToken(false)); That should allow you to reactivate the Front Office Security and resolve this issue. I hope this helps. Please let me know if this works for you. -Mike Link to comment Share on other sites More sharing options...
Lyn&Or Bijoux Posted January 18, 2012 Share Posted January 18, 2012 Hi, i'd this error Fatal error: Call to a member function assign() on a non-object in /public_html/modules/blocklayered/blocklayered.php on line 30 Link to comment Share on other sites More sharing options...
Mike Kranzler Posted January 18, 2012 Share Posted January 18, 2012 Hi, i'd this error Fatal error: Call to a member function assign() on a non-object in /public_html/modules/blocklayered/blocklayered.php on line 30 Can you please email me a copy of your blocklayered.php file to mike DOT kranzler AT prestashop DOT com? I'll take a look at it for you and try to identify where there may be an error. -Mike Link to comment Share on other sites More sharing options...
Mike Kranzler Posted January 18, 2012 Share Posted January 18, 2012 Hi corbeille, The file you sent me looked like you hadn't made the suggested change, but I've sent you back an updated version with the fix. Please let me know if that resolves your issue. -Mike Link to comment Share on other sites More sharing options...
Lyn&Or Bijoux Posted January 18, 2012 Share Posted January 18, 2012 hi mike, it seems work well with your new blocklayered.php! thanks a lot for your time and help MJ Link to comment Share on other sites More sharing options...
Mike Kranzler Posted January 18, 2012 Share Posted January 18, 2012 I'm glad I could help! Happy selling! -Mike Link to comment Share on other sites More sharing options...
Lyn&Or Bijoux Posted January 18, 2012 Share Posted January 18, 2012 bad news! in fact it doesn't work... in BO, i've this error: The following module(s) couldn't be loaded: blocklayered (parse error in /modules/blocklayered/blocklayered.php) blocklayered (class missing in /modules/blocklayered/blocklayered.php) and on FO: sometimes i'm connected, sometimes not, token invalid here again when i took a product when i'm connected sorry Link to comment Share on other sites More sharing options...
Mike Kranzler Posted January 18, 2012 Share Posted January 18, 2012 What version of PrestaShop are you using currently? -Mike Link to comment Share on other sites More sharing options...
Lyn&Or Bijoux Posted January 18, 2012 Share Posted January 18, 2012 pS 1.4.6.2 until few days Link to comment Share on other sites More sharing options...
Mike Kranzler Posted January 18, 2012 Share Posted January 18, 2012 pS 1.4.6.2 until few days So has this issue only been since you upgraded to 1.4.6.2? -Mike Link to comment Share on other sites More sharing options...
Lyn&Or Bijoux Posted January 18, 2012 Share Posted January 18, 2012 it already happened before, and i 'd to ask to my customer to create a new account. it was not each time. Link to comment Share on other sites More sharing options...
Mike Kranzler Posted January 18, 2012 Share Posted January 18, 2012 Can you please provide a screenshot of these errors? Additionally, how did you replace the file? -Mike Link to comment Share on other sites More sharing options...
Lyn&Or Bijoux Posted January 18, 2012 Share Posted January 18, 2012 Listen, i'm asking me if it's not a problem with the supercache. i'll try to contact the builder and i'm coming back later... thanks Link to comment Share on other sites More sharing options...
Recommended Posts