Title: version 2.1.0 Update error
Last modified: August 30, 2016

---

# version 2.1.0 Update error

 *  Resolved [PPNSteve](https://wordpress.org/support/users/ppnsteve/)
 * (@ppnsteve)
 * [10 years, 4 months ago](https://wordpress.org/support/topic/version-210-update-error/)
 * Just updated to version 2.1.0 and am getting:
    `Parse error: syntax error, unexpected'['
   in /home/yugioh-w/public_html/wp-content/plugins/404-to-301/admin/class-404-to-
   301-admin.php on line 218`
 * HELP!
 * [https://wordpress.org/plugins/404-to-301/](https://wordpress.org/plugins/404-to-301/)

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

 *  Thread Starter [PPNSteve](https://wordpress.org/support/users/ppnsteve/)
 * (@ppnsteve)
 * [10 years, 4 months ago](https://wordpress.org/support/topic/version-210-update-error/#post-6867789)
 * here is related code:
 *     ```
       /**
            * To make screen options for 404 to 301 listing.
            *
            * This function is used to show screen options like entries per page,
       	 * show/hide columns etc.
            *
            * @since   2.1.0
            * @author  Joel James.
            */
       	public function screen_option() {
   
       		$option = 'per_page';
       		$args   = [
       			'label'   =>  __( 'Error Logs', '404-to-301' ),
       			'default' => 5,
       			'option'  => 'logs_per_page'
       		];
   
       		add_screen_option( $option, $args );
   
       		$this->list_table = new _404_To_301_Logs( $this->table );
       	}
       ```
   
 * not sure why its erroring myself..
 *  [janus20](https://wordpress.org/support/users/janus20/)
 * (@janus20)
 * [10 years, 4 months ago](https://wordpress.org/support/topic/version-210-update-error/#post-6867792)
 * Hi PPNSteve,
 * I have wp 4.4 and after update from 2.0.9 to 2.1.0 everything is working fine.
 * Might be helpful for debuging to know versions of wp and php ( i think ).
 *  Thread Starter [PPNSteve](https://wordpress.org/support/users/ppnsteve/)
 * (@ppnsteve)
 * [10 years, 4 months ago](https://wordpress.org/support/topic/version-210-update-error/#post-6867796)
 * wp: 4.4
    root@svr4 [/]# php -v PHP 5.3.21 (cli) (built: Feb 3 2013 10:30:52)
 * Was working just fine right before I noticed the update, once updated the plugin,
   it broke.
 *  [janus20](https://wordpress.org/support/users/janus20/)
 * (@janus20)
 * [10 years, 4 months ago](https://wordpress.org/support/topic/version-210-update-error/#post-6867797)
 * Hi,
 * Mine is 5.4.4 if it does matter. However, until mr. Joel find some time to debug
   your issue you could:
    1. reverse to 2.0.9 version 2. to 2.0.9 version apply 
   workarounds from next topic **“Getting errors if “ref” column is NULL”**. Those
   two workarounds for ‘ref’ and ‘ua’ column i think are most important for you.
 * kind regards
 *  Thread Starter [PPNSteve](https://wordpress.org/support/users/ppnsteve/)
 * (@ppnsteve)
 * [10 years, 4 months ago](https://wordpress.org/support/topic/version-210-update-error/#post-6867801)
 * ok where can I get 2.0.9 version files?
 * Will investigate those workarounds though I wasn’t noticing any issues previously.
 *  [janus20](https://wordpress.org/support/users/janus20/)
 * (@janus20)
 * [10 years, 4 months ago](https://wordpress.org/support/topic/version-210-update-error/#post-6867804)
 * Hi,
 * Here is my backup of 2.0.9 from 12.12.2015. It is already patched, meaning modify
   original file from public\class-404-to-301-public.php between lines #144-#155(
   commented lines are the original):
 * [http://www.mediafire.com/download/ky182x7lokq8ds4/404-to-301_v2.0.9_patched.zip](http://www.mediafire.com/download/ky182x7lokq8ds4/404-to-301_v2.0.9_patched.zip)
 * Hope that helps
 *  Thread Starter [PPNSteve](https://wordpress.org/support/users/ppnsteve/)
 * (@ppnsteve)
 * [10 years, 4 months ago](https://wordpress.org/support/topic/version-210-update-error/#post-6867808)
 * ty, yup it helps at least until we can figure out what’s causing the error in
   the new version.
 * let me know..
 *  Thread Starter [PPNSteve](https://wordpress.org/support/users/ppnsteve/)
 * (@ppnsteve)
 * [10 years, 4 months ago](https://wordpress.org/support/topic/version-210-update-error/#post-6867837)
 * for ref: [http://php.net/manual/en/language.types.array.php](http://php.net/manual/en/language.types.array.php)
   
   for compatibility you may want to use the long-form array
 *  Plugin Author [Joel James](https://wordpress.org/support/users/joelcj91/)
 * (@joelcj91)
 * [10 years, 4 months ago](https://wordpress.org/support/topic/version-210-update-error/#post-6867858)
 * Hello all,
 * Sorry for the trouble. It was an issue with WordPress version. Could you please
   update now?
 *  Thread Starter [PPNSteve](https://wordpress.org/support/users/ppnsteve/)
 * (@ppnsteve)
 * [10 years, 4 months ago](https://wordpress.org/support/topic/version-210-update-error/#post-6867859)
 * OK..
    running the update right now… stand by.
 *  Thread Starter [PPNSteve](https://wordpress.org/support/users/ppnsteve/)
 * (@ppnsteve)
 * [10 years, 4 months ago](https://wordpress.org/support/topic/version-210-update-error/#post-6867860)
 * update did go through and all seems to working well again.. thanks!

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

The topic ‘version 2.1.0 Update error’ is closed to new replies.

 * ![](https://ps.w.org/404-to-301/assets/icon-128x128.png?rev=2251146)
 * [404 to 301 - Redirect, Log and Notify 404 Errors](https://wordpress.org/plugins/404-to-301/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/404-to-301/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/404-to-301/)
 * [Active Topics](https://wordpress.org/support/plugin/404-to-301/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/404-to-301/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/404-to-301/reviews/)

 * 11 replies
 * 3 participants
 * Last reply from: [PPNSteve](https://wordpress.org/support/users/ppnsteve/)
 * Last activity: [10 years, 4 months ago](https://wordpress.org/support/topic/version-210-update-error/#post-6867860)
 * Status: resolved