Title: Parse error after Update 2.0.0
Last modified: August 22, 2016

---

# Parse error after Update 2.0.0

 *  Resolved [rainerkormann](https://wordpress.org/support/users/rainerkormann/)
 * (@rainerkormann)
 * [11 years, 1 month ago](https://wordpress.org/support/topic/parse-error-after-update-200/)
 * After Update 2.0.0 the Plugin couldn’t be reactivated, because:
 * Parse error: syntax error, unexpected ‘[‘ in /wp-content/plugins/woocommerce-
   pdf-invoices/admin/classes/woocommerce-pdf-invoices.php on line 276
 * What can I do?
 * Thanks in advance,
    Rainer.
 * [https://wordpress.org/plugins/woocommerce-pdf-invoices/](https://wordpress.org/plugins/woocommerce-pdf-invoices/)

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

 *  [theApe](https://wordpress.org/support/users/theape/)
 * (@theape)
 * [11 years, 1 month ago](https://wordpress.org/support/topic/parse-error-after-update-200/#post-5938893)
 * Same here. I’m rolling back for the minute.
 *  [theApe](https://wordpress.org/support/users/theape/)
 * (@theape)
 * [11 years, 1 month ago](https://wordpress.org/support/topic/parse-error-after-update-200/#post-5938898)
 * I’ve found my problem… I was using this version.
    [http://www.woothemes.com/products/pdf-invoices/](http://www.woothemes.com/products/pdf-invoices/)
 * and without realising I automatically upgraded to…
    [https://wordpress.org/plugins/woocommerce-pdf-invoices/](https://wordpress.org/plugins/woocommerce-pdf-invoices/)
 * They’re unrelated plugins with the same name. It’s be nice if the WP plugin directory
   had SKU codes or something like that for plugins so that sort of thing wouldn’t
   happen.
 *  Plugin Author [Bas Elbers](https://wordpress.org/support/users/baaaaas/)
 * (@baaaaas)
 * [11 years, 1 month ago](https://wordpress.org/support/topic/parse-error-after-update-200/#post-5938900)
 * I’m looking into it.
    You could try to delete, download and reactivate version
   2.0.0.
 *  Thread Starter [rainerkormann](https://wordpress.org/support/users/rainerkormann/)
 * (@rainerkormann)
 * [11 years, 1 month ago](https://wordpress.org/support/topic/parse-error-after-update-200/#post-5938901)
 * Thanks theApe: same with me. Wrong Plugin-Auto-Update…
 *  Plugin Author [Bas Elbers](https://wordpress.org/support/users/baaaaas/)
 * (@baaaaas)
 * [11 years, 1 month ago](https://wordpress.org/support/topic/parse-error-after-update-200/#post-5938903)
 * It’s really strange WordPress only looks at the name of the plugin. theApe thanks!!
 * Wel, try out this plugin. 🙂 It’s free and has a lot more features like sending
   invoices to cloud storage. If you have some request for new features, let me 
   know and I will add it.
 *  [jny007](https://wordpress.org/support/users/jny007/)
 * (@jny007)
 * [11 years, 1 month ago](https://wordpress.org/support/topic/parse-error-after-update-200/#post-5938931)
 * I’ve removed old version of plugin “woocommerce-pdf-invoices” v 1.1.2,
 * downloaded new zip version 2.0.0 – reinstall plugin but still get:
 * Parse error: syntax error, unexpected ‘[‘ in /wp-content/plugins/woocommerce-
   pdf-invoices/admin/classes/woocommerce-pdf-invoices.php on line 276
 * ???
 * Any ideas why?
 * Regards,
    Jan
 *  Plugin Author [Bas Elbers](https://wordpress.org/support/users/baaaaas/)
 * (@baaaaas)
 * [11 years, 1 month ago](https://wordpress.org/support/topic/parse-error-after-update-200/#post-5938962)
 * Could you remove the array [‘class=”…”‘] on line 276 and try again? I don’t know
   anymore what the name of the class is called. I don’t get the error my self so
   it’s hard to debug.
 *  [Lisa](https://wordpress.org/support/users/ikbenlisa/)
 * (@ikbenlisa)
 * [11 years, 1 month ago](https://wordpress.org/support/topic/parse-error-after-update-200/#post-5938972)
 * I had the same problem, but i found the solution: you have to make sure you’re
   on PHP >= 5.4
 * The [shorthand method for arrays is only supported in PHP >= 5.4](http://php.net/manual/en/language.types.array.php),
   and my server was still using 5.3. After upgrading to PHP 5.5, the error was 
   gone.
 * Bas, to improve compatibility i guess you should not use the shorthand code.
 *  [Lisa](https://wordpress.org/support/users/ikbenlisa/)
 * (@ikbenlisa)
 * [11 years, 1 month ago](https://wordpress.org/support/topic/parse-error-after-update-200/#post-5938973)
 * P.S.: great work on the new version of the plugin!
 *  Plugin Author [Bas Elbers](https://wordpress.org/support/users/baaaaas/)
 * (@baaaaas)
 * [11 years, 1 month ago](https://wordpress.org/support/topic/parse-error-after-update-200/#post-5938978)
 * Thanks Lisa for finding the solution. 😀 I will update the plugin as soon as 
   possible! Could you be so kind to give me a 5 star review? If you have any feature
   requests, please let me know. 🙂
 *  [jny007](https://wordpress.org/support/users/jny007/)
 * (@jny007)
 * [11 years, 1 month ago](https://wordpress.org/support/topic/parse-error-after-update-200/#post-5938985)
 * I’ve noticed these shorthand codes too, but for me it is impossible to update
   php. Is there any chance that you correct this baas, as i think a lot of people
   will have troubles with this…and it’s a shame for this really GOOD plugin not
   to be compatible with php under 5.4.
 * If i am correct it is just a replacement of [‘xy’] to array(‘xy’)..or am i wrong
   and it is a lot more work involved?
 * regards,
    Jan
 *  Plugin Author [Bas Elbers](https://wordpress.org/support/users/baaaaas/)
 * (@baaaaas)
 * [11 years, 1 month ago](https://wordpress.org/support/topic/parse-error-after-update-200/#post-5939007)
 * Try 2.0.1
    [https://wordpress.org/plugins/woocommerce-pdf-invoices/changelog/](https://wordpress.org/plugins/woocommerce-pdf-invoices/changelog/)

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

The topic ‘Parse error after Update 2.0.0’ is closed to new replies.

 * ![](https://ps.w.org/woocommerce-pdf-invoices/assets/icon-128x128.png?rev=1128583)
 * [Invoices for WooCommerce](https://wordpress.org/plugins/woocommerce-pdf-invoices/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/woocommerce-pdf-invoices/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/woocommerce-pdf-invoices/)
 * [Active Topics](https://wordpress.org/support/plugin/woocommerce-pdf-invoices/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/woocommerce-pdf-invoices/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/woocommerce-pdf-invoices/reviews/)

## Tags

 * [parse-error](https://wordpress.org/support/topic-tag/parse-error/)

 * 12 replies
 * 5 participants
 * Last reply from: [Bas Elbers](https://wordpress.org/support/users/baaaaas/)
 * Last activity: [11 years, 1 month ago](https://wordpress.org/support/topic/parse-error-after-update-200/#post-5939007)
 * Status: resolved