Support » Plugin: Popup Maker - Popup Forms, Optins & More » Error on PHP version upgrade

  • Resolved Shah Ahmad Yusof

    (@shahahmadyusof)


    Hello.

    I’m hosting with SiteGround and would like to use the latest PHP version available provided by my hosting company which is v7.2.9. I tried to upgrade it but I receive an error from my SiteGround plugin. Below is the error I received.

    FILE: /public_html/wp-content/plugins/popup-maker/includes/pum-sdk/freemius/includes/class-freemius.php
    ——————————————————————————
    FOUND 1 ERROR AFFECTING 1 LINE
    ——————————————————————————
    15520 | ERROR | ‘clone’ is a reserved keyword introduced in PHP version 5.0 and cannot be invoked as a function (T_CLONE)
    ——————————————————————————

    So now I’m currently stuck to use PHP v7.0.31. I also cannot upgrade it to PHP v7.1.21 due to the same error. Please kindly look into this and fix this. Thanks in advance.

Viewing 1 replies (of 1 total)
  • Plugin Author danieliser

    (@danieliser)

    @shahahmadyusof – Sounds like you should already be good since we no longer load that library as of a few weeks ago in v1.7.30.

    That said I develop on PHP 7.2 no such error has ever occurred in our logs, so you may need to dig further as I’m using 7.2.10 as of the last week and a half.

    Again though the latest version only calls freemius once to set a flag, then never again. If you have been running it for weeks since v1.7.30 then it likely isn’t loading any longer.

    All of this said the text you posted isn’t an actual runtime error. Its a PHP scanner tool output, which has known issues with being able to predict if something actually will generate an error. IE they show up even if code never runs. IE if we have code that only runs on PHP 5.2 for backward compatibility, your scanner would flag that too which is the case in another plugin of mine.

    Hope that helps. If your issue is resolved please take a moment to rate and review the plugin or support.

    If you still need help please message us directly at https://wppopupmaker.com/support/.

Viewing 1 replies (of 1 total)
  • The topic ‘Error on PHP version upgrade’ is closed to new replies.