mysql_escape_string – ?

Posted in: Newspaper
Post count: 22

When switching to php 7, we see the mistake of starting to look for a solution and find that error mysql_escape_string which should be changed in mysqli_escape_string

But even then, you receive another error: mysql_escape_string() expects exactly 2 parameters, 1 given Begin looking for a solution and change in the end: WHERE url = "'.esc_sql($_SERVER['REQUEST_URI'] ).'"') == '1' )

After that, the error disappears. So the question is: do you want to make changes to the file function.php and in the future to avoid such mistakes? Thank you.

I’m talking about the line 60 in function.php

  • This topic was modified 9 years by Acsac.
Post count: 22421

Hello,

Our theme received compatibility to php 7.0 (not 7.1) in the current version of the theme: (7.6)
Please update your theme and the errors will not be present anymore.

Thank you!

Viewing 2 posts - 1 through 2 (of 2 total)
The forum ‘Newspaper’ is closed to new topics and replies.