• Resolved DanielGardner

    (@danielgardner)


    Hello,

    My entire site went of the air today, with an error message pointing to the Mooberry plugin helper functions, line 245. I’m wondering if anyone else had this problem, since the updated version of this plug 7hrs ago.

    This happened one other time, about 45 days ago. I just download a fresh copy of the plugin and uploaded it, and the problem fixed itself. This time however, the problem is persisting, with this error message:

    Parse error: syntax error, unexpected T_FUNCTION, expecting ‘)’ in /home1/obreiro/public_html/palavraprudente/wp-content/plugins/mooberry-book-manager/includes/helper-functions.php on line 245

    https://wordpress.org/plugins/mooberry-book-manager/

Viewing 9 replies - 1 through 9 (of 9 total)
  • Plugin Author mooberrydreams

    (@mooberrydreams)

    Your webhost is using a very old version of PHP, something earlier than 5.3.0. Some hosts allow you to update your version of PHP. That’s something you should look into, as running old versions of PHP can leave your site less secure.

    Thread Starter DanielGardner

    (@danielgardner)

    Thank you for letting me know!

    Thread Starter DanielGardner

    (@danielgardner)

    Got in contact with host, was informed that version of PHP was 5.4, and I requested an upgrade to version 7.0. After this upgrade, the plugin worked perfectly.

    Thank you for the awesome plugin!

    Plugin Author mooberrydreams

    (@mooberrydreams)

    Glad you were able to get it taken care of so quickly! Was just coming here to give you directions for rolling back to a previous version. 🙂

    I’ve had that happen to me. I also upgraded from PHP 5.2, and the issue resolved.
    Excellent plugin.

    I receive the error

    parse error: syntax error, unexpected T_FUNCTION, expecting ‘)’ in /home/***/public_html/wp-content/plugins/mooberry-book-manager/includes/helper-functions.php on line 361

    The server runs PHP 5.2 and updating that to a newer version is currently out of question. So that means I can’t use the plugin?

    • This reply was modified 7 years, 6 months ago by lhk.
    Plugin Author mooberrydreams

    (@mooberrydreams)

    I can see about fixing the function to be compatible with 5.2 next week, however I can’t guarantee that other parts of the plugin will be compatible. PHP 5.2 is not supported. It was end of life in 2011ish I believe, and it has security vulnerabilities.

    Well, most hosts I know still work with versions 5.* and you can’t just ask them to upgrade on shared hosting platforms. I have accounts at different hosts ranging from 5.0 to 5,6.

    You really should calculate with a certain lag in hosts applying the newest software versions. A fairly recent PHP version shouldn’t break a whole site or a plugin.

    • This reply was modified 7 years, 6 months ago by lhk.
    Plugin Author mooberrydreams

    (@mooberrydreams)

    PHP 5.2 is not a recent PHP version. It was end of life 5 years ago. It has known security vulnerabilities.

    PHP 5.5 is now about to go end of life.

    I am on shared hosting platforms as many of my customers are. You absolutely can upgrade your PHP version on shared hosting platforms, and usually yourself through the control panel. Don’t even need the host involved. Maybe not your shared hosting platform (I don’t know who you are using) but it’s definitely not true that just because you are using shared hosting you can’t run a version of PHP that is more recent than 5 years from its end of life.

    I’ve yet to hear of a host that won’t upgrade from 5.2 to a higher 5.x version. In fact, given the security vulnerabilities of 5.2, I would be wary of using a host that refused to upgrade from 5.2.

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘Error on line 245, helper functions’ is closed to new replies.