You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I try to run file_put_contents('cookie.txt', 'content'); stand alone, it OK
The cookie.txt file is 777 chmod
But with guzzle FileCookieJar:
Warning: file_put_contents(cookie.txt): failed to open stream: Permission denied in /home/domain/public_html/includes/guzzle/vendor/guzzlehttp/guzzle/src/Cookie/FileCookieJar.php on line 59
Fatal error: Uncaught RuntimeException: Unable to save file cookie.txt in /home/domain/public_html/includes/guzzle/vendor/guzzlehttp/guzzle/src/Cookie/FileCookieJar.php:60 Stack trace: #0 /home/domain/public_html/includes/guzzle/vendor/guzzlehttp/guzzle/src/Cookie/FileCookieJar.php(39): GuzzleHttp\Cookie\FileCookieJar->save('cookie.txt') #1 [internal function]: GuzzleHttp\Cookie\FileCookieJar->__destruct() #2 {main} thrown in /home/domain/public_html/includes/guzzle/vendor/guzzlehttp/guzzle/src/Cookie/FileCookieJar.php on line 60
Please help.
The text was updated successfully, but these errors were encountered:
I got the same problem and same as phamquangbaoplus my filesystem has chmod 777, so there shouldn't be any problem.
file_put_contents alone works in a separate file but not in combination with guzzle for some reason. Some more help would be really nice because i cant figure it out why it throws this error message.
I try to run file_put_contents('cookie.txt', 'content'); stand alone, it OK
The cookie.txt file is 777 chmod
But with guzzle FileCookieJar:
Warning: file_put_contents(cookie.txt): failed to open stream: Permission denied in /home/domain/public_html/includes/guzzle/vendor/guzzlehttp/guzzle/src/Cookie/FileCookieJar.php on line 59
Fatal error: Uncaught RuntimeException: Unable to save file cookie.txt in /home/domain/public_html/includes/guzzle/vendor/guzzlehttp/guzzle/src/Cookie/FileCookieJar.php:60 Stack trace: #0 /home/domain/public_html/includes/guzzle/vendor/guzzlehttp/guzzle/src/Cookie/FileCookieJar.php(39): GuzzleHttp\Cookie\FileCookieJar->save('cookie.txt') #1 [internal function]: GuzzleHttp\Cookie\FileCookieJar->__destruct() #2 {main} thrown in /home/domain/public_html/includes/guzzle/vendor/guzzlehttp/guzzle/src/Cookie/FileCookieJar.php on line 60
Please help.
The text was updated successfully, but these errors were encountered: