Jump to content
olivier.mongeot@gmail.com

InvalidArgumentException for Webservice with Composer

Recommended Posts

Hello, 

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

 https://devdocs.prestashop.com/1.7/development/webservice/tutorials/prestashop-webservice-lib/ 

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?"

invalid.JPG.3035f0c425966b8646281b339f227cac.JPG

 

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 

rewrite.JPG.6039fe14b7a122216be45ccb7a829fe5.JPG

Curl : ok 

The result from script : phppsinfo.php

pscongig.thumb.JPG.6e9a385666d6b9c702c89b441a9906a7.JPG

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 

1788475149_resultapi.JPG.df9d5dcb6b1dac596a1d2ab37c37aa14.JPG

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

😊

Olivier   

 

info_server_bdd.JPG

instal_composer_lib_total.JPG

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