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.
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!