Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

mysql_escape_string() #118

Open
austinvernsonger opened this issue Feb 10, 2017 · 2 comments
Open

mysql_escape_string() #118

austinvernsonger opened this issue Feb 10, 2017 · 2 comments

Comments

@austinvernsonger
Copy link

Getting the following error when debugging.

Fatal error: Uncaught Error: Call to undefined function mysql_escape_string() in /var/www/html/wp-content/themes/casper/functions.php

@lacymorrow
Copy link
Owner

Thanks for the feedback! Will try to debug.

@JamesTheHacker
Copy link

@austinvernsonger I assume you're using PHP7, mysql_escape_string was removed in version 7.

Warning
This function was deprecated in PHP 4.3.0, and it and the entire original MySQL extension was removed in PHP 7.0.0. Instead, use either the actively developed MySQLi or PDO_MySQL extensions. See also the MySQL: choosing an API guide and its related FAQ entry for additional information.

This should be removed from the theme.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants