Error 500 on PHP 7.x
-
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
, line267
: 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.
- The topic ‘Error 500 on PHP 7.x’ is closed to new replies.