Jump to content

Web Service, Products, Internal Error 500


Recommended Posts

Hello everyone,
i openend the shop xml files typing in my browser http://localhost/api/. I can access the customers section, but i cannot access the products or categories section.
When i activate the debug mode in config/defines.inc.php the following error message comes up:

Fatal error: Uncaught Error: Function name must be a string in C:\xampp\htdocs\classes\webservice\WebserviceOutputBuilder.php:542
Stack trace:
#0 C:\xampp\htdocs\classes\webservice\WebserviceOutputBuilder.php(481): WebserviceOutputBuilderCore->renderField(Object(Product), Array, 'id_default_imag...', Array, 0)
#1 C:\xampp\htdocs\classes\webservice\WebserviceOutputBuilder.php(385): WebserviceOutputBuilderCore->renderEntity(Object(Product), 0)
#2 C:\xampp\htdocs\classes\webservice\WebserviceRequest.php(1694): WebserviceOutputBuilderCore->getContent(Array, NULL, 'full', 0, 2)
#3 C:\xampp\htdocs\classes\webservice\WebserviceRequest.php(560): WebserviceRequestCore->returnOutput()
#4 C:\xampp\htdocs\webservice\dispatcher.php(87): WebserviceRequestCore->fetch('E1UP4CKKTLKNZ2N...', 'GET', 'products/2', Array, false, NULL)
#5 {main}
  thrown in C:\xampp\htdocs\classes\webservice\WebserviceOutputBuilder.php on line 542

I admit that i just changed the supported versions on line 49 in PSWebServiceLibrary.php to  

 const psCompatibleVersionsMax = '';

because that is my current version. Some tries accessing the webservice with a token in php resulted in the same error code.


How can I fix this problem?

May I downgrade to


Kind regards,


Link to comment
Share on other sites

  • 1 month later...
  • 4 weeks later...
  • 1 month later...

That solve the issue with get requests...


When i perform add i get this:

 Array to string conversion (....httpdocs/classes/webservice/WebserviceRequest.php, line 1431)



and you can solve it changing line 1431 to:




according to



Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Create New...