Jump to content

Webservice & debug mode


Totti
 Share

Recommended Posts

http://www.xxxxx.com/api/orders?filter[current_state]=[2]&display=full?url=orders&filter[current_state]=[2]&display=full

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

http://forge.prestashop.com/browse/PSCSX-2344?filter=-2

 

i modify this module :

https://github.com/Pajk/prestashop/blob/master/classes/WebserviceRequest.php

line $display_errors = strtolower(ini_get('display_errors')) != 'off';
in
$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

 Share

×
×
  • Create New...

Important Information

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