Support » Plugin: WP User Avatar » Error 500 on settings

  • Resolved metamorpher

    (@metamorpher)


    Hi. I would like some help, maybe any of you guys encountered the solution.

    My server throws an error 500 when I try to access the setting page of the plugin.

    I’m running a MAMP pro, PHP 5.6, on a mac environment, all libraries on. And PHP error log doesn’t show anything.

    Thanks in advance 😉

Viewing 3 replies - 1 through 3 (of 3 total)
  • Sorry, was just a misconfiguration on my side. Although I don’t know what happened, I just changed my PHP version to 7.0, restarted, then changed again to 5.6, and it works like charm now.

    Weird stuff 🙂

    I run into the same error.

    The plugin breaks on line 267 in /wp-user-avatar/includes/class-wp-user-avatar-admin.php:

    $wpua_list .= '<p id="wpua-edit"><button type="button" class="button" id="wpua-add" name="wpua-add" data-avatar_default="true" data-title="'._('Choose Image').': '._('Default Avatar').'">'.__('Choose Image','wp-user-avatar').'</button>';

    I don’t know why exactly it breaks, but _('Choose Image') and _('Default Avatar') are the culprits. They use the alias _() for PHP’s own gettext() function. If the plugin author could use __() for both of these, that would be great.

    Confirmed. gchtr’s fix resolves the problem.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Error 500 on settings’ is closed to new replies.