-
Notifications
You must be signed in to change notification settings - Fork 766
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[RuntimeException] Failed to clone https://github.com/sebastianbergmann/phpunit-mock-objects.git via https, ssh protocols, aborting. #434
Comments
Hello @light8822 As the error message indicated, have you somehow place some files in phpunit\phpunit-mock-objects? It would be easier if you could follow our guide here too. Please let me know if you still get stuck. Best, |
I tried a diferent way, to install it, just using via : composer require googleads/googleads-php-lib |
When I try to execute GetCampaigns.php via console it gets the next error message PHP Fatal error: Uncaught SoapFault exception: [HTTP] Could not connect to host in C:\xampp\htdocs\google_api_test\googleads-php-lib\vendor\googleads\googleads-php-lib\src\Google\AdsApi\Common\AdsSoapClient.php:90 |
Do you use this library via any proxies? If so, is it possible to use this without them first? |
I close this issue due to inactivity. Please let us know if you're still faced with the issue. |
hello, I´m sorry for the long inactivity, because of attending other proyects, well, I did using de wiki you share me, it worked fine on localhost, but how I can make the same conection via web-server? |
Could you please clarify again what you want to do? It seems that the issue you'd like to resolve last time is the issue with SOAP, which prevents you from making SOAP calls to AdWords API servers, so I'm not sure how the localhost you mentioned is related to this case. Thanks. |
When i say localhost, is in a windows pc, in a xampp local server, that make a sucessful conection, but in this case i need to make the same conection to a web server, i tried to send the proyect via ftp, followed the instrucctions for set de adsap_php.ini config file in the home of the server but it gives the error: "[29-Jan-2018 23:37:21 UTC] PHP Fatal error: Uncaught exception 'InvalidArgumentException' with message 'Config file not found as specified: 'adsapi_php.ini'. Home directory could not be located so it was not searched.' in /home/aiwroi/public_html/goo_test/google_api/googleads-php-lib/src/Google/AdsApi/Common/ConfigurationLoader.php:71 |
Hello @light8822 You've not placed Best, |
you mean in the ConfigurationLoader.php instead of : make use of : or add the function fromFile to the Class EnvironmentalVariables.php ? |
No, you shouldn't touch ConfigurationLoader.php. $session = (new AdWordsSessionBuilder())
->fromFile()
->withOAuth2Credential($oAuth2Credential)
->build(); Do this instead: $session = (new AdWordsSessionBuilder())
->fromFile('<PATH TO YOUR FILE>')
->withOAuth2Credential($oAuth2Credential)
->build(); Hope this help. |
Excelent....!!! it worked ....!!! thank you very much, with this we can say this tread is really close, thank you so much for your help, even this tread was already close, thank you...!!! 👍 👍 👍 |
I´m installing this API via composer by the command : composer install
and this Issue appeared.
[RuntimeException]
Failed to clone https://github.com/sebastianbergmann/phpunit-mock-objects.git via https, ssh protocols, aborting.
fatal: destination path 'C:\xampp\htdocs\aiw_new_update\pec\administrator2\Classes\google_app2\googleads-php-lib
vendor\phpunit\phpunit-mock-objects' already exists and is not an empty directory.
fatal: destination path 'C:\xampp\htdocs\aiw_new_update\pec\administrator2\Classes\google_app2\googleads-php-lib
vendor\phpunit\phpunit-mock-objects' already exists and is not an empty directory.
The text was updated successfully, but these errors were encountered: