Title: Error Code 500 while saving any translation
Last modified: December 12, 2018

---

# Error Code 500 while saving any translation

 *  Resolved [wp0newbie](https://wordpress.org/support/users/wp0newbie/)
 * (@wp0newbie)
 * [7 years, 5 months ago](https://wordpress.org/support/topic/error-code-500-while-saving-any-translation/)
 * Hi,
    i got a fatal error 500 if i try to translate something with loco. The main
   issu note of loco/wp is this:
 * Error: Blank response from server. Check console output for debugging information
 * My debug log looks like this ….
 * [12-Dec-2018 14:59:43 UTC] PHP Warning: debug_backtrace() expects at most 1 parameter,
   2 given in
    …/wp-content/plugins/loco-translate/src/error/AdminNotices.php on
   line 47
 * [12-Dec-2018 14:59:43 UTC] PHP Catchable fatal error: Argument 1 passed to Loco_error_Exception::
   setCallee() must be an array, null given, called in
    …/wp-content/plugins/loco-
   translate/src/error/AdminNotices.php on line 48 and defined in …/wp-content/plugins/
   loco-translate/src/error/Exception.php on line 53
 * So every time i try to save my translated lines i get this error.
    Today i updated
   my loco plugin and my WP up to version 5.0
 * So it would be soooo nice if anybody could help me with this issue even with 
   some ideas cause im (shame on me) not a (web)develeoper …. not even a developer.
   
   Please guys and girls help me out
 * Best regards
    a WP newbie

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

 *  Plugin Author [Tim W](https://wordpress.org/support/users/timwhitlock/)
 * (@timwhitlock)
 * [7 years, 5 months ago](https://wordpress.org/support/topic/error-code-500-while-saving-any-translation/#post-10980591)
 * I’ve fixed this in the [development branch](https://localise.biz/wordpress/plugin/developers).
 * It seems that the second argument to debug_backtrace requires at least PHP 5.4.0.
   Although that’s a pretty old version, I do claim to support the same as WordPress,
   which is 5.2.4 and up.
 * However, you may still have problems because this error occurred while handling
   another error. If you get new problems please open a new ticket.
 *  Thread Starter [wp0newbie](https://wordpress.org/support/users/wp0newbie/)
 * (@wp0newbie)
 * [7 years, 5 months ago](https://wordpress.org/support/topic/error-code-500-while-saving-any-translation/#post-10997196)
 * Hopefully i can reply to this again 🙂
 * Dear Tim,
 * i got some “new” issues/ logs. Issus is still the same …. loco cannot safe or
   sync. This is how my Debug log looks like:
 * Debug Log
 * [17-Dec-2018 01:36:02 UTC] PHP Warning: mysqli_real_connect(): (HY000/2002): 
   Can’t connect to local MySQL server through socket ‘/var/run/mysqld/mysqld.sock’(
   2) in /var/www/vhosts/sternelektro.de/httpdocs/2015/wp-includes/wp-db.php on 
   line 1531
    [17-Dec-2018 01:36:02 UTC] PHP Warning: mysql_connect(): Can’t connect
   to local MySQL server through socket ‘/var/run/mysqld/mysqld.sock’ (2) in /var/
   www/vhosts/sternelektro.de/httpdocs/2015/wp-includes/wp-db.php on line 1562 [
   17-Dec-2018 01:36:46 UTC] PHP Warning: mysqli_real_connect(): (HY000/2002): Can’t
   connect to local MySQL server through socket ‘/var/run/mysqld/mysqld.sock’ (2)
   in /var/www/vhosts/sternelektro.de/httpdocs/2015/wp-includes/wp-db.php on line
   1531 [17-Dec-2018 01:36:46 UTC] PHP Warning: mysql_connect(): Can’t connect to
   local MySQL server through socket ‘/var/run/mysqld/mysqld.sock’ (2) in /var/www/
   vhosts/sternelektro.de/httpdocs/2015/wp-includes/wp-db.php on line 1562 [17-Dec-
   2018 01:36:46 UTC] PHP Warning: mysqli_real_connect(): (HY000/2002): Can’t connect
   to local MySQL server through socket ‘/var/run/mysqld/mysqld.sock’ (2) in /var/
   www/vhosts/sternelektro.de/httpdocs/2015/wp-includes/wp-db.php on line 1531 [
   17-Dec-2018 01:36:46 UTC] PHP Warning: mysql_connect(): Can’t connect to local
   MySQL server through socket ‘/var/run/mysqld/mysqld.sock’ (2) in /var/www/vhosts/
   sternelektro.de/httpdocs/2015/wp-includes/wp-db.php on line 1562 [17-Dec-2018
   09:40:33 UTC] PHP Warning: debug_backtrace() expects at most 1 parameter, 2 given
   in /var/www/vhosts/sternelektro.de/httpdocs/2015/wp-content/plugins/loco-translate/
   src/error/AdminNotices.php on line 47 [17-Dec-2018 09:40:33 UTC] PHP Catchable
   fatal error: Argument 1 passed to Loco_error_Exception::setCallee() must be an
   array, null given, called in /var/www/vhosts/sternelektro.de/httpdocs/2015/wp-
   content/plugins/loco-translate/src/error/AdminNotices.php on line 48 and defined
   in /var/www/vhosts/sternelektro.de/httpdocs/2015/wp-content/plugins/loco-translate/
   src/error/Exception.php on line 53 [17-Dec-2018 09:46:25 UTC] PHP Warning: debug_backtrace()
   expects at most 1 parameter, 2 given in /var/www/vhosts/sternelektro.de/httpdocs/
   2015/wp-content/plugins/loco-translate/src/error/AdminNotices.php on line 47 [
   17-Dec-2018 09:46:25 UTC] PHP Catchable fatal error: Argument 1 passed to Loco_error_Exception::
   setCallee() must be an array, null given, called in /var/www/vhosts/sternelektro.
   de/httpdocs/2015/wp-content/plugins/loco-translate/src/error/AdminNotices.php
   on line 48 and defined in /var/www/vhosts/sternelektro.de/httpdocs/2015/wp-content/
   plugins/loco-translate/src/error/Exception.php on line 53 [17-Dec-2018 09:46:
   42 UTC] PHP Warning: debug_backtrace() expects at most 1 parameter, 2 given in/
   var/www/vhosts/sternelektro.de/httpdocs/2015/wp-content/plugins/loco-translate/
   src/error/AdminNotices.php on line 47 [17-Dec-2018 09:46:42 UTC] PHP Catchable
   fatal error: Argument 1 passed to Loco_error_Exception::setCallee() must be an
   array, null given, called in /var/www/vhosts/sternelektro.de/httpdocs/2015/wp-
   content/plugins/loco-translate/src/error/AdminNotices.php on line 48 and defined
   in /var/www/vhosts/sternelektro.de/httpdocs/2015/wp-content/plugins/loco-translate/
   src/error/Exception.php on line 53 [17-Dec-2018 09:47:22 UTC] PHP Warning: debug_backtrace()
   expects at most 1 parameter, 2 given in /var/www/vhosts/sternelektro.de/httpdocs/
   2015/wp-content/plugins/loco-translate/src/error/AdminNotices.php on line 47 [
   17-Dec-2018 09:47:22 UTC] PHP Catchable fatal error: Argument 1 passed to Loco_error_Exception::
   setCallee() must be an array, null given, called in /var/www/vhosts/sternelektro.
   de/httpdocs/2015/wp-content/plugins/loco-translate/src/error/AdminNotices.php
   on line 48 and defined in /var/www/vhosts/sternelektro.de/httpdocs/2015/wp-content/
   plugins/loco-translate/src/error/Exception.php on line 53 [17-Dec-2018 09:47:
   27 UTC] PHP Warning: debug_backtrace() expects at most 1 parameter, 2 given in/
   var/www/vhosts/sternelektro.de/httpdocs/2015/wp-content/plugins/loco-translate/
   src/error/AdminNotices.php on line 47 [17-Dec-2018 09:47:27 UTC] PHP Catchable
   fatal error: Argument 1 passed to Loco_error_Exception::setCallee() must be an
   array, null given, called in /var/www/vhosts/sternelektro.de/httpdocs/2015/wp-
   content/plugins/loco-translate/src/error/AdminNotices.php on line 48 and defined
   in /var/www/vhosts/sternelektro.de/httpdocs/2015/wp-content/plugins/loco-translate/
   src/error/Exception.php on line 53 [17-Dec-2018 09:47:29 UTC] PHP Warning: debug_backtrace()
   expects at most 1 parameter, 2 given in /var/www/vhosts/sternelektro.de/httpdocs/
   2015/wp-content/plugins/loco-translate/src/error/AdminNotices.php on line 47 [
   17-Dec-2018 09:47:29 UTC] PHP Catchable fatal error: Argument 1 passed to Loco_error_Exception::
   setCallee() must be an array, null given, called in /var/www/vhosts/sternelektro.
   de/httpdocs/2015/wp-content/plugins/loco-translate/src/error/AdminNotices.php
   on line 48 and defined in /var/www/vhosts/sternelektro.de/httpdocs/2015/wp-content/
   plugins/loco-translate/src/error/Exception.php on line 53
 * The problematic argument you talked about isnt note but there is still this setCallee
   note. Please dont mind if there is no change of the problem itself. I wait to
   get answer by the enigma pro team for a theme error. Maybe we get a changed situation
   after that reply.
 * Best regards
    a WP newbie
 *  Plugin Author [Tim W](https://wordpress.org/support/users/timwhitlock/)
 * (@timwhitlock)
 * [7 years, 5 months ago](https://wordpress.org/support/topic/error-code-500-while-saving-any-translation/#post-10997866)
 * 1. You don’t appear to have updated to the development version. [The fix](https://github.com/loco/wp-loco/blob/059279aa1370aeed9e343c81a79fa2efd7b7db36/src/error/AdminNotices.php#L47)
   clearly shows one argument being passed to debug_backtrace with setCallee being
   called from [line 51](https://github.com/loco/wp-loco/blob/059279aa1370aeed9e343c81a79fa2efd7b7db36/src/error/AdminNotices.php#L51),
   not 48.
 * 2. Your log shows database connection errors. This is perhaps your root cause.
 *  Thread Starter [wp0newbie](https://wordpress.org/support/users/wp0newbie/)
 * (@wp0newbie)
 * [7 years, 5 months ago](https://wordpress.org/support/topic/error-code-500-while-saving-any-translation/#post-10998090)
 * First i have to thank you to be patient with me 🙂
 * I Updated wrong … was my failure. So your right, after i use the dev version 
   i have no issues. I accedently installed the official version you could download
   via WP.
 * ISSUE SOLVED BY: Installing development version of loco translate from following
   [link](https://localise.biz/wordpress/plugin/developers)
 * And btw … my php: PHP v5.3.10-1ubuntu3.25
 * But i hope to adress the other problems and solve them quickly
 * Thank you for your nice help Tim

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

The topic ‘Error Code 500 while saving any translation’ is closed to new replies.

 * ![](https://ps.w.org/loco-translate/assets/icon-256x256.png?rev=1000676)
 * [Loco Translate](https://wordpress.org/plugins/loco-translate/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/loco-translate/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/loco-translate/)
 * [Active Topics](https://wordpress.org/support/plugin/loco-translate/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/loco-translate/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/loco-translate/reviews/)

## Tags

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

 * 4 replies
 * 2 participants
 * Last reply from: [wp0newbie](https://wordpress.org/support/users/wp0newbie/)
 * Last activity: [7 years, 5 months ago](https://wordpress.org/support/topic/error-code-500-while-saving-any-translation/#post-10998090)
 * Status: resolved