• Resolved oursafetynet

    (@oursafetynet)


    Greetings,
    I am relatively new to WordPress. I installed WordPress on my HostMonster account without any issues a few days ago. I uploaded the latest My Calendar plugin (3.1.1) without any issues. When I attempted to activate it through the WordPress administration console I received the following error:

    Plugin could not be activated because it triggered a fatal error.
    Parse error: syntax error, unexpected T_FUNCTION in /hostacct/public_html/wpsite/wp-content/plugins/my-calendar/my-calendar-styles.php on line 474

    I logged into the HostMonster console (my hosting company) and saw that I could also control plugin activation from there. I clicked activate on the My Calendar plugin and it said that it activated. When I attempted to log in to the WordPress console I received an Error 500 response. I contacted HostMonster support. They tried a number of things on their end:

    -Changed PHP versions (5.4, 5.6, 6.x)
    -Disabled all plug-ins, re-enable plug-ins
    –My Calendar appears to be the only one having issues
    -Checked for WordPress updates (already running latest 4.9.8)
    -Checked other customers of their sites
    –They appear to have same issue (HostMonster/Blue Host)

    Support suggested I contact the plugin developer with this information for further assistance.

    Any assistance that anyone is willing to provide would be greatly appreciated.
    Thanks in advance.

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author Joe Dolson

    (@joedolson)

    Well, I have a couple questions:

    1) What version of PHP were you on before you tried changing versions?
    2) Is that the actual list of PHP versions that your host told you they tried? If so, that’s…weird. There is no such thing as PHP 6.x; the PHP 6 branch was cancelled and never shipped.

    I’d recommend using PHP 7.x.

    Thread Starter oursafetynet

    (@oursafetynet)

    I just tried using the options for PHP 7.x (PHP 7.0, PHP 7.0: Single php.ini, and PHP 7.0: FastCGI). The plugin still does not activate from within WordPress console (same error message as before). What it does do if I use the HostMonster cPanel to force the activation is give the original error message when trying to get to the WordPress Administration page (unexpected T_FUNCTION…blah blah blah…line 474) instead of just the error 500. ??

    I spoke with support to get the exact PHP version and build numbers that were available for testing. The information I was provided is as follows:
    PHP 5.4
    PHP 5.6
    PHP 7.0.31

    I was told that the versions 5.4 and 5.6 are more “compatibility” mode options rather than actual versions installed on the server. The version that is running on the server is version 7.0.31.

    I also got the Apache and MySQL versions that are in use on the site:
    Apache: 2.2.34
    MySQL: 5.6.41-84.1

    Plugin Author Joe Dolson

    (@joedolson)

    The error you’re seeing is about an anonymous function, which is something that isn’t supported in PHP 5.2. However, it is supported in 5.3 and later; if you’re experiencing this error it suggests that your site is running on PHP 5.2.

    Do you have any lower-level configurations that are forcing WordPress to run in 5.2, even with other versions supposedly running?

    Thread Starter oursafetynet

    (@oursafetynet)

    Thank you so much for your help with this. I took the information you provided to HostMonster support, and it pointed us in the right direction. The support specialist I spoke with (Tyra) said it looked like the issue was in a .htaccess file. There was a line in there was dictating which version of PHP to use. Once that was resolved the plugin activated normally.

    Thank you again for your help with this.

    Plugin Author Joe Dolson

    (@joedolson)

    Glad you got it resolved!

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘My Calendar issue on HostMonster’ is closed to new replies.