Title: Server error_log
Last modified: January 23, 2020

---

# Server error_log

 *  Resolved [typopoint](https://wordpress.org/support/users/typopoint/)
 * (@typopoint)
 * [6 years, 4 months ago](https://wordpress.org/support/topic/server-error_log/)
 * Hello, recently wp-live chat has been running on our website. The following error
   message is now in the log file:
    Premature end of script headers: admin-ajax.
   php, referer: [https://www.xyz.ch/wp-admin/admin.php?page=wplivechat-menu](https://www.xyz.ch/wp-admin/admin.php?page=wplivechat-menu)
   Premature end of script headers: admin.php, referer: [https://www.xyz.ch/wp-admin/admin.php?page=wplivechat-menu](https://www.xyz.ch/wp-admin/admin.php?page=wplivechat-menu)
 * What could be the problem?

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

 *  Plugin Author [wp3cx](https://wordpress.org/support/users/wp3cx/)
 * (@wp3cx)
 * [6 years, 4 months ago](https://wordpress.org/support/topic/server-error_log/#post-12356746)
 * Hi [@typopoint](https://wordpress.org/support/users/typopoint/) ,
 * Unfortunately the error is generic and could be the result of a number of things.
   It is **usually** triggered by server side configuration which prevents a script
   from properly completing its execution.
 * Is the error reproducible? Does it log every time you access the WP Live Chat
   menu or is it random? Is it only on specific pages? Does the live chat function
   properly despite the error? Do you get a similar error by any other script?
 * Lastly, what is your setup?
    WordPress Version PHP version Chat Server Mode(this
   can be found under Settings -> Advanced Features)
 *  Thread Starter [typopoint](https://wordpress.org/support/users/typopoint/)
 * (@typopoint)
 * [6 years, 4 months ago](https://wordpress.org/support/topic/server-error_log/#post-12356913)
 * It is not logged every time the WP Live Chat menu is accessed.
    Live chat works
   despite an error message. There was another error message: wplc_return_chat_id_by_rel_or_id
   cannot find rel = ryfdSl68WI_1579761728033, referer: – I turned this off with
   commenting out in function.php.
 * Set up:
    WordPress version = 4.9.13 PHP version = 7.0 Chat Server Mode = High
   Performance Cloud Server
 *  Plugin Author [wp3cx](https://wordpress.org/support/users/wp3cx/)
 * (@wp3cx)
 * [6 years, 4 months ago](https://wordpress.org/support/topic/server-error_log/#post-12357012)
 * If the error is intermittent then there’s a good chance it is indeed a server
   related issue. I would strongly suggest to upgrade both your WordPress and PHP
   versions to the latest version (or PHP only to at least 7.2.X) for stability,
   performance and security reasons. This could also fix the error you are getting.
 * **Prior upgrading make sure your website/plugins/scripts is fully compatible 
   with newer versions of WP/PHP. **
 *  Thread Starter [typopoint](https://wordpress.org/support/users/typopoint/)
 * (@typopoint)
 * [6 years, 4 months ago](https://wordpress.org/support/topic/server-error_log/#post-12369520)
 * After an update, wordpress is now at version 5.2.5 and PHP at 7.2. Unfortunately
   I still get the following error messages in the log file:
    Premature end of script
   headers: admin-ajax.php, referer: [https://www.package-line.ch/wp-admin/admin.php?page=wplivechat-menu](https://www.package-line.ch/wp-admin/admin.php?page=wplivechat-menu)
 *  Plugin Author [wp3cx](https://wordpress.org/support/users/wp3cx/)
 * (@wp3cx)
 * [6 years, 4 months ago](https://wordpress.org/support/topic/server-error_log/#post-12371557)
 * Hi [@typopoint](https://wordpress.org/support/users/typopoint/) ,
 * Thanks for reporting back. At this point you’ll need to proceed with the typical
   WordPress troubleshooting guide. (this is commonly done in a sandbox/text environment)
 * Disable all plugins except WP Live Chat by 3CX. Check if the problem is still
   there. If not then enable the rest of the plugins **one by one** (testing each
   time if the error is produced) until you identify the one which is most probably
   causing the issue/conflict.
 * Enabling debug mode could also help. You can find more here: [https://wordpress.org/support/article/debugging-in-wordpress/](https://wordpress.org/support/article/debugging-in-wordpress/)
 *     ```
       define( 'WP_DEBUG', true );
       define( 'WP_DEBUG_DISPLAY', false ); 
       define( 'WP_DEBUG_LOG', true );
       ```
   
 * P.S: Make sure the error log file is not publicly accessible.
 *  Thread Starter [typopoint](https://wordpress.org/support/users/typopoint/)
 * (@typopoint)
 * [6 years, 4 months ago](https://wordpress.org/support/topic/server-error_log/#post-12374611)
 * Hallo
 * I solved the problem. It was a redirect setting in the Adminimize plugin to bring
   the agents to live chat immediately after logging in.
    Many thanks for the support.
 *  Plugin Author [wp3cx](https://wordpress.org/support/users/wp3cx/)
 * (@wp3cx)
 * [6 years, 4 months ago](https://wordpress.org/support/topic/server-error_log/#post-12375700)
 * Hi [@typopoint](https://wordpress.org/support/users/typopoint/) ,
 * I am glad you figured it out and thanks for sharing the solution with the community!

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

The topic ‘Server error_log’ is closed to new replies.

 * ![](https://ps.w.org/wp-live-chat-support/assets/icon-256x256.png?rev=2405258)
 * [3CX Free Live Chat, Calls & Messaging](https://wordpress.org/plugins/wp-live-chat-support/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wp-live-chat-support/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wp-live-chat-support/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-live-chat-support/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-live-chat-support/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-live-chat-support/reviews/)

 * 7 replies
 * 2 participants
 * Last reply from: [wp3cx](https://wordpress.org/support/users/wp3cx/)
 * Last activity: [6 years, 4 months ago](https://wordpress.org/support/topic/server-error_log/#post-12375700)
 * Status: resolved