• I am unable to upgrade php beyond version 5.6 because if I do (and WP would like me to) I get an error due to the WP-pro-quiz plugin.

    Deprecated: Array and string offset access syntax with curly braces is deprecated in /home2/tlnet/public_html/blog/wp-content/plugins/wp-pro-quiz/lib/helper/WpProQuiz_Helper_Until.php on line 127

    I understand I should be able to modify the plugin to use square brackets but if I were (able) to do that would I then have to rewrite all my quizzes?
    I am not a programmer or developer, just a user.
    Any advice gratefully received

    The page I need help with: [log in to see the link]

Viewing 6 replies - 1 through 6 (of 6 total)
  • I run this plugin on two different websites both running PHP 7.2. I had to hire a programmer to update the WP-Pro-Quiz plugin code to be able to handle the update. I would recommend that anyone trying to upgrade beyond 5.6 do the same. Many benefits running newer PHP versions.

    Thread Starter David Massey

    (@dprm)

    Glad you fixed it. Could you put me in touch with your programmer? Costs?

    @dprm Hi, I am running my website on PHP 7.3 without any problem. It’s just a warning.

    I don’t recall the cost but I don’t believe it was very expensive. My programmer is really good. I use a company called Edge Webware. https://edgewebware.com/

    Tell them that Carl Borsani sent you.

    Best of luck

    Hi @dprm you can contant me for this, would love to do that for you.
    [email protected]

    @dprm Hey, the only thing to do is replacing the curly braces “{}” with square brackets “[ ]” in the file on the line 127. I remember there was another line to change.
    Exemple : change $c = $format{$c}; to $c = $format[$c];

    Since PHP 7.4 the curly braces are deprecated.

    Hope that helps.

    Cheers

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Fix to enable php upgrade beyond 5.6?’ is closed to new replies.