• Resolved tomchubb

    (@tomchubb)


    In PHP7+ mysql_real_escape_string() no longer exists and is throwing a fatal error with this plugin.
    Please can you update to use mysqli_real_escape_string instead?
    Thanks

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Support Nick C

    (@modernnerd)

    Hi, @tomchubb.

    Genesis Simple Hooks doesn’t appear to use mysql_real_escape_string: https://github.com/studiopress/genesis-simple-hooks/search?q=mysql_real_escape_string&unscoped_q=mysql_real_escape_string

    You could check the plugin page at Genesis -> Simple Hooks in case someone has added that function in the code snippets there? You could then update the code to use the new function you mentioned.

    Thread Starter tomchubb

    (@tomchubb)

    Hi Nick – I actually realised this just after I posted but don’t know how to delete.
    I created the post after seeing the fatal error in my error log. Can I delete this somehow?

    Plugin Support Nick C

    (@modernnerd)

    Thanks for confirming, Tom. I’ll mark it as resolved. (I don’t have a way to delete the topic, but it could be useful for others to know that errors coming from the plugin can come from code added in the admin area rather than plugin code.)

    Thread Starter tomchubb

    (@tomchubb)

    Sorry for the inconvenience. I can now confirm it was my own code that I’d added to one of the hooks in there.

    Plugin Support Nick C

    (@modernnerd)

    No problem at all! Thanks for letting us know.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Call to undefined function mysql_real_escape_string()’ is closed to new replies.