How to fixing bug on wp-includes/wp-db.php

Actually, even this is not too bad bugs like the weakness of WordPressearlier that can be used to get an account administrator. However, if this bug was found by someone who is experienced with the world wide web and security, he'll be able to read the directory structure of our admin.

The bugs are in www.situswordpress.xxx / wp-includes / wp-db.php, you will see errors like this:
Fatal error: Call to undefined function is_multisite () in / home / direktory_penyimpanan / situswordpress.xxx / wp-includes / wp-db.php on line 505
can at line505 (occurring in WordPress 3.0) or line1039 on the version of WordPress that underneath.
Solution:


The first way:
Use the FTP root directory and open the WordPress, and edit the wp-db.php on the first line after add the following string:
error_reporting (0);

The second way:
Almost the same as the first way, only different in its code:
if (strstr ($ _SERVER ['PHP_SELF'], 'wp-db.php ")) die (" Your text here ... ");

The third way:
Is to redirect error pages to our main page .. Laying of the same code, on the first line after add the following string:
if (strstr ($ _SERVER ['PHP_SELF'], 'wp-db.php ")) header (" Location: ../", TRUE);

Can also use the make files . htaccess just that sometimes even an error .

Posted in , , , . Bookmark the permalink. RSS feed for this post.