PHP Deprecated: wpdb::escape
-
Hi All
I’m really not sure if this is the correct place to be starting this topic, so if I’m in the wrong place, I apologise beforehand.
I’m coming up with the following errors in my debug file:
[11-Oct-2020 10:36:28 UTC] PHP Deprecated: wpdb::escape is deprecated since version 3.6.0! Use wpdb::prepare() or esc_sql() instead. in /chroot/home/XXXXXXXX/thedriveracademy.co.za/html/wp-includes/functions.php on line 4773
There are tons of the same error in the debug file. My functions.php file only goes up to line 306 as far as I can see and I have no clue why this error is appearing or whether it is related to my theme (Storevilla) or a plugin. I’m also not sure which page in particular it is appearing on.
Can anyone tell me what the problem is or even what it is actually referring to?
How can I get rid of this error? – I’ve read that you can just deactivate the debug file and then you won’t see it and it doesn’t actually cause a problem, but I would prefer to actually try and fix the problem if at all possible.
Also, on a side-note, why is it referring to line 4773 when I can only see 306 lines in my functions.php file?
Any help would be greatly appreciated – Thank you ??
(I would still classify myself as a newbie regarding WordPress although I would like to think that I’m not completely useless, so please bear this in mind when answering this post – thank you ?? )
Thanks again.
Regards.
SaraThe page I need help with: [log in to see the link]
- The topic ‘PHP Deprecated: wpdb::escape’ is closed to new replies.