AllSmart Posted December 11, 2013 Share Posted December 11, 2013 I'm having critical issues with Prestashop 1.5.6. After a product is purchased and paid, it isn't available / accessible anymore. The product is visible everywhere (category, bestsellers, etc.) but when you click it, it directs immediately to the "Oops, something went wrong" page. I have turned on error reporting, see below: [PrestaShopException]Invalid product varsat line 104 in file classes/Link.php 98. if (is_array($product) && isset($product['id_product'])) 99. $product = new Product($product['id_product'], false, $id_lang, $id_shop); 100. elseif ((int)$product) 101. $product = new Product((int)$product, false, $id_lang, $id_shop); 102. else 103. throw new PrestaShopException('Invalid product vars'); 104. } 105. 106. // Set available keywords 107. $params = array(); 108. $params['id'] = $product->id; LinkCore->getProductLink - [line 53 - cache/smarty/compile/77/c7/67/77c76765d3c79bb690af3fc36b220fe7be3f6502.file.crossselling.tpl.cache.php] - [4 Arguments] content_52a250b888b794_29505948 - [line 180 - tools/smarty/sysplugins/smarty_internal_templatebase.php] - [1 Arguments] Address of my site is allsmart.nl See these 2 products which I have purchased for testing purposes: - Aeon Labs Z-Wave Panic Button (https://allsmart.nl/afstandsbedieningen/70/aeon-labs-z-wave-panic-button/) - Aeon Labs Z-Wave Key-fob (https://allsmart.nl/afstandsbedieningen/61/aeon-labs-z-wave-key-fob-afstandsbediening/) This is very urgent for me, what should I do, where can I go? Can someone please help me out? Thanks a lot Link to comment Share on other sites More sharing options...
matzmu Posted December 11, 2013 Share Posted December 11, 2013 1.try to clear cache 2. what is in $product? dump this variable to check is product exist 3. Product is avaible in admin page? Link to comment Share on other sites More sharing options...
AllSmart Posted December 11, 2013 Author Share Posted December 11, 2013 1. Already tried clearing the cache > no luck 2. Could you be more specific please? I didn't get this point 3. Yes product is available in admin, also viewable / editable. This is what I tried so far: - clear cache - buying single and multiple products in checkout - different checkout options Every product which is sold, will end up on the "Oops" page. You can try it yourself (use country Belgie and payment option "Mister Cash") This will lead you to test payment site. The crazy thing is; when I cancel or refund the order, the products are available as normal again. Thanks so far Link to comment Share on other sites More sharing options...
AllSmart Posted December 12, 2013 Author Share Posted December 12, 2013 Please help.. I can't put my store into live if I can sell my products only once. Link to comment Share on other sites More sharing options...
matzmu Posted December 12, 2013 Share Posted December 12, 2013 (edited) it is hard issue , do you code your presta by your self? Or you hired agency? before if user : die(var_dump($product)); and write what you got i send you priv msg Edited December 12, 2013 by matzmu (see edit history) Link to comment Share on other sites More sharing options...
AllSmart Posted December 12, 2013 Author Share Posted December 12, 2013 I have no agency or something. I installed and configured myself, however I'm not a coder / developer. So I don't understand where to put the line: die(var_dump($product)); Thanks Link to comment Share on other sites More sharing options...
AllSmart Posted January 2, 2014 Author Share Posted January 2, 2014 Again, I have the same issues. This is driving me crazy, can please someone help me? I'm willing to pay, but this really needs to be fixed. Debug moded is enabled, see this product of this or this I can't keep copying products, because this is bad for SEO / Google. Someone please help Link to comment Share on other sites More sharing options...
AllSmart Posted January 2, 2014 Author Share Posted January 2, 2014 Issues still occur with Stock management enabled.. Link to comment Share on other sites More sharing options...
El Patron Posted January 2, 2014 Share Posted January 2, 2014 when this happens, when you look at the product from back office, is it enabled or disabled? here is a screen shot, of a disabled product. http://screencast.com/t/wgdfxTMxDR3y Link to comment Share on other sites More sharing options...
AllSmart Posted January 2, 2014 Author Share Posted January 2, 2014 The products are enabled, nothing changes within the product details. I also tried to disable and enable product, but still same issue. Link to comment Share on other sites More sharing options...
El Patron Posted January 2, 2014 Share Posted January 2, 2014 see if this helps http://www.prestashop.com/forums/topic/271232-constant-errors-invalid-product-vars-at-line-108-in-file-classeslinkphp/ Link to comment Share on other sites More sharing options...
El Patron Posted January 2, 2014 Share Posted January 2, 2014 see if this helps http://www.prestashop.com/forums/topic/271232-constant-errors-invalid-product-vars-at-line-108-in-file-classeslinkphp/ Sorry about that, didn't mean to give you a false hope. I saw you posted the code up top and that fix is in your version of ps. is this a native 1.5.6 or did you upgrade/ Link to comment Share on other sites More sharing options...
AllSmart Posted January 2, 2014 Author Share Posted January 2, 2014 Yes, I double checked. In my version it was already like that. Anything else to look for..? Link to comment Share on other sites More sharing options...
El Patron Posted January 2, 2014 Share Posted January 2, 2014 did you upgrade this from a previous version? Link to comment Share on other sites More sharing options...
AllSmart Posted January 2, 2014 Author Share Posted January 2, 2014 No, I didn't. The strange this, it doesn't happen all the time, nor to all products. I can't figure out what the root cause is or was. Link to comment Share on other sites More sharing options...
El Patron Posted January 2, 2014 Share Posted January 2, 2014 try this (we are going to uninstall cross selling module) back office-->modules-->{in search box type cross}-->select cross selling module uninstall and retest 2 Link to comment Share on other sites More sharing options...
AllSmart Posted January 2, 2014 Author Share Posted January 2, 2014 WOW!! That actually solved it!! I can't tell you how thankful I am! I will keep you informed on future status. The ironic thing is that my custom theme has its own cross selling module. So that must have been causing this. Thank you so much! 1 Link to comment Share on other sites More sharing options...
El Patron Posted January 2, 2014 Share Posted January 2, 2014 you are very welcome, glad I could help. Link to comment Share on other sites More sharing options...
enSysRanjit Posted February 17, 2015 Share Posted February 17, 2015 Hey Guys, I have a same problem. In my case the cross sell module is not installed. Please refer attached screenshot. http://my.jetscreenshot.com/demo/20150217-ufxl-107kb.jpg Please help me. Link to comment Share on other sites More sharing options...
AllSmart Posted February 17, 2015 Author Share Posted February 17, 2015 Please note that this topic was in the v1.5 time, in the meanwhile Presta is v1.6 Unfortunately I don't have the expertise to support you. Link to comment Share on other sites More sharing options...
El Patron Posted February 17, 2015 Share Posted February 17, 2015 Hey Guys, I have a same problem. In my case the cross sell module is not installed. Please refer attached screenshot. http://my.jetscreenshot.com/demo/20150217-ufxl-107kb.jpg Please help me. first it's best not to post in 'solved' topic, and it can't be the same problem if the solution did not help. I suggest you open a new topic so entire community will see it. Link to comment Share on other sites More sharing options...
Gipielle Posted April 10, 2015 Share Posted April 10, 2015 We have the same problem with ps 1.5.6.1 but cross selling is not installed Link to comment Share on other sites More sharing options...
Gipielle Posted April 10, 2015 Share Posted April 10, 2015 Solved with this: https://github.com/PrestaShop/PrestaShop/commit/8e506ddff20568c21e3d99c583a28bb7ad41d7da 1 Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now