Permission denied (13)' at /var/xyz/www/wp-content/plugins/wordpress-social-logi
-
I recently started working with WP-CLI on the server and ran into this notice.
Backtrace from warning 'session_start(): open(/my/php/session/sess_xyz123, O_RDWR) failed: Permission denied (13)' at /var/xyz/www/wp-content/plugins/wordpress-social-login/wp-social-login.php 63: /var/xyz/www/wp-content/plugins/wordpress-social-login/wp-social-login.php 63 calling session_start() phar:///usr/local/bin/wp/php/wp-settings-cli.php 286 calling include_once() phar:///usr/local/bin/wp/php/WP_CLI/Runner.php 770 calling require() phar:///usr/local/bin/wp/php/WP_CLI/Runner.php 721 calling load_wordpress() phar:///usr/local/bin/wp/php/wp-cli.php 21 calling start() phar:///usr/local/bin/wp/php/boot-phar.php 5 calling include() /usr/local/bin/wp 4 calling include()
I was able to solve it by setting the permissions of the folder:
sudo chown -R apache:group /my/php/session
I’m not sure this is something you can check against, or you need to throw the error so the user notices. Either way, my WP-CLI output was a bit flooded with notices until that was solved.
Here is a snippet of steps to track down where to make the change – https://codepad.co/snippet/gSrJzdAE
https://www.ads-software.com/plugins/wordpress-social-login/
- The topic ‘Permission denied (13)' at /var/xyz/www/wp-content/plugins/wordpress-social-logi’ is closed to new replies.