• Resolved wp0newbie

    (@wp0newbie)


    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

    (@timwhitlock)

    I’ve fixed this in the development branch.

    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

    (@wp0newbie)

    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

    (@timwhitlock)

    1. You don’t appear to have updated to the development version. The fix clearly shows one argument being passed to debug_backtrace with setCallee being called from line 51, not 48.

    2. Your log shows database connection errors. This is perhaps your root cause.

    Thread Starter wp0newbie

    (@wp0newbie)

    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

    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.