Jump to content

Webservice & debug mode


Recommended Posts


if I run this query via webservice gives me error :

<prestashop><errors><error><message>Internal error. To see this error please display the PHP errors.</message></error></errors></prestashop>

But if I enable debugging me everything is working correctly.

I tried the same script in a test environment and it works without debugging.


What can it be ?

Share this post

Link to post
Share on other sites



i modify this module :


line $display_errors = strtolower(ini_get('display_errors')) != 'off';
$display_errors =true;

Now if I do the same query gives me this error:

<prestashop><errors><error><code>3</code><message>PHP Warning #2 preg_match(): Compilation failed: invalid range in character class at offset 10 (/data/vhosts/xxx.com/httpdocs/classes/webservice/WebserviceRequest.php, line 1636)</message></error></errors></prestashop>

line 1636 :
elseif (preg_match('/^([\d\.:-\s]),([\d\.:-\s])$/', $matches[2], $matches3))

How should I change ?

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