• Resolved Hillary

    (@hillaryaa)


    When I attempt to pull up my website or my admin panel, I get the critical error message. I checked my debug log and this was the error it reported:

    [26-May-2023 19:37:44 UTC] PHP Fatal error: Uncaught Error: Class “WP_Widget_Media_Audio” not found in /home/ii52nq66ke5s/public_html/wp-includes/class-wp-widget-factory.php:62

    What do I need to you to fix this? Thanks.

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

Viewing 4 replies - 16 through 19 (of 19 total)
  • Thread Starter Hillary

    (@hillaryaa)

    So I reached out to my hosting provider yesterday. After troubleshooting with them, they told me that for this problem I would have to go through all of my core files one by one to find the problem. They pointed out one error for me which I believe is the fatal error causing the problem. This morning I was able to get into the admin panel. I lost it shortly after I began reactivating my plugins one by one. I lost it after I reactivated W3 Total Cache. Disabling or removing the plug in was not the answer. I got an error message to reinstall it. After a couple times of reinstalling it, I got the error about the same error my hosting provider told me about yesterday. I looked into further and found that the wp-kses function was undefined in the db.php folder. I am working to define it. I copied and pasted this code from WordPress’s support page on wp-kses functions into the file where the error was:

    else {
    wp_kses(string $content, array[]|string $allowed_html,
    string[] $allowed_protocols = array(); ): string
    }

    Now the encoder is telling that there is an unexpected T_Varialble. I’m having trouble figuring out what the unexpected T_variable is. Can you provide some insight?

    • This reply was modified 3 years ago by Hillary.
    Moderator James Huff

    (@macmanx)

    Never edit core files.

    It sounds like you’ve isolated the problem to W3TC, so I recommend following up with them at https://ww.wp.xz.cn/support/plugin/w3-total-cache/

    Thread Starter Hillary

    (@hillaryaa)

    My bad! Ok. Will do! Thank you!

    Moderator James Huff

    (@macmanx)

Viewing 4 replies - 16 through 19 (of 19 total)

The topic ‘Critical Error message’ is closed to new replies.