Title: PHP Parse error
Last modified: August 30, 2016

---

# PHP Parse error

 *  [pey22](https://wordpress.org/support/users/pey22/)
 * (@pey22)
 * [10 years, 8 months ago](https://wordpress.org/support/topic/php-parse-error-14/)
 * PHP Parse error: syntax error, unexpected ‘[‘ in wp-content/plugins/portfolio-
   slideshow/lib/Plugin.php on line 57
 * [https://wordpress.org/plugins/portfolio-slideshow/](https://wordpress.org/plugins/portfolio-slideshow/)

Viewing 15 replies - 1 through 15 (of 20 total)

1 [2](https://wordpress.org/support/topic/php-parse-error-14/page/2/?output_format=md)
[→](https://wordpress.org/support/topic/php-parse-error-14/page/2/?output_format=md)

 *  [smoo](https://wordpress.org/support/users/smoo/)
 * (@smoo)
 * [10 years, 8 months ago](https://wordpress.org/support/topic/php-parse-error-14/#post-6403707)
 * Hi,
    I’m getting the same error after Worpdress upgraded to 4.2.4;
 * “Plugin could not be activated because it triggered a fatal error.
    Parse error:
   syntax error, unexpected ‘[‘ in /home/myusername/public_html/wp-content/plugins/
   portfolio-slideshow/lib/Plugin.php on line 57″
 * The site is here: [http://richardjamesupholstery.com/coach-trimming/rolls-royce-silver-ghost-1925/](http://richardjamesupholstery.com/coach-trimming/rolls-royce-silver-ghost-1925/)
 * Any help would be much appreciated, thank you in advance.
 *  [dwheeler](https://wordpress.org/support/users/dwheeler/)
 * (@dwheeler)
 * [10 years, 8 months ago](https://wordpress.org/support/topic/php-parse-error-14/#post-6403720)
 * Same problem here.
    I had to go back to the old version.
 *  [smoo](https://wordpress.org/support/users/smoo/)
 * (@smoo)
 * [10 years, 8 months ago](https://wordpress.org/support/topic/php-parse-error-14/#post-6403721)
 * Hi dwheeler,
    do you mean the old version of the plugin or WP?! I don’t have 
   an older version to try unfortunately.
 * HOwever, it looks like there are quite a lot of posts on here about this problem,
   so hopefully there will be a fix soon…
 *  [cdrak0715](https://wordpress.org/support/users/cdrak0715/)
 * (@cdrak0715)
 * [10 years, 8 months ago](https://wordpress.org/support/topic/php-parse-error-14/#post-6403736)
 * I had the same issue when I upgraded to the new version of the plugin. I’m using
   WP 4.2.4. The site disappeared. No admin. No site. Fortunately had an old version
   of the plugin in a test environment. I copied that to the live site and it’s 
   fine now.
 *  [Ferry](https://wordpress.org/support/users/fkemps/)
 * (@fkemps)
 * [10 years, 8 months ago](https://wordpress.org/support/topic/php-parse-error-14/#post-6403749)
 * Same behavior on my WP website. The problem is that my PHP 5.3.10 version doesn’t
   parses the ‘[‘ array statement (php -l ./lib/Plugin.php)
 * Validation on another server with PHP 5.5 shows no errors.
 * Renaming the portfolio plugin directory and restarting webserver gets the website
   online again. No slides shows of cause as the plugin is not loaded.
 * The back port to PHP 5.3 is not working, at least for my version which comes 
   with Ubuntu 12.04.5 LTS. This version is out there a lot I guess, so fixing the
   plugin makes sense in stead of upgrading PHP by hand…
 * Regards,
    Ferry
 *  [andoverit](https://wordpress.org/support/users/andoverit/)
 * (@andoverit)
 * [10 years, 8 months ago](https://wordpress.org/support/topic/php-parse-error-14/#post-6403751)
 * Same issue here – I’ve downloaded v1.5.1 from the Developers tab:
 * [https://wordpress.org/plugins/portfolio-slideshow/developers/](https://wordpress.org/plugins/portfolio-slideshow/developers/)
 * 1) Deleted v1.9.9
    2) Uploaded v1.5.1 3) Activated v1.5.1
 * Site now working again.
 *  [smoo](https://wordpress.org/support/users/smoo/)
 * (@smoo)
 * [10 years, 8 months ago](https://wordpress.org/support/topic/php-parse-error-14/#post-6403843)
 * Thanks andoverit,
    that worked a treat!
 *  [Tim Smith](https://wordpress.org/support/users/creativeinfusion/)
 * (@creativeinfusion)
 * [10 years, 8 months ago](https://wordpress.org/support/topic/php-parse-error-14/#post-6403851)
 * The fault is actually that contrary to the plugin description it now needs PHP
   5.4 to work.
 * The code is using the new short form array syntaxt that is only supported in 
   PHP >= 5.4
 *  [andoverit](https://wordpress.org/support/users/andoverit/)
 * (@andoverit)
 * [10 years, 8 months ago](https://wordpress.org/support/topic/php-parse-error-14/#post-6403909)
 * Thanks Tim and a pleasure Smoo – glad it helped 🙂
 *  Thread Starter [pey22](https://wordpress.org/support/users/pey22/)
 * (@pey22)
 * [10 years, 8 months ago](https://wordpress.org/support/topic/php-parse-error-14/#post-6403911)
 * PHP Parse error: syntax error, unexpected ‘[‘ in wp-content/plugins/portfolio-
   slideshow/lib/Plugin.php on line 57
 * Not Working also in Version 1.10
 *  [carnini](https://wordpress.org/support/users/carnini/)
 * (@carnini)
 * [10 years, 8 months ago](https://wordpress.org/support/topic/php-parse-error-14/#post-6403946)
 * Had the same error, went to the development tab on the wordpress plugin site 
   and installed several versions back and it worked fine. Now I have to tell the
   client not to update their plugin for what we don’t know how long.
 *  [csleh](https://wordpress.org/support/users/csleh/)
 * (@csleh)
 * [10 years, 8 months ago](https://wordpress.org/support/topic/php-parse-error-14/#post-6403948)
 * thanks for the link to previous version list.
 *  [Cardinal Creative Agency](https://wordpress.org/support/users/astaylor/)
 * (@astaylor)
 * [10 years, 8 months ago](https://wordpress.org/support/topic/php-parse-error-14/#post-6403973)
 * Yes, thanks for the link and advice andoverit! You saved my site!
 *  [dlnsparks](https://wordpress.org/support/users/dlnsparks/)
 * (@dlnsparks)
 * [10 years, 8 months ago](https://wordpress.org/support/topic/php-parse-error-14/#post-6403974)
 * Thank you so much andoverit! I’ve had this issue on several sites!
 *  [evergreenframedart](https://wordpress.org/support/users/evergreenframedart/)
 * (@evergreenframedart)
 * [10 years, 7 months ago](https://wordpress.org/support/topic/php-parse-error-14/#post-6403987)
 * Can anyone help please?
 * I have just tried to do an update of my plugins the new version of WordPress.
 * I am getting the same error as mentioned above and I can no longer log into the
   wordpress admin as it no longer recognises me. Why can’t I get back into the 
   admin and can I get my site back the way it was before the upgrade??
 * Please be gentle with me as I am not a website expert!!
 * Here is how my site is looking now: –
 * [http://www.evergreenframedart.co.uk/](http://www.evergreenframedart.co.uk/)
 * Thank you

Viewing 15 replies - 1 through 15 (of 20 total)

1 [2](https://wordpress.org/support/topic/php-parse-error-14/page/2/?output_format=md)
[→](https://wordpress.org/support/topic/php-parse-error-14/page/2/?output_format=md)

The topic ‘PHP Parse error’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/portfolio-slideshow_ffffff.svg)
 * [Portfolio Slideshow](https://wordpress.org/plugins/portfolio-slideshow/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/portfolio-slideshow/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/portfolio-slideshow/)
 * [Active Topics](https://wordpress.org/support/plugin/portfolio-slideshow/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/portfolio-slideshow/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/portfolio-slideshow/reviews/)

 * 20 replies
 * 14 participants
 * Last reply from: [ggwicz](https://wordpress.org/support/users/ggwicz/)
 * Last activity: [10 years, 6 months ago](https://wordpress.org/support/topic/php-parse-error-14/page/2/#post-6404001)
 * Status: not resolved