Title: Front-end Error When Activated
Last modified: August 31, 2016

---

# Front-end Error When Activated

 *  Resolved [SAINC](https://wordpress.org/support/users/sainc/)
 * (@sainc)
 * [10 years, 3 months ago](https://wordpress.org/support/topic/front-end-error-when-activated/)
 * Hello!
 * When I activate this plugin (regardless of what else is activated) I get the 
   following message on top of all pages in the front-end of the website:
 * Warning: session_start() expects parameter 1 to be array, string given in /home/
   flx/public_html/wp-includes/plugin.php on line 525
 * Is there something I can do to resolve this? I am not too sure what the error
   is concerning.
 * Thank you!
    Steven
 * [https://wordpress.org/plugins/yith-live-chat/](https://wordpress.org/plugins/yith-live-chat/)

Viewing 3 replies - 1 through 3 (of 3 total)

 *  Plugin Author [YITHEMES](https://wordpress.org/support/users/yithemes/)
 * (@yithemes)
 * [10 years, 3 months ago](https://wordpress.org/support/topic/front-end-error-when-activated/#post-7023792)
 * Hi Steven!
 * We are working to update that should fix this problem, in the meantime, try this:
 * 1) comment the following lines of code in the file “wp-content\plugins\yith-live-
   chat\includes\class-ylc-session.php”
 *     ```
       if ( !session_id() ) {
   
                   add_action( 'init', 'session_start', - 2 );
   
               }
       ```
   
 * 2) replace the existing function in the file “wp-content\plugins\yith-live-chat\
   init.php” with the following:
 *     ```
       function ylc_free_init() {
   
           /* Load text domain */
           load_plugin_textdomain( 'yith-live-chat', false, dirname( plugin_basename( __FILE__ ) ) . '/languages/' );
   
           if ( !session_id() ) {
               session_start();
           }
   
           YITH_Live_Chat();
   
       }
       ```
   
 *  Thread Starter [SAINC](https://wordpress.org/support/users/sainc/)
 * (@sainc)
 * [10 years, 3 months ago](https://wordpress.org/support/topic/front-end-error-when-activated/#post-7023821)
 * Thank you so much for the quick reply, this solved the issue!
 *  Plugin Author [YITHEMES](https://wordpress.org/support/users/yithemes/)
 * (@yithemes)
 * [10 years, 3 months ago](https://wordpress.org/support/topic/front-end-error-when-activated/#post-7023822)
 * You’re welcome! 😉

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Front-end Error When Activated’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/yith-live-chat_c6e6f3.svg)
 * [YITH Live Chat](https://wordpress.org/plugins/yith-live-chat/)
 * [Support Threads](https://wordpress.org/support/plugin/yith-live-chat/)
 * [Active Topics](https://wordpress.org/support/plugin/yith-live-chat/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/yith-live-chat/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/yith-live-chat/reviews/)

 * 3 replies
 * 2 participants
 * Last reply from: [YITHEMES](https://wordpress.org/support/users/yithemes/)
 * Last activity: [10 years, 3 months ago](https://wordpress.org/support/topic/front-end-error-when-activated/#post-7023822)
 * Status: resolved