AuthorizeNet / sample-code-php

This repository contains working code samples which demonstrate php integration with the Authorize.Net API
MIT License
176 stars 197 forks source link

same error across samples - phplog file unwritable #53

Closed netpassprod1 closed 7 years ago

netpassprod1 commented 7 years ago

Warning: file_put_contents(phplog): failed to open stream: Permission denied in /var/www/vhosts/mydomain.com/httpdocs/library/anetsdk/lib/net/authorize/util/Log.php on line 269

I have the define("AUTHORIZENET_LOG_FILE","phplog"); line ahead of the 'use' statements for including the namespaces for authorize.net for contract and controller.

I still get the error outputting lots of times ahead of the executeWithApiResposne() function call.

WHERE do I assign the phplog value so this function has something to use rather than generating warnings?

ashtru commented 7 years ago

Do not define the constant ("AUTHORIZENET_LOG_FILE","phplog"), if you do not want to see the logs. Otherwise, if you want the logs, try changing the permissions of the root folder (sample-code-php) .

ashtru commented 7 years ago

@netpassprod1 were you able to fix this issue? I am closing this issue for now. If you have any questions, feel free to reopen this issue.

adavidw commented 7 years ago

In the absence of any further questions, I'll close this issue for now. Please let us know if you need any more information or help.