Jump to content
asd789789

Debug mode 1.6

Recommended Posts

It is in the same spot as it was in 1.5

Share this post


Link to post
Share on other sites

shout out to sjaakie3 who reported dh42 post as unhelpful..if you can't keep up with the conversation then don't participate.

  • Like 1

Share this post


Link to post
Share on other sites

I must have missed that report. 

Share this post


Link to post
Share on other sites

I must have missed that report. 

 

I worked it and sent pm to help reporter be more socially inclusive.

Share this post


Link to post
Share on other sites

It is in the same spot as it was in 1.5

DH 42 next time you take the whole prestashop manual as answer  ;)

  • Like 1

Share this post


Link to post
Share on other sites

Good evening, Prestashop gurus and enthusiasts!

 

Could You please help me to solve the problem I have with the debug mode on and off 

 

My site is as follows: http://mk-i-tochka.ru.xsph.ru/

 

1. When I test now  - I have an error above the site content - please see screenshot

http://joxi.ru/p27owbDCLexl27

 

I know the nature of the error - it is regarding delivery module which require complete information about shipping weight and dimensions.

 

In root/config folder the file  defines.inc.php includes the code which is to disable the debug mode as follows:

/* Debug only */
if (!defined('_PS_MODE_DEV_'))
define('_PS_MODE_DEV_', false);
/* Compatibility warning */
define('_PS_DISPLAY_COMPATIBILITY_WARNING_', false);
if (_PS_MODE_DEV_)
{
	@ini_set('display_errors', 'on');
	@error_reporting(E_ALL | E_STRICT);
	define('_PS_DEBUG_SQL_', true);
}
else
{
	@ini_set('display_errors', 'off');
	define('_PS_DEBUG_SQL_', false);
}

define('_PS_DEBUG_PROFILING_', false);
define('_PS_MODE_DEMO_', false);

It is strange for me. Why does this appear even with turned off debug mode? 

I would be pleased if You could give me an idea. 

 

2. Yesterday I tried to set up watermark module. And it has crushed my BO and FO - I asked hosting support people to  recover.

After recovery  some message could start appearing (something happenned wrong with ajax cart adding and deleting)  - please see the following screenshot 

 

http://joxi.ru/gmv7EbQfeYnQ2a

 

Impossible to add the product to the cart.
textStatus: 'parsererror'
errorThrown: 'SyntaxError: Unexpected token a'
responseText:
array(1) { ["error"]=> array(1) { [0]=> array(2) { ["code"]=> int(4) ["text"]=> string(70) "Ошибка при указании параметров 0 места" } } } array(1) { ["error"]=> array(1) { [0]=> array(2) { ["code"]=> int(4) ["text"]=> string(70) "Ошибка при указании параметров 0 места" } } } {"products":[{"id":641,"link":"http:\/\/mk-i-tochka.ru.xsph.ru\/svitera-pulovery-djempery\/641-djemper.html#\/razmer_odezhda_staryj-46\/cvet-seryj","quantity":1,"image":"http:\/\/mk-i-tochka.ru.xsph.ru\/510-home_default\/djemper.jpg","image_cart":"http:\/\/mk-i-tochka.ru.xsph.ru\/510-cart_default\/djemper.jpg","priceByLine":"400 \u0440\u0443\u0431","name":"\u0414\u0436\u0435\u043c\u043f\u0435\u0440 Oiu","price":"400 \u0440\u0443\u0431","price_float":400,"idCombination":416,"idAddressDelivery":47,"is_gift":false,"hasAttributes":true,"attributes":"46, \u0421\u0435\u0440\u044b\u0439","hasCustomizedDatas":false,"customizedDatas":[]},{"id":20,"link":"http:\/\/mk-i-tochka.ru.xsph.ru\/kofty-bluzki-rubashki\/20-vodolazka-rozovaja.html#\/razmer_odezhda_staryj-36\/cvet-rozovyj","quantity":3,"image":"http:\/\/mk-i-tochka.ru.xsph.ru\/453-home_default\/vodolazka-rozovaja.jpg","image_cart":"http:\/\/mk-i-tochka.ru.xsph.ru\/453-cart_default\/vodolazka-rozovaja.jpg","priceByLine":"1 200 \u0440\u0443\u0431","name":"\u0412\u043e\u0434\u043e\u043b\u0430\u0437\u043a\u0430 \u0440\u043e\u0437\u043e\u0432\u0430\u044f","price":"1 200 \u0440\u0443\u0431","price_float":1200,"idCombination":534,"idAddressDelivery":47,"is_gift":false,"hasAttributes":true,"attributes":"36, \u0420\u043e\u0437\u043e\u0432\u044b\u0439","hasCustomizedDatas":false,"customizedDatas":[]}],"discounts":[],"shippingCost":"240 \u0440\u0443\u0431","shippingCostFloat":240,"wrappingCost":"0 \u0440\u0443\u0431","nbTotalProducts":4,"total":"1 840 \u0440\u0443\u0431","productTotal":"1 600 \u0440\u0443\u0431","freeShipping":"0 \u0440\u0443\u0431","freeShippingFloat":0,"hasError":false,"crossSelling":""

 

Also on deleting products from the cart (using ajax) - 

 

           Error: unable to delete the product

 

Please advice any idea how to fix that problem

 

Thank You in advance

Edited by IgorOsnitsky (see edit history)

Share this post


Link to post
Share on other sites

×
×
  • Create New...

Important Information

Cookies ensure the smooth running of our services. Using these, you accept the use of cookies. Learn More