My wp-admin and not working

I have a problem with my wp-admin as it says that:

ERROR: cookies are blocked due to unexpected output. For help, see this documentation or try the support forums.

I tried all possible ways to fix it, but I can not fix this problem, so I need your help. I have tried:

  • Change the default theme.
  • Deactivation of plugins.
  • Reconfiguring the WP-Config.php file.
  • Wp-debug value, true.
  • In addition, a private tag has been added to the function.php file.

Friends my project works well in the local host and live the project works, but its backend does not work

+5
source share
4 answers

There are several possible situations that can create this error:

  • UTF-8 => Your UTF-8 files? no specification (did you open live files with Notepad ++?), more information about this problem
  • Delete all plugins , try logging in again (to make sure the plugin does not create "headers already sent ...)
  • The same goes for Themes
  • remove closure ?> in functions.php
0
source

In functions.php remove ?> From the end if it exists.

0
source

I found the answer to my question after a long struggle. 1. I placed the function in the wp-config.php file function: ob_start (); just above my WP-DEBUG function. 2. I changed my hosting service, because there was some kind of virus on the server that automatically changed the resolution of index.php and .htaccess files.

Finally, my site is live, and I am very happy for this and thank everyone who helped me in solving my problem.

Best wishes Chetan

0
source

To fix the error:

  • Open the blog / wp-admin / includes / screen.php file in your favorite text editor.
  • On line 706, find the following PHP statement: <?php echo self::$this->_help_sidebar; ?> <?php echo self::$this->_help_sidebar; ?>
  • Replace it with the statement: <?php echo $this->_help_sidebar; ?> <?php echo $this->_help_sidebar; ?>
  • Save the changes.

Hope this helps you.

-3
source

Source: https://habr.com/ru/post/1238085/


All Articles