• Resolved Luca

    (@lucarosaldi)


    Hello, on PHP 7.x the plugin settings page (wp-admin/admin.php?page=wp-user-avatar) throws a 500 error.

    This is due to a little bug i found in includes/class-wp-user-avatar-admin.php, line 267: two strings are translated with a _() (single underscore) function, instead that with the WP __() (double underscore) function. The “guilty” strings are: _('Choose Image') and _('Default Avatar').

    I don’t know with php 5.x, but this breaks something on PHP 7.x, and the 500 error is shown. Correcting the strings with the __() function, the page loads fine.

    It took me a while to locate this bug (no error data was shown, just the 500 error notice). I hope this is fixed in the next version. Thanks.

    • This topic was modified 5 years, 7 months ago by Luca.
    • This topic was modified 5 years, 7 months ago by Luca.
    • This topic was modified 5 years, 7 months ago by Luca.
Viewing 2 replies - 1 through 2 (of 2 total)
  • Hello,
    Thank you very much for your valuable information related to the bug as well for debug method. We have noted this and going to resolve in the upcoming version.

    Thanks

    We have released an updated version where your mentioned bug is resolved.

    Thanks

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Error 500 on PHP 7.x’ is closed to new replies.