Hi Peter. If you will comment such string $user->LogDefaults();
library will not use logging feature. This will help to solve your problem. :) If you're really need logs - try this: 1. Delete files: /Library/WebServer/Documents/aw_api_php_lib_2.5.1/logs/soap_xml.log /Library/WebServer/Documents/aw_api_php_lib_2.5.1/logs/ request_info.log 2. Check that all users have write permission to the folder /Library/ WebServer/Documents/aw_api_php_lib_2.5.1/logs/ if not - setup it properly. 3. After that problem should be solved. Regards, On 6 апр, 18:10, Peter Stannett <pstannet...@gmail.com> wrote: > Hi > > I have just moved my install of adwords api php onto our server after > working flawlessly on my MAMP install and i have come across many errors! > > This may be more appropriate for a php specific forum however I was hoping > that more knowledgeable people here would be kind enough to help me fix > this. > > My errors are: > > Warning: > fopen(/Library/WebServer/Documents/aw_api_php_lib_2.5.1/logs/soap_xml.log): > failed to open stream: Permission denied in > /Library/WebServer/Documents/aw_api_php_lib_2.5.1/src/Google/Api/Ads/Common/Util/Logger.php > on line 203 Warning: fwrite() expects parameter 1 to be resource, boolean > given in > /Library/WebServer/Documents/aw_api_php_lib_2.5.1/src/Google/Api/Ads/Common/Util/Logger.php > on line 206 Warning: fclose() expects parameter 1 to be resource, boolean > given in > /Library/WebServer/Documents/aw_api_php_lib_2.5.1/src/Google/Api/Ads/Common/Util/Logger.php > on line 207 Warning: > fopen(/Library/WebServer/Documents/aw_api_php_lib_2.5.1/logs/request_info.log): > failed to open stream: Permission denied in > /Library/WebServer/Documents/aw_api_php_lib_2.5.1/src/Google/Api/Ads/Common/Util/Logger.php > on line 203 Warning: fwrite() expects parameter 1 to be resource, boolean > given in > /Library/WebServer/Documents/aw_api_php_lib_2.5.1/src/Google/Api/Ads/Common/Util/Logger.php > on line 206 Warning: fclose() expects parameter 1 to be resource, boolean > given in > /Library/WebServer/Documents/aw_api_php_lib_2.5.1/src/Google/Api/Ads/Common/Util/Logger.php > on line 207 Report definition with name 'ADGROUP performance report > #1302097991' and id '16405962' was added. Warning: > fopen(/Library/WebServer/Documents/aw_api_php_lib_2.5.1/examples/v201101/data/tv_g_ppc_data.csv): > failed to open stream: Permission denied in > /Library/WebServer/Documents/aw_api_php_lib_2.5.1/src/Google/Api/Ads/AdWords/Util/ReportUtils.php > on line 85 Warning: curl_setopt(): supplied argument is not a valid > File-Handle resource in > /Library/WebServer/Documents/aw_api_php_lib_2.5.1/src/Google/Api/Ads/AdWords/Util/ReportUtils.php > on line 87 > > I understand a lot of these are permission denied errors but I have enabled > write permissions on all the folders etc. Also I am not sure what it means > by boolean as I haven't amended anything within the Logger.php > > I would be most grateful if anyone could help me resolve this. > > Best > Peter -- =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ Also find us on our blog and discussion group: http://adwordsapi.blogspot.com http://groups.google.com/group/adwords-api =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ You received this message because you are subscribed to the Google Groups "AdWords API Forum" group. To post to this group, send email to adwords-api@googlegroups.com To unsubscribe from this group, send email to adwords-api+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/adwords-api?hl=en