Code at the bottom of every pages of my website

Hello,

I have this code at the bottom of every pages of my website:

Array
(
[type] => 8192
[message] => mysql_escape_string(): This function is deprecated; use mysql_real_escape_string() instead.
[file] => /home/mandtis/public_html/wp-content/themes/pro/functions.php
[line] => 60
)

Could you please tell me how to fix the issue?

URL: https://mandtis.fr/

Thanks for your help,
Antoine

Hi There,

Please try testing a plugin conflict. You can do this by deactivating all third-party plugins, and see if the problem remains. If it’s fixed, you’ll know a plugin caused the problem, and you can narrow down which one by reactivating them one at a time.

If it doesn’t help, would you mind providing us with login credentials(by clicking on the Secure Note button at the bottom) so we can take a closer look? To do this, you can make a post with the following info:

  • Link to your site
  • WordPress Admin username / password
  • FTP credentials

Thanks.

Thanks for your response. The plugin woocommerce-multilingual is already deactivated. I don’t know what is causing the problem.

Please find the login credentials.

Thanks for your help,
Antoine

Hi Antoine,

Would you mind double checking the SFTP details? I have tried it and it doesn’t seem to work.

For the meantime, please login through FTP and open the wp-config.php file and set WP_DEBUG to false.

Hope this helps.

Hi,

I checked the FTP details and they are correct. Please try in FTP and not SFTP.
Directory is: /home/mandtis/public_html

I changed the wp-config according to your instruction.

Thanks,

Hi there,

Our theme is not using any mysql_escape_string(). The problem is you added a custom code to Pro’s functions.php, you must contact the developer that coded it to fix it.

Thanks!

Thank you for finding the problem, Is the code you sent me causing the problem? I could not see it in the functions.php (there is only one file, right?).

Please tell me where to find the code that need to be deleted and I will simply so it.

Thanks.

Hi there,

The code is in the functions.php file in /public_html/wp-content/themes/x-child.

Hope this helps.

Thanks. I removed the line of codes you mentioned. The lines of code remain though on every single page.
Any idea what might be causing it?

Thanks.

Hi There,

Did you try clearing your cache as I cannot see your error now.

Let us know.
Thanks!

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.