• Hi:

    I can’t really link to a page as this affects my whole site.

    I cant update my PHP to 7.0 or higher as it crashes my site.
    My php is currently at 5.6. I have gone through all this with my hosting company and they told me it was the theme that was causing the issue.

    I can update all my plugins except LearnDash (which I recently purchased).
    It needs a higher PHP otherwise it sits there. I need to update LearnDash to run my courses.

    Sincerely
    Marilyn Zink
    Herbal Collective publisher
    https://www.herbalcollective.news

Viewing 5 replies - 1 through 5 (of 5 total)
  • Thread Starter herblady47

    (@herblady47)

    My message is above on the PHP update to 7.0 and higher crashing my site.

    @herblady47

    The theme is compatible with the latest version of PHP, ie, PHP 7.X So, maybe some other thing, may be used plugin in your site might be causing this issue. So, can you once deactivate the used plugin in your site and try the upgrade and see if that helps you resolve the issue? If it does not resolve the issue then, can you contact to us via our chat support through our site?

    Thanks.

    Thread Starter herblady47

    (@herblady47)

    Hi Nitu:

    What do you mean by ‘used’ plugin?

    Do you mean an unused plugin?

    Or do you mean the LearnDash plugin that needs to be updated?
    Should I deactivate that?

    Sincerely
    Marilyn Zink

    Thread Starter herblady47

    (@herblady47)

    My website host sent me this stating why they think it is the theme.

    Fatal error: Uncaught Error: Call to undefined function get_header() in /home/herbalco/public_html/wp-content/themes/colormag/index.php:9
    Stack trace:
    #0 {main}
    thrown in /home/herbalco/public_html/wp-content/themes/colormag/index.php on line 9

    This error does not occur when using PHP 5.6, but when I switch it to PHP 7.0 or above, that is the error produced. I would recommend getting in touch with the developer of the theme so they can update it to work with PHP 7, or use a theme that is compatible with PHP 7+.

    Regards,

    Kale M.
    Support Specialist
    A2 Hosting – Our Speed, Your Success!
    https://www.a2hosting.com/support

    @herblady47

    The function: get_header() resides within WordPress and it will only give you that error if you access the theme file directly via browser else it should not. Or, did you add the theme file within the root folder of your site which caused the issue?
    And to again let you know, we have been using the latest version of PHP, ie, 7.3 in our development environment and never faced this issue at all as you’ve mentioned. So, can you once properly check on it and confirm? Or maybe let us know about how your setup environment is for WordPress so that we could try to replicate the same issue within our development environment.

    Thanks.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘PHP update to 7.1 crashes my site’ is closed to new replies.