raffciio Posted March 25, 2016 Share Posted March 25, 2016 Witam, Mam jeszcze jeden problem który pojawił się po kilku zamówieniach w sklepie. Mianowicie przy włączonej funkcji koszyk Ajax przy dodawaniu produktu do koszyka otrzymuje błąd 500 . Oczywiście sytuację można rozwiązać wyłączając koszyk ajax jednak to ogranicza znacząco funkcje presty. NIe ma np popup z dodanym produktem itd. Ma ktoś jakiś pomysł ? Błąd który otrzymuję poniżej. Impossible to add the product to the cart.textStatus: 'error'errorThrown: 'Internal Server Error'responseText: 500 Server ErrorOops, something went wrong.Try to refresh this page or feel free to contact us if the problem persists. Link to comment Share on other sites More sharing options...
endriu107 Posted March 25, 2016 Share Posted March 25, 2016 Tryb debugowania pokazuje jakieś błędy? Link to comment Share on other sites More sharing options...
raffciio Posted March 25, 2016 Author Share Posted March 25, 2016 Tryb debugowania pokazuje jakieś błędy? To znaczy? jak sprawdzić ? Link to comment Share on other sites More sharing options...
endriu107 Posted March 25, 2016 Share Posted March 25, 2016 https://www.prestashop.com/forums/topic/272660-500-error-b%C5%82%C4%99dy-bia%C5%82a-strona-instrukcja-dotycz%C4%85ca-trybu-debugowania/ Link to comment Share on other sites More sharing options...
raffciio Posted March 25, 2016 Author Share Posted March 25, 2016 https://www.prestashop.com/forums/topic/272660-500-error-b%C5%82%C4%99dy-bia%C5%82a-strona-instrukcja-dotycz%C4%85ca-trybu-debugowania/ zrobiłem według instrukcji i otrzymany komunikat nic mi nie mówi więc liczę na jakąś pomoc mpossible to add the product to the cart. textStatus: 'error' errorThrown: 'Internal Server Error' responseText: [PrestaShopException]Invalid product vars at line 106 in file classes/Link.php 101. if (is_array($product) && isset($product['id_product'])) {102. $product = new Product($product['id_product'], false, $id_lang, $id_shop); 103. } elseif ((int)$product) { 104. $product = new Product((int)$product, false, $id_lang, $id_shop); 105. } else { 106. throw new PrestaShopException('Invalid product vars'); 107. } 108. } 109. 110. // Set available keywords 111. $params = array(); LinkCore->getProductLink - [line 47 - cache/smarty/compile/8f/29/bf/8f29bf58950d2a62f32ac6bc24c557f1fcd0194b.file.crossselling.tpl.php] - [7 Arguments] content_56f46f34509525_17617320 - [line 188 - tools/smarty/sysplugins/smarty_internal_templatebase.php] - [1 Arguments] Smarty_Internal_TemplateBase->fetch - [line 317 - classes/SmartyCustom.php] - [7 Arguments] Smarty_Custom_Template->fetch - [line 2309 - classes/module/Module.php] ModuleCore->display - [line 215 - modules/blockcart/blockcart.php] - [2 Arguments] BlockCart->hookAjaxCall - [line 30 - modules/blockcart/blockcart-ajax.php] - [1 Arguments] require_once - [line 417 - controllers/front/CartController.php] - [1 Arguments] CartControllerCore->displayAjax - [line 206 - classes/controller/Controller.php] ControllerCore->run - [line 367 - classes/Dispatcher.php] 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