Import Problem – Solved
-
Could not get import to work. PHP throwing errors: Call to undefined function mysql_real_escape_string(). Turns out that stafflist.php is using mysql_real_escape_string() which was deprecated starting in PHP 5.5.0 and was completely removed from PHP 7 in favor of mysqli_real_escape_string().
The solution is to use neither function. Rather, use the WordPress core function $wpdb->_real_escape() and let WordPress sort out what level of mysql functions are available for use.
https://developer.www.ads-software.com/reference/classes/wpdb/_real_escape/
I made this change in my copy of stafflist.php and it solved the import problems for me.
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘Import Problem – Solved’ is closed to new replies.