WordPress.org

Ready to get started?Download WordPress

Forums

Gunner Technology Pinboard
Fatal Error (11 posts)

  1. jpisanu
    Member
    Posted 2 years ago #

    Hi,
    I'm getting a fatal error when I try to activate the plugin.

    Parse error: syntax error, unexpected T_FUNCTION in /nfs/c06/h04/mnt/94671/domains/xx.xxxxxx.com/html/wp-content/plugins/gt-pinboard/gunner_technology_pinboard.php on line 60

    Any ideas of what can this be?

    Thanks.

    http://wordpress.org/extend/plugins/gt-pinboard/

  2. sebo246
    Member
    Posted 2 years ago #

    I'm getting the same error, even with all other plugins disabled.

  3. Lisa Allen
    Member
    Posted 2 years ago #

    I researched this on the net and it appears that the error message occurs because the programmer has used an anonymous function call in the code. Anonymous functions are only supported from PHP 5.3 and up. You are probably using PHP 5.2 like I am.

    In order for it to be backward compatible with 5.2, the anonymous function called on line 60 needs to be given a name and called slightly differently.

  4. sebo246
    Member
    Posted 2 years ago #

    Okay... thanks! So - I know the very very basics of code. Can you tell me how to give it a name?

  5. Lisa Allen
    Member
    Posted 2 years ago #

    Actually, having looked over the rest of what would be required to make this backward compatible with PHP 5.2, there is one other incompatible feature of 5.3 that has been used in the code. I'm not well versed enough to fix the second problem myself either, so if you don't know how to write a basic function in PHP, you're probably best off either hiring someone from oDesk or Fiverr to fix it up, or else seeing if the original dev will fix it for PHP 5.2 compatibility.

  6. sebo246
    Member
    Posted 2 years ago #

    Okay well I've contacted my host which is Hostgator, here's the instructions on fixing this for those of you who use Hostgator shared hosting.

    http://support.hostgator.com/articles/hosting-guide/hardware-software/php-5-3

  7. sebo246
    Member
    Posted 2 years ago #

    Alright, I added the code to my htaccess file as per the above instructions and it worked great. So if anyone else is having similar issues, contact your host if it's not Hostgator and see if they can upgrade your site to 5.3.

  8. sebo246
    Member
    Posted 2 years ago #

    yeah so I guess it's not working, I got it installed but now trying to set up the pins and getting this error on the page itself when it loads:

    Fatal error: Call to undefined function _log() in /home/login/public_html/xxxxxxxxx.com/wp-content/plugins/gt-pinboard/gunner_technology_pinboard.php on line 571

  9. dpr22
    Member
    Posted 2 years ago #

    I'm getting this same fatal error after upgrading to 5.3.

    Any other thoughts?

  10. notdodgy
    Member
    Posted 2 years ago #

    Can anyone post up the code updates needed to get this to work?

  11. notdodgy
    Member
    Posted 2 years ago #

    Ok - got this to work...

    Step 1 - update PHP version to 5.3 minimum.
    (I did this in the WHM Cpanel option to create/update Apache).
    step 2 - edit the main php file that comes with this plug-in and insert // at the start of the line that begins "_log"

    Now need to sort out the layout issues to get it working correctly on my theme.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic