Title: Syntax error on line 1959
Last modified: March 24, 2017

---

# Syntax error on line 1959

 *  Resolved [ricardovsanches](https://wordpress.org/support/users/ricardovsanches/)
 * (@ricardovsanches)
 * [10 years ago](https://wordpress.org/support/topic/syntax-error-on-line-1959/)
 * I got this message on activation:
 * Parse error: syntax error, unexpected T_FUNCTION in /home/storage/5/e0/b3/duedigital1/
   public_html/wp-content/plugins/bootstrap-3-shortcodes/bootstrap-shortcodes.php
   on line 1959
 * [https://wordpress.org/plugins/bootstrap-3-shortcodes/](https://wordpress.org/plugins/bootstrap-3-shortcodes/)

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

1 [2](https://wordpress.org/support/topic/syntax-error-on-line-1959/page/2/?output_format=md)
[→](https://wordpress.org/support/topic/syntax-error-on-line-1959/page/2/?output_format=md)

 *  Plugin Author [MWDelaney](https://wordpress.org/support/users/foolsrun/)
 * (@foolsrun)
 * [10 years ago](https://wordpress.org/support/topic/syntax-error-on-line-1959/#post-7300030)
 * Hi,
    I’m having a hard time reproducing this error. Can you tell me a little 
   more about your setup? What version of WordPress are you using? What version 
   of this plugin? Can you try deleting the plugin and reinstalling it from the 
   WordPress repo?
 *  Thread Starter [ricardovsanches](https://wordpress.org/support/users/ricardovsanches/)
 * (@ricardovsanches)
 * [10 years ago](https://wordpress.org/support/topic/syntax-error-on-line-1959/#post-7300036)
 * WordPress: 4.5 and Plugin: 3.3.8
 * I was using this plugin then I updated my wordpress and plugin.
    Now I get this
   error when I try to active the plugin. I deleted the plugin and reinstalled it
   from wordpress but I still get this error. This is my site: [http://duedigital.com.br/](http://duedigital.com.br/)
 * Thanks
 *  Plugin Author [MWDelaney](https://wordpress.org/support/users/foolsrun/)
 * (@foolsrun)
 * [10 years ago](https://wordpress.org/support/topic/syntax-error-on-line-1959/#post-7300038)
 * How about this, can you confirm your version of PHP?
 *  Thread Starter [ricardovsanches](https://wordpress.org/support/users/ricardovsanches/)
 * (@ricardovsanches)
 * [10 years ago](https://wordpress.org/support/topic/syntax-error-on-line-1959/#post-7300040)
 * PHP Version 5.2.17
 *  Plugin Author [MWDelaney](https://wordpress.org/support/users/foolsrun/)
 * (@foolsrun)
 * [10 years ago](https://wordpress.org/support/topic/syntax-error-on-line-1959/#post-7300042)
 * I believe that may be the problem. Do you have any ability to upgrade to PHP 
   5.3 or newer?
 *  [thcinc](https://wordpress.org/support/users/thcinc/)
 * (@thcinc)
 * [10 years ago](https://wordpress.org/support/topic/syntax-error-on-line-1959/#post-7300142)
 * I’m having the same issue… set to PHP 5.4
 * Error:
    Parse error: syntax error, unexpected T_FUNCTION in /home/content/34/
   2028434/html/mybenefitauctioneer/wp-content/plugins/bootstrap-3-shortcodes/bootstrap-
   shortcodes.php on line 1959
 *  [mherbison](https://wordpress.org/support/users/mherbison/)
 * (@mherbison)
 * [10 years ago](https://wordpress.org/support/topic/syntax-error-on-line-1959/#post-7300165)
 * Hi, I’m experiencing the same “line 1959” error with WP-4.5 + PHP-5.4.45 + Plugin-
   3.3.8.
 * I first noticed it when my WP install auto-upgraded to 4.5 and 3.3.8 and I found
   my site was broken. I FTP’d in, deleted the plugin folder, then reinstalled it
   from the WordPress repository — when I try to activate the plugin, it tells me“
   Plugin could not be activated because it triggered a fatal error” with the same
   line-1959 error.
 * Let me know if any other details might be useful. Thanks Michael — love the plugin!-
   Matt
 *  Plugin Author [MWDelaney](https://wordpress.org/support/users/foolsrun/)
 * (@foolsrun)
 * [10 years ago](https://wordpress.org/support/topic/syntax-error-on-line-1959/#post-7300169)
 * Okay, the error you’re receiving indicates that your version of PHP doesn’t like
   the anonymous function on line 1959. The problem is that anonymous functions 
   have been supported by PHP since version 5.3, so at least mherbison and think
   should be OK.
 * I’ve seen some shared hosts keep per-site php.ini files that set back the version
   of PHP being run despite the account’s setting. Can you confirm absolutely (maybe
   run phpinfo()) on your sites that you’re running PHP 5.4?
 * Thank you. I want to get to the bottom of this but I can’t for the life of me
   reproduce the error you’re seeing.
 *  [Cassio Murilo](https://wordpress.org/support/users/cmcontato/)
 * (@cmcontato)
 * [10 years ago](https://wordpress.org/support/topic/syntax-error-on-line-1959/#post-7300213)
 * I’m also having the same problem, my php is 5.2
 *  Thread Starter [ricardovsanches](https://wordpress.org/support/users/ricardovsanches/)
 * (@ricardovsanches)
 * [10 years ago](https://wordpress.org/support/topic/syntax-error-on-line-1959/#post-7300214)
 * I updated my php to version 5.6 and now works fine.
 *  [Cassio Murilo](https://wordpress.org/support/users/cmcontato/)
 * (@cmcontato)
 * [10 years ago](https://wordpress.org/support/topic/syntax-error-on-line-1959/#post-7300216)
 * Thanks Ricardo, I edit my .htacess and its works now.
 *  Plugin Author [MWDelaney](https://wordpress.org/support/users/foolsrun/)
 * (@foolsrun)
 * [10 years ago](https://wordpress.org/support/topic/syntax-error-on-line-1959/#post-7300220)
 * I’ll make it clearer in the readme and documentation that PHP 5.3+ is required.
   Thanks for the information, everyone!
 *  [mherbison](https://wordpress.org/support/users/mherbison/)
 * (@mherbison)
 * [10 years ago](https://wordpress.org/support/topic/syntax-error-on-line-1959/#post-7300236)
 * Thanks MWD! The pre-PHP-5.3 version was indeed the problem. It’s fixed now, running
   PHP-5.4.45.
 * In case it helps anyone else:
    I use HostGator for webhosting. In the control
   panel “Program Versions” page, it stated that PHP-5.4.45 was installed. However,
   I installed the simple [PHP Version WP plugin](https://wordpress.org/plugins/display-php-version/)
   and it indicated that my WP instance was using PHP-5.2.
 * If you have different websites set up on HostGator, each might still be running
   older versions of PHP. [This page](http://support.hostgator.com/articles/cpanel/php-configuration-plugin)
   shows how to upgrade PHP version for each site/sub-directory.
 * Thanks again. -Matt
 *  [vikkinor](https://wordpress.org/support/users/vikkinor/)
 * (@vikkinor)
 * [10 years ago](https://wordpress.org/support/topic/syntax-error-on-line-1959/#post-7300259)
 * Hi I’m having this problem as well.
 * So as long as I update my PHP to 5.3 it should workout ok?
 *  Plugin Author [MWDelaney](https://wordpress.org/support/users/foolsrun/)
 * (@foolsrun)
 * [10 years ago](https://wordpress.org/support/topic/syntax-error-on-line-1959/#post-7300260)
 * vikkinor,
    Yes, upgrading to PHP 5.3 or greater should fix the issue you’re seeing.

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

1 [2](https://wordpress.org/support/topic/syntax-error-on-line-1959/page/2/?output_format=md)
[→](https://wordpress.org/support/topic/syntax-error-on-line-1959/page/2/?output_format=md)

The topic ‘Syntax error on line 1959’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/bootstrap-3-shortcodes_7f6b9f.svg)
 * [Bootstrap Shortcodes for WordPress](https://wordpress.org/plugins/bootstrap-3-shortcodes/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/bootstrap-3-shortcodes/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/bootstrap-3-shortcodes/)
 * [Active Topics](https://wordpress.org/support/plugin/bootstrap-3-shortcodes/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/bootstrap-3-shortcodes/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/bootstrap-3-shortcodes/reviews/)

## Tags

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

 * 19 replies
 * 10 participants
 * Last reply from: [yohannes1](https://wordpress.org/support/users/yohannes1/)
 * Last activity: [9 years, 3 months ago](https://wordpress.org/support/topic/syntax-error-on-line-1959/page/2/#post-8791597)
 * Status: resolved