Title: I fail resolving http 500 error after last wordpress update
Last modified: February 22, 2019

---

# I fail resolving http 500 error after last wordpress update

 *  Resolved [Olga](https://wordpress.org/support/users/olol44/)
 * (@olol44)
 * [7 years, 3 months ago](https://wordpress.org/support/topic/i-fail-resolving-http-500-error/)
 * Hi,
 * After updating my website to the latest version of WordPress, the website went
   on maintenance for an anormal period of time.
    I then deleted the .maintenance
   file, but now I get the http 500 error each time I got o the website. To resolve
   this I tried via my FTP to: – change the plugin file name : doesn’t change anything–
   change the theme file name : doesn’t change anything – increase the memory in
   wp-config : no changes
 * I checked my error_log and this it what appears:
    [22-Feb-2019 16:57:03 UTC] 
   PHP Parse error: syntax error, unexpected ”arg’ (T_ENCAPSED_AND_WHITESPACE), 
   expecting ‘)’ in /home/hh32j454/dbuilding.fr/wp-includes/rest-api/endpoints/class-
   wp-rest-users-controller.php on line 135
 * I looked at the class-wp-rest-users-controller.php file have not clue what to
   change on line 135. It seems like the code is unfinished, but I’m not familiar
   with php yet.
 * Here is the file’s code:
 *     ```
       <?php
       /**
        * REST API: WP_REST_Users_Controller class
        *
        * @package WordPress
        * @subpackage REST_API
        * @since 4.7.0
        */
   
       /**
        * Core class used to manage users via the REST API.
        *
        * @since 4.7.0
        *
        * @see WP_REST_Controller
        */
       class WP_REST_Users_Controller extends WP_REST_Controller {
   
       	/**
       	 * Instance of a user meta fields object.
       	 *
       	 * @since 4.7.0
       	 * @var WP_REST_User_Meta_Fields
       	 */
       	protected $meta;
   
       	/**
       	 * Constructor.
       	 *
       	 * @since 4.7.0
       	 */
       	public function __construct() {
       		$this->namespace = 'wp/v2';
       		$this->rest_base = 'users';
   
       		$this->meta = new WP_REST_User_Meta_Fields();
       	}
   
       	/**
       	 * Registers the routes for the objects of the controller.
       	 *
       	 * @since 4.7.0
       	 *
       	 * @see register_rest_route()
       	 */
       	public function register_routes() {
   
       		register_rest_route(
       			$this->namespace,
       			'/' . $this->rest_base,
       			array(
       				array(
       					'methods'             => WP_REST_Server::READABLE,
       					'callback'            => array( $this, 'get_items' ),
       					'permission_callback' => array( $this, 'get_items_permissions_check' ),
       					'args'                => $this->get_collection_params(),
       				),
       				array(
       					'methods'             => WP_REST_Server::CREATABLE,
       					'callback'            => array( $this, 'create_item' ),
       					'permission_callback' => array( $this, 'create_item_permissions_check' ),
       					'args'                => $this->get_endpoint_args_for_item_schema( WP_REST_Server::CREATABLE ),
       				),
       				'schema' => array( $this, 'get_public_item_schema' ),
       			)
       		);
   
       		register_rest_route(
       			$this->namespace,
       			'/' . $this->rest_base . '/(?P<id>[\d]+)',
       			array(
       				'args'   => array(
       					'id' => array(
       						'description' => __( 'Unique identifier for the user.' ),
       						'type'        => 'integer',
       					),
       				),
       				array(
       					'methods'             => WP_REST_Server::READABLE,
       					'callback'            => array( $this, 'get_item' ),
       					'permission_callback' => array( $this, 'get_item_permissions_check' ),
       					'args'                => array(
       						'context' => $this->get_context_param( array( 'default' => 'view' ) ),
       					),
       				),
       				array(
       					'methods'             => WP_REST_Server::EDITABLE,
       					'callback'            => array( $this, 'update_item' ),
       					'permission_callback' => array( $this, 'update_item_permissions_check' ),
       					'args'                => $this->get_endpoint_args_for_item_schema( WP_REST_Server::EDITABLE ),
       				),
       				array(
       					'methods'             => WP_REST_Server::DELETABLE,
       					'callback'            => array( $this, 'delete_item' ),
       					'permission_callback' => array( $this, 'delete_item_permissions_check' ),
       					'args'                => array(
       						'force'    => array(
       							'type'        => 'boolean',
       							'default'     => false,
       							'description' => __( 'Required to be true, as users do not support trashing.' ),
       						),
       						'reassign' => array(
       							'type'              => 'integer',
       							'description'       => __( 'Reassign the deleted user\'s posts and links to this user ID.' ),
       							'required'          => true,
       							'sanitize_callback' => array( $this, 'check_reassign' ),
       						),
       					),
       				),
       				'schema' => array( $this, 'get_public_item_schema' ),
       			)
       		);
   
       		register_rest_route(
       			$this->namespace,
       			'/' . $this->rest_base . '/me',
       			array(
       				array(
       					'methods'  => WP_REST_Server::READABLE,
       					'callback' => array( $this, 'get_current_item' ),
       					'args'     => array(
       						'context' => $this->get_context_param( array( 'default' => 'view' ) ),
       					),
       				),
       				array(
       					'methods'             => WP_REST_Server::EDITABLE,
       					'callback'            => array( $this, 'update_current_item' ),
       					'permission_callback' => array( $this, 'update_current_item_permissions_check' ),
       					'args'                => $this->get_endpoint_args_for_item_schema( WP_REST_Server::EDITABLE ),
       				),
       				array(
       					'methods'             => WP_REST_Server::DELETABLE,
       					'callback'            => array( $this, 'delete_current_item' ),
       					'permission_callback' => array( $this, 'delete_current_item_permissions_check' ),
       					'arg
       ```
   
 * Can you help me ?
    Thank you in advance 🙂
    -  This topic was modified 7 years, 3 months ago by [Olga](https://wordpress.org/support/users/olol44/).
    -  This topic was modified 7 years, 3 months ago by [Olga](https://wordpress.org/support/users/olol44/).
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fi-fail-resolving-http-500-error%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

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

 *  Thread Starter [Olga](https://wordpress.org/support/users/olol44/)
 * (@olol44)
 * [7 years, 3 months ago](https://wordpress.org/support/topic/i-fail-resolving-http-500-error/#post-11236788)
 * (memory : 62M)
    -  This reply was modified 7 years, 3 months ago by [Olga](https://wordpress.org/support/users/olol44/).
 *  [JNashHawkins](https://wordpress.org/support/users/jnashhawkins/)
 * (@jnashhawkins)
 * [7 years, 3 months ago](https://wordpress.org/support/topic/i-fail-resolving-http-500-error/#post-11236920)
 * I agree. That code looks very incomplete!!!
 * You might try doing a manual update over top of what is already there.
 * [https://codex.wordpress.org/Updating_WordPress](https://codex.wordpress.org/Updating_WordPress)
 * Just read the whole document paying particular attention to the section about‘
   failed updates’ and on. Sounds like what happened to you.
 * If you wish you could extract just that single file and replace it but who knows
   what else might be broken there.
 *  Thread Starter [Olga](https://wordpress.org/support/users/olol44/)
 * (@olol44)
 * [7 years, 3 months ago](https://wordpress.org/support/topic/i-fail-resolving-http-500-error/#post-11242243)
 * Thank you sooo much [@jnashhawkins](https://wordpress.org/support/users/jnashhawkins/),
   I followed the steps and it’s back to normal !

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

The topic ‘I fail resolving http 500 error after last wordpress update’ is closed
to new replies.

## Tags

 * [http 500 error](https://wordpress.org/support/topic-tag/http-500-error/)
 * [WordPress update](https://wordpress.org/support/topic-tag/wordpress-update/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 3 replies
 * 2 participants
 * Last reply from: [Olga](https://wordpress.org/support/users/olol44/)
 * Last activity: [7 years, 3 months ago](https://wordpress.org/support/topic/i-fail-resolving-http-500-error/#post-11242243)
 * Status: resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
