PLEASE NOTE: These forums are no longer utilized and are provided as an archive for informational purposes only. All support issues will be handled via email using our support ticket system. For more detailed information on this change, please see this blog post.

Plugin activation issue

  1. Hello there - I'm getting an error familiar on this forum:

    Parse error: syntax error, unexpected T_STRING, expecting T_OLD_FUNCTION or T_FUNCTION or T_VAR

    However I have PHP 5.2.17 installed on my Bluehost server. Can anyone help? The plugin works wonderfully locally, by the way, very pleased with and will be upgrading to developer soon, once I can get these demo sites working.

    Many thanks

    Rob

    Posted 13 years ago on Thursday June 16, 2011 | Permalink
  2. If you are getting that error I can tell you without a doubt, 100% that you aren't running a version of PHP compatible with Gravity Forms which is generally PHP 5.

    It could be a problem with PHP 5.2.17, but that error only happens when the necessary PHP 5 function doesn't exist.

    Be aware that WordPress 3.2 is going to require PHP 5.2.4+. Early versions of PHP 5 had problems so 5.2.17 could be one of them. You aren't going to be able to use WordPress 3.2 if that server is running 5.2.17.

    Posted 13 years ago on Thursday June 16, 2011 | Permalink
  3. Thanks for getting back to me. I'm 100% using 5.2.17, and I'm also running Wordpress 3.2 on a number of sites on that platform. Presumably 5.2.17 is after 5.2.4 in the cycle?

    Posted 13 years ago on Thursday June 16, 2011 | Permalink
  4. 5.2.4 is not after 5.2.17 in the cycle. The numbers are sequential. 5.2.17 is an older version of PHP5. While WordPress 3.2 may appear to run fine, don't count out running into problems running WordPress 3.2 because it's minimum requirements include PHP 5.2.4+

    However, your site may be running PHP 5 but it is still behaving as if it is running PHP 4. That error is a version related error, it's the only thing that causes it. That or the PHP 5 your server running has a problem, because that is an error related to a function not being found... a function that should exist in PHP 5.

    You may need to discuss this with BlueHost. We have never encountered this error in any situation other than a site not running a compatible version of PHP.

    Posted 13 years ago on Thursday June 16, 2011 | Permalink
  5. Sorry, that's what I said; 5.2.17 is after 5.2.4; and so it's meeting the minimum requirements of WP 3.2, and also presumably the plugin?

    I can bring this up with Bluehost, though the likelihood of them upgrading their PHP installation because of my plugin is slim I imagine. I'm assuming I'm not the only person using php 5.2.17 and this plugin; do you have further details then on which specific versions of PHP5 are compatible with the plugin?

    Thanks again for the help - like I say, great product working well locally, very pleased with it.

    Posted 13 years ago on Thursday June 16, 2011 | Permalink
  6. I don't think this is a PHP 5.2.17 issue, I think it is a BlueHost issue. It still sounds like despite the fact PHP 5.2.17 is installed on your server, your PHP is still executing as PHP 4. This could be some sort of other PHP configuration issue. If your site was running PHP 5.2.17 you wouldn't be receiving this error message, which only occurs in older versions of PHP. So yes, I would suggest discussing this with BlueHost directly.

    Posted 13 years ago on Thursday June 16, 2011 | Permalink
  7. Thanks Carl - I've raised a ticket asking a few questions, will update here for the record.

    Posted 13 years ago on Thursday June 16, 2011 | Permalink
  8. Quick update for the record, in case anyone else has a similar problem. I sent the last response from Carl to Bluehost, and got this reply:

    "I have moved you over to php5 in your .htaccess file. We recently disabled php4 for all servers. That may have caused this issue."

    And now everything works fine.

    Posted 13 years ago on Friday June 17, 2011 | Permalink
  9. Note guys: There's a Wordpress Requirements checker plug in at:
    http://wordpress.org/extend/plugins/wordpress-requirements-check/

    I just ran it on my site running PHP 5.2.17 and the checker says it passes requirements.

    Disclaimer: Who knows if it's going to actually work though.

    Posted 13 years ago on Tuesday June 21, 2011 | Permalink