• Hi,

    I installed the latest version of WordPress 5 times already, but keep getting this error when running install.php:

    ‘Parse error: syntax error, unexpected $end in /home/vhosting/g/vhost0024286/domains/judithvanderrijt.com/htdocs/www/wp-admin/includes/user.php on line 416’

    I cannot find anything relevant in that line (second line here):

    ‘ * Delete user option with global blog capability.
    *
    * global blog options. If the ‘global’ parameter is false, which it is by default
    * it will prepend the WordPress table prefix to the option name.
    *
    * @since 3.0.0
    *
    * @global wpdb $wpdb WordPress database object for queries.
    *
    * @param int $user_id User ID
    * @param string $option_name User option name.
    * @param bool $global Optional. Whether option name is global or blog specific.
    * Default false (blog specific).
    * @return bool True on success, false on failure.
    */
    function delete_user_option( $user_id, $option_name, $global = false ) {
    global $wpdb;

    if ( !$global )
    $option_name = $wpdb->get_blog_prefix() . $option_name;
    return delete_user_meta( $user_id, $option_name );
    }’

    Does anyone know what’s wrong and how to fix it?

Viewing 3 replies - 1 through 3 (of 3 total)
  • Unfortunately without being on your server and checking your file, it’s unclear what the problem is. However, looking at the core, this is related to either update_user_option or delete_user_option.

    Follow the standard troubleshooting procedures such as disabling all plugins, then re-enabling them one-by-one. Same goes for the theme. More than likely, a theme or plugin is using one of these two methods improperly and causing it to end unexpectedly.

    Also, if you have the ability, consider enabling Xdebug. This will provide you with a stack trace of the method in question, and makes it a heck of alot easier to debug these ‘vague’ issues.

    More about Xdebug: http://xdebug.org/

    Thread Starter youdid

    (@youdid)

    Hi Jerry,
    Thanks, I already tried disabling the plugins and themes but that didn’t work out. But it’s weird because this is a completely clean download and install. Is this a bug in WP 4.0? I didn’t change any of the pages. Should it work with a downgraded version?

    This definitely isn’t a bug in 4.0, I have multiple 4.0 installs. Looking at core there’s no unexpected end.

    https://core.trac.wordpress.org/browser/tags/4.0/src/wp-includes/user.php#L416

    I would compare your user.php to this one. Also, don’t forget to check your mu-plugins folder for possible files.

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

The topic ‘Error: 'unexpected end in /user.php line 416'’ is closed to new replies.