Title: PHP Notice Fixes
Last modified: August 21, 2016

---

# PHP Notice Fixes

 *  ResolvedModerator [Jonathan Desrosiers](https://wordpress.org/support/users/desrosj/)
 * (@desrosj)
 * Principal Software Engineer & WordPress Core Committer
 * [11 years, 10 months ago](https://wordpress.org/support/topic/php-notice-fixes/)
 * The plugin causes a handful of PHP notices that can be easily fixed.
 * Line 43 returns an index undefined error.
 * > PHP Notice: Undefined index: page in /var/www/html/wp-content/plugins/zopim-
   > live-chat/zopim.php on line 43
 * You can fix it by replacing it with this code:
 *     ```
       if ( ( $code == "" || $code == "zopim" ) && ( isset( $_GET['page'] ) && ! preg_match( "/zopim/", $_GET['page'] ) ) && ( isset( $_GET['page'] ) && ! preg_match( "/zopim/", $_SERVER["SERVER_NAME"] ) ) )
       		return;
       ```
   
 * Line 77 also throws a notice, because the variable does not exist yet, and you
   are performing a .= operation.
 * You can fix it by replacing line 77 with the following:
    `$zopim_embed_opts ="\
   $zopim( function() {";`
 * [https://wordpress.org/plugins/zopim-live-chat/](https://wordpress.org/plugins/zopim-live-chat/)

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

 *  [bencxr](https://wordpress.org/support/users/bencxr/)
 * (@bencxr)
 * [11 years, 10 months ago](https://wordpress.org/support/topic/php-notice-fixes/#post-5117252)
 * Hi Jonathan,
 * Thanks for your feedback. Our engineer will take a look at your suggestion.
 * Best Regards,
    Team Zopim
 *  Moderator [Jonathan Desrosiers](https://wordpress.org/support/users/desrosj/)
 * (@desrosj)
 * Principal Software Engineer & WordPress Core Committer
 * [11 years, 10 months ago](https://wordpress.org/support/topic/php-notice-fixes/#post-5117335)
 * Noticed the recent 1.3.0 update had these changes. Thanks for adding them, they
   will help us keep our debug.log slim and trim.
 *  [josue reynaldo pereira gutierr](https://wordpress.org/support/users/josue-reynaldo-pereira-gutierr/)
 * (@josue-reynaldo-pereira-gutierr)
 * [11 years, 10 months ago](https://wordpress.org/support/topic/php-notice-fixes/#post-5117339)
 * este error… ayudaaaaa
 * Warning: session_start() [function.session-start]: Cannot send session cache 
   limiter – headers already sent (output started at /home/reynaldo/public_html/
   wp-content/plugins/zopim-live-chat/accountconfig.php:20) in /home/reynaldo/public_html/
   wp-content/themes/realty/functions.php on line 19
 *  [intercloud](https://wordpress.org/support/users/intercloudhost/)
 * (@intercloudhost)
 * [11 years, 10 months ago](https://wordpress.org/support/topic/php-notice-fixes/#post-5117340)
 * Latest version (1.3.0) gives warnings, some of them reported already.
 * WordPress 3.9.1
    Theme: Bazar Shop 2.4
 * Warning: session_start() [function.session-start]: Cannot send session cache 
   limiter – headers already sent (output started at /nfs/c08/h03/mnt/171680/domains/
   demo.ogon.com.mx/html/wp-content/plugins/zopim-live-chat/accountconfig.php:20)
   in /nfs/c08/h03/mnt/171680/domains/demo.ogon.com.mx/html/wp-content/themes/bazar/
   theme/plugins/yith_wishlist/class.yith-wcwl.php on line 54
 * Warning: Cannot modify header information – headers already sent by (output started
   at /nfs/c08/h03/mnt/171680/domains/demo.ogon.com.mx/html/wp-content/plugins/zopim-
   live-chat/accountconfig.php:20) in /nfs/c08/h03/mnt/171680/domains/demo.ogon.
   com.mx/html/wp-content/themes/bazar/theme/plugins/yith_wishlist/functions.yith-
   wcwl.php on line 118
 *  [dpartis](https://wordpress.org/support/users/dpartis/)
 * (@dpartis)
 * [11 years, 10 months ago](https://wordpress.org/support/topic/php-notice-fixes/#post-5117344)
 * I get this error as well. I am using WordPress 3.9.1 and WooCommerce 2.1.12 and
   Zopim 1.3.0 and I get this error when I do a listing of orders in the WooCommerce
   Orders page. I have disabled Zopim and the error disappears.
 * Using Elegant Themes StyleShop
 * Warning: Cannot modify header information – headers already sent by (output started
   at /home/x3cmpdge/public_html/wp-content/plugins/zopim-live-chat/accountconfig.
   php:20) in /home/x3cmpdge/public_html/wp-includes/pluggable.php on line 1121
 *  [bencxr](https://wordpress.org/support/users/bencxr/)
 * (@bencxr)
 * [11 years, 10 months ago](https://wordpress.org/support/topic/php-notice-fixes/#post-5117345)
 * So sorry about it, the update for this bug fix has already been rolled out. Do
   download the latest version.
    Thank you for reporting the bug.
 * Regards,
    Team Zopim

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

The topic ‘PHP Notice Fixes’ is closed to new replies.

 * ![](https://ps.w.org/zopim-live-chat/assets/icon.svg?rev=1522846)
 * [Zendesk Chat](https://wordpress.org/plugins/zopim-live-chat/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/zopim-live-chat/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/zopim-live-chat/)
 * [Active Topics](https://wordpress.org/support/plugin/zopim-live-chat/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/zopim-live-chat/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/zopim-live-chat/reviews/)

## Tags

 * [php](https://wordpress.org/support/topic-tag/php/)

 * 6 replies
 * 5 participants
 * Last reply from: [bencxr](https://wordpress.org/support/users/bencxr/)
 * Last activity: [11 years, 10 months ago](https://wordpress.org/support/topic/php-notice-fixes/#post-5117345)
 * Status: resolved