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

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Create New...

Important Information

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