Viewing 15 replies - 1 through 15 (of 18 total)
  • Plugin Author MWDelaney

    (@foolsrun)

    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

    (@ricardovsanches)

    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: https://duedigital.com.br/

    Thanks

    Plugin Author MWDelaney

    (@foolsrun)

    How about this, can you confirm your version of PHP?

    Thread Starter ricardovsanches

    (@ricardovsanches)

    PHP Version 5.2.17

    Plugin Author MWDelaney

    (@foolsrun)

    I believe that may be the problem. Do you have any ability to upgrade to PHP 5.3 or newer?

    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

    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

    (@foolsrun)

    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.

    I’m also having the same problem, my php is 5.2

    Thread Starter ricardovsanches

    (@ricardovsanches)

    I updated my php to version 5.6 and now works fine.

    Thanks Ricardo, I edit my .htacess and its works now.

    Plugin Author MWDelaney

    (@foolsrun)

    I’ll make it clearer in the readme and documentation that PHP 5.3+ is required. Thanks for the information, everyone!

    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 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 shows how to upgrade PHP version for each site/sub-directory.

    Thanks again. -Matt

    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

    (@foolsrun)

    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)
  • The topic ‘Syntax error on line 1959’ is closed to new replies.