Totti Posted June 7, 2014 Share Posted June 7, 2014 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 ? Link to comment Share on other sites More sharing options...
Totti Posted June 7, 2014 Author Share Posted June 7, 2014 Help me ! Link to comment Share on other sites More sharing options...
Totti Posted June 9, 2014 Author Share Posted June 9, 2014 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 ? Link to comment Share on other sites More sharing options...
Recommended Posts