Jump to content

InvalidArgumentException for Webservice with Composer

Recommended Posts


I'm trying to read a prestashop resource like in the following official tuto


But, i've have a problem with the composer install  :

I said yes to the question :"Do you want to use the one in /var/www/html?"



I don't know what kind of argument he want.

I've try :

composer require "prestashop/prestashop-webservice-lib -dev   : but he don't found a package. 


  • Is it because my Prestashop version is to high ?  


Here my details

The shop and back office functionality and API are OK  

mod_rewrite enabled  : ok 


Curl : ok 

The result from script : phppsinfo.php


For the install, I've make   

chmod -R 777 /var/www/html/test   (my folder where will be the script and lib) 

chown -R www-data:www-data /var/www/html/test

My API is OK, i think , i've result like this for addresses 


I'm blocked since two days with it Thank you very much in advance if someone have just an idea or a solution ! 






Edited by olivier.mongeot@gmail.com (see edit history)

Share this post

Link to post
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...

Important Information

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