Title: PHP Error In Plugin
Last modified: June 26, 2017

---

# PHP Error In Plugin

 *  Resolved [daniel27lt](https://wordpress.org/support/users/daniel27lt/)
 * (@daniel27lt)
 * [8 years, 11 months ago](https://wordpress.org/support/topic/php-error-in-plugin-3/)
 * First great plugin. But I now see a PHP error within the plugin. I’ve created
   a screenshot of this error:
 * [http://prntscr.com/fo623k](http://prntscr.com/fo623k)

Viewing 1 replies (of 1 total)

 *  Plugin Author [Faiyaz Alam](https://wordpress.org/support/users/faiyazalam/)
 * (@faiyazalam)
 * [8 years, 11 months ago](https://wordpress.org/support/topic/php-error-in-plugin-3/#post-9262787)
 * [@daniel27lt](https://wordpress.org/support/users/daniel27lt/)
 * From the above screenshot, the error is:
    PHP Error Warning: session_start():
   open(/var/lib/php/ssession/sess_xxxx, O_RD_RW) failed: Permission denied(13)
 * As you can see, it is a permission issue.
    Please change the permission for the
   path i.e. “/var/lib/php/ssession/”.
 * If you cannot change the permission for any reason, you can set a different path
   for the session using the following code:
 *     ```
       function set_new_session_path(){
           session_save_path($my_new_path);
            if ("" == session_id()) {
                   session_start();
               }
       }
       add_action('init', 'set_new_session_path');
       ```
   
 * Place this code in your theme functions.php file.
    -  This reply was modified 8 years, 11 months ago by [Faiyaz Alam](https://wordpress.org/support/users/faiyazalam/).

Viewing 1 replies (of 1 total)

The topic ‘PHP Error In Plugin’ is closed to new replies.

 * ![](https://ps.w.org/user-login-history/assets/icon-128x128.jpg?rev=1886722)
 * [User Login History](https://wordpress.org/plugins/user-login-history/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/user-login-history/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/user-login-history/)
 * [Active Topics](https://wordpress.org/support/plugin/user-login-history/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/user-login-history/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/user-login-history/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [Faiyaz Alam](https://wordpress.org/support/users/faiyazalam/)
 * Last activity: [8 years, 11 months ago](https://wordpress.org/support/topic/php-error-in-plugin-3/#post-9262787)
 * Status: resolved