• Updated the plugin on 2 WP sites and received fatal error messages. I tried deleting and reinstalling but cannot activate the plugin for either site. I would appreciate any assistance you can offer.

    Parse error: syntax error, unexpected T_STRING, expecting T_CONSTANT_ENCAPSED_STRING or ‘(‘ in /home/content/11/2977511/html/wp-content/plugins/advanced-browser-check/abc-core.php on line 5

    Thank you,

    Casi

    https://wordpress.org/plugins/advanced-browser-check/

Viewing 11 replies - 1 through 11 (of 11 total)
  • Plugin Author Mattias

    (@darkwhispering)

    Hi @casirn

    The error you are seeing is due to your server running a PHP version below 5.3.

    The plugin requires PHP version 5.3 or above to work. Please contact your hosting provider and let them know you need PHP updated to at least 5.3

    Thread Starter casirn

    (@casirn)

    Mattias,

    Thank you for the quick response. I updated the hosting to PHP 5.4 and installed and activated but now my website is gone and I receive this message when attempting to access the site, http://www.thelactationlady.com :

    Parse error: syntax error, unexpected T_STRING, expecting T_CONSTANT_ENCAPSED_STRING or ‘(‘ in /home/content/11/2977511/html/wp-content/plugins/advanced-browser-check/abc-core.php on line 5

    Please help,

    Casi

    Thread Starter casirn

    (@casirn)

    I deleted the Advance Browser Check plugin in via FTP to get site working again, but I would really love to work out this kink. The older version worked so well for me. I manage a non-profit site, njbreastfeeding.org, and many healthcare workers try to access the site from our local hospitals via ie7 and the tailored message helps to clarify things (especially when they are attempting to register for our conference).

    Plugin Author Mattias

    (@darkwhispering)

    Sorry to hear you still have issues after updating to PHP 5.4.

    I’m running my plugin on multiple sites on both PHP 5.4 and 5.3 and the error you have is something I have only seen on hosts that have PHP below 5.3.

    I will continue investigating the issue and let you know when I have any update. For know I would recommend download an older version of the plugin for here http://downloads.wordpress.org/plugin/advanced-browser-check.2.2.0.zip

    Plugin Author Mattias

    (@darkwhispering)

    Hi again,

    All information I can find about this kind of PHP error message is related to trying to run a PHP 5.3+ script on a PHP below 5.3 server.

    Can you please setup a php_info() file on your site send me the link?

    Thread Starter casirn

    (@casirn)

    Mattias,

    Sorry for the delayed response. I was able to reinstall the older version successfully; thank you for the link.

    In regards to setting up a php_info() file, I really have not idea what that is but I would happily help out if you could offer some more instruction. Website creator is definitely not my dayjob but I am a quick learner:)

    Casi

    Plugin Author Mattias

    (@darkwhispering)

    To set up a php info file, create a new blank php file in the root of your webserver (should be same location as your WordPress files) and name it to anything.
    For example phpinfo.php

    Edit the file and put in

    <?php phpinfo(); ?>

    and save the file. If you now navigate to http://www.thelactationlady.com/phpinfo.php you should get a page that list lots of information.

    My issue is similar:

    Fatal error: Call to undefined function plugin_dir_path() in /home/domains/(…)/public_html/wp-content/plugins/advanced-browser-check/abc-core.php on line 4

    Thread Starter casirn

    (@casirn)

    Mattias,

    Done. I hope the information is helpful. Let me know if you need anything else.

    Thank you,

    Casi

    Plugin Author Mattias

    (@darkwhispering)

    Hi @motylanogha

    Your issue are more related to this issue Please take a look there and see if anything in that thread helps you, and update me in that thread. Thanks.

    @casirn
    At first glance, it should work for you. You do indeed have PHP 5.4 installed. This makes me confused as to why you have this error.

    I will keep digging and let you know if I find anything.

    For those who use Host Gator just add the code on .htaccess

    # Enable PHP 5.3
    AddType application/x-httpd-php53 .php

Viewing 11 replies - 1 through 11 (of 11 total)
  • The topic ‘Updated and now plugin does not function-fatal error’ is closed to new replies.