How To Fix Pluggable.php File Errors in WordPress

Fixing pluggable.php file error

Fix Pluggable.php: If  you are seeing an error that shows pluggable.php file error on your WordPress site. Sometimes, when we add a code snippet onour site or activate a new plugin, it may shows the pluggable.php file error. In this article, we will show how to fix pluggable.php file errors in WordPress.

Why WordPress Shows Pluggable.php Errors message?

WordPress allows their user to override certain core functions. Even they allow plugins to override same. These functions location are in the pluggable.php file.

If a WordPress a code or a plugin fails to correctly handle one of these functions, then these error is shown:

Warning: Cannot modify header information – headers already sent by (output started at G:\my server\xampp\htdocs\wordpress\wp-content\themes\mytutorialtheme\functions.php:3) in G:\my server\xampp\htdocs\wordpress\wp-includes\pluggable.php on line 1210

Now Fix Pluggable.php File Errors in WordPress

The pluggable.php file is a core WordPress file. It cannot be a good idea to edit this file as your first option of WordPress.

In order to fix any error mentioning pluggable.php file,  read carefully the error message where the error location.

Warning: Cannot modify header information – headers already sent by (output started at G:\my server\xampp\htdocs\wordpress\wp-content\themes\mytutorialtheme\functions.php:3) in G:\my server\xampp\htdocs\wordpress\wp-includes\pluggable.php on line 1210

In the above message, the error is located in the theme’s functions.php file at line 1210.

The meaning of this message, we need to edit our theme’s functions.php file and change/remove the code happening this error. Now see this picture-

Look at the top of your funtions.php file. In the picture no-1 <?php start from 1st line but in the picture no-2 the <?php start from the 3rd line. So, picture no-1 is correct. Solving, delete the top space of the function.php file. Then see, all are OK.

If the error comes from a plugin, deactivate the plugin. That’s OK.

If you have any questions please put a comment in the comments box. Please don’t hesitate to ask me by comments.  Free WordPress Theme.

ABOUT MY TUTORIAL

This is a step by step tutorial. To learn wordpress theme development tutorial series one after another. You can follow my YouTube  Channel.



Leave a Reply

Your email address will not be published. Required fields are marked *