I'm following this tutorial: https://developers.google.com/adwords/api/docs/guides/first-api-call#make_your_first_api_call_1
And I'm at that step I linked. When I go into terminal and run php
path/to/GetCampaigns.php it returns this error: `PHP Fatal error: Uncaught exception 'Google\AdsApi\AdWords\v201609\cm\ApiException' with message '[QuotaCheckError.INVALID_TOKEN_HEADER # ; trigger:'_dev_token_']' in /var/www/AdwordsAPI/vendor/googleads/googleads-php-lib/src/Google/AdsApi/Common/Util/Reflection.php:39
I assume that it is not finding my adsapi_php.ini file that I set up through this, which was suggested in the main tutorial: https://github.com/googleads/googleads-php-lib
If I go to browser instead and try to access the page, and then return to my logs, it returns this error in logs:
[Wed Dec 28 12:25:52 2016] [error] [client 70.162.15.23] 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 /var/www/AdwordsAPI/vendor/googleads/googleads-php-lib/src/Google/AdsApi/Common/ConfigurationLoader.php:71\nStack trace:\n#0 /var/www/AdwordsAPI/vendor/googleads/googleads-php-lib/src/Google/AdsApi/Common/OAuth2TokenBuilder.php(51): Google\AdsApi\Common\ConfigurationLoader->fromFile('adsapi_php.ini')\n#1 /var/www/AdwordsAPI/vendor/googleads/googleads-php-lib/examples/AdWords/v201609/BasicOperations/GetCampaigns.php(76): Google\AdsApi\Common\OAuth2TokenBuilder->fromFile()\n#2 /var/www/AdwordsAPI/vendor/googleads/googleads-php-lib/examples/AdWords/v201609/BasicOperations/GetCampaigns.php(89): Google\AdsApi\Examples\AdWords\v201609\BasicOperations\GetCampaigns::main()\n#3 {main}\n thrown in /var/www/AdwordsAPI/vendor/googleads/googleads-php-lib/src/Google/AdsApi/Common/ConfigurationLoader.php on line 71
If I'm missing anything let me know.
It seems within the week, documentation has changed, and I was following two different versions of the documentation. All I needed to do was regenerate the developer token and update my .ini file. Everything is working fine now.
Related
I just downloaded wordpress, copied it to ISPConfig vhost, with php7.4-fpm and got this error when I want to first load WP and configure DB connection.
[proxy_fcgi:error] [pid 14720] [client 62.109.143.214:39852] AH01071:
Got error 'PHP message: PHP Fatal error: Uncaught Error: Call to
undefined function wp_guess_url() in
/var/www/clients/client1/web31/web/wp-load.php:56\nStack trace:\n#0
/var/www/clients/client1/web31/web/wp-blog-header.php(13):
require_once()\n#1 /var/www/clients/client1/web31/web/index.php(17):
require('/var/www/client...')\n#2 {main}\n thrown in
/var/www/clients/client1/web31/web/wp-load.php on line 56'
PHP7.4-FPM is working I tested it on another site where I already have WordPress and it is working.
Seems like my linux has corrupted or bugged "Ark" (Archiving Tool) and it was not able to extract all datas.
I downloaded WordPress with wget on server and copied to webroot and it works now. Thanks #cobrerahector for tip.
I'm working with system that uses Apache uniserver and code framework is PHP Codeigniter. Somehow it is always down and gives the error below in log. Can anyone guide me on how to fix this?
PHP Fatal error: session_set_save_handler(): Session handler's function table is corrupt in
C:\UniServerZ\ssl\portal\system\libraries\Session\Session.php on line 11
[php7:error] [pid 5168:tid 1932] [client 175.139.156.154:52516] PHP Fatal error: Class CI_Session_database_driver contains 1 abstract method and must therefore be declared abstract or implement the remaining methods (SessionHandlerInterface::&) in C:\UniServerZ\ssl\portal\system\libraries\Session\drivers\Session_database_driver.php on line 49,
I'm trying to run this app: http://gaspaio.github.com/gearmanui
I'm on digitalocean with apache, cloned repo, installed composer and restarted apache.
So I'm getting blank screen and this error on apache logs:
[Wed Jul 30 14:39:56.444638 2014] [:error] [pid 8731] [client 123.123.123.123:57826] PHP Fatal
error: Uncaught exception 'Symfony\\Component\\Yaml\\Exception\\ParseException' with message 'Unable
to parse "/var/www/html/src/GearmanUI/../../app/config/gearmanui.yml" as the file is not readable.' in
/var/www/html/vendor/symfony/yaml/Symfony/Component/Yaml/Yaml.php:98\nStack trace:\n#0 /var/www/html/
src/GearmanUI/ConfigurationProvider.php(30): Symfony\\Component\\Yaml\\Yaml::parse('/var/www/html
/s...')\n#1 /var/www/html/vendor/silex/silex/src/Silex/Application.php(160):
GearmanUI\\ConfigurationProvider->register(Object(GearmanUI\\GearmanUIApplication))\n#2 /var/www
/html/src/GearmanUI/GearmanUIApplication.php(41): Silex\\Application->register(Object(GearmanUI
\\ConfigurationProvider))\n#3 /var/www/html/web/index.php(5):
GearmanUI\\GearmanUIApplication->__construct()\n#4 {main}\n thrown in /var/www/html/vendor/symfony
/yaml/Symfony/Component/Yaml/Yaml.php on line 98
Am I doing something wrong?
You should make sure your file is readable by the server, try CHMODing it to 700 or so. If you're not sure how, you can usually do it via your FTP client by right clicking on the file and choosing "File Permissions"
Following fatal error we are getting in apache errorlog. So IO operation increased and log file size is increasing. We dont know how we can findout and fix it?. Anyone knows pls share the details for our references.
Recently Upgraded Version : PHP ver from 5.2.17 to 5.3.14 after upgradation only following error we are getting, previously we didnt get this issue.
[Wed Sep 05 06:41:20 2012] [error] [client 80.12.96.14] PHP Fatal error: Cannot redeclare DomainNameInfo() (previously declared in /home/rackapps/conflg/ltnit.lg4:261) in /home/rackapps/lgconf/ltnit.lg4 on line 515, referer: http://in.mc1935.mail.yahoo.com/mc/welcome?.gx=1&.tm=1346806375&.rand=8k3tjpq0fmk8b
Note : Actually its a included files. We cant able to findout the landing php file. Because in that file we have included the above file. how we can findout the landingfile.
PHP Fatal error: Cannot redeclare DomainNameInfo()
This is an php error and not apache. You definied a function DomainNameInfo() on lltnit.lg4 on line 261 and on lgconf/ltnit.lg4 line 515 you defined the same function again .... there's your fault ....
hint: when you use inlcude() / require you can alternativ use the function include_once() / require_once() to avoid the error by including functions twice ...
I'm working to implement a Facebook login for my website. I have limited knowledge of php debugging so I'm more or less looking for a good approach to debug this.
As soon as I include (or require) the facebook.php file, with no other SDK interaction, Apache will 500 my PHP script.
include('fb-php-sdk/src/facebook.php');
fb-php-sdk is a directory within the directory that contains our PHP script (also the document root)
Server log:
[Tue Nov 15 23:18:16 2011] [error] [client 192.168.1.110] PHP Fatal error: Uncaught exception 'Exception' with message 'Facebook needs the CURL PHP extension.'
in /var/www/fb-php-sdk/src/base_facebook.php:19\nStack trace:
#0 /var/www/fb-php-sdk/src/facebook.php(18): require_once()
#1 /var/www/index.php(13): include('/var/www/fb-php...')
#2 {main} thrown in /var/www/fb-php-sdk/src/base_facebook.php on line 19
From /var/log/apache2/error.log
Install CURL =)
Command:
sudo apt-get install php5-curl