• Resolved ajma12

    (@ajma12)


    After a long debug process I determined your plugin was having an error that make my site unbrowsable and often crashes, this is the error I found:

    PHP Notice: Uninitialized string offset: 0 in /home/dh_5x3a8i/thedarkmelody.com/wp-content/plugins/hd-quiz/includes/functions.php on line 700
    [14-Apr-2021 12:04:07 UTC] PHP Notice: WP_Scripts::localize ha sido llamada de forma incorrecta. El parámetro $l10n debe ser un array. Para pasar datos arbitrarios a los scripts, usa en su lugar la función wp_add_inline_script()

    PHP Notice: Trying to get property ‘post_content’ of non-object in /home/dh_5x3a8i/thedarkmelody.com/wp-content/plugins/hd-quiz/index.php on line 112
    PHP Notice: Undefined index: scheme in /home/dh_5x3a8i/thedarkmelody.com/wp-includes/canonical.php on line 854

    After disabling the plugin the site started working again, so I’m turning HD Quiz off for the moment. Are you aware of this error? Is there anything I can do to avoid uninstalling the plugin?

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

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Harmonic Design

    (@harmonic_design)

    Hi ajma,
    first, thank you for submitting this. This is the first I’ve come across this issue.

    The wp_add_inline_script is just a notice from the latest version of WordPress stating that they have a new function that is now prefered for inline data.

    Even the “Trying to get property ‘post_content’ of non-object” is not an actual error. It’s just a notice. And the “Undefined index: scheme in” is from a core WordPress file unrelated to HD Quiz. What’s interesting is that none of what you posted are actually errors or even really anything of concern – certainly nothing that could cause anything to crash or not work.

    My knee jerk reaction is that the actual issue is a corrupted site cache caused by W3 Total Cache. I see that you are using the “enhanced” mode, but this mode suffers from compatibility on certain sites and setups.

    When you say that your site “crashes” what exactly does this mean? Like, what exactly happens? Is it all pages? Just pages with quizzes? Does it also happen in the backend/admin area? What happens if you disable W3TC? Any information would be helpful as I want to make sure this is an isolated case and not happening to anyone else!

    Plugin Author Harmonic Design

    (@harmonic_design)

    Hi ajma12,
    I haven’t heard anything back from you yet so I’m going to close this thread. Please feel free to respond again with any updates or information and we can pick this up again

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Plugin failing: site crashes’ is closed to new replies.