WordPress corrupted after installing plugin

I installed this plugin https://wordpress.org/plugins/wp-gallery-custom-links/ and received an error during installation that I did not have time to read until the page was refreshed.

Now my media collector didn't load at all.

I removed the plugin completely without luck, and now I can no longer get to wp-admin. Getting errors like:

Warning: Cannot modify header information - headers already sent by (output started at /var/www/vhosts/xxxx.com/httpdocs/wp-content/themes/caroli/functions.php:1) in /var/www/vhosts/xxxx.com/httpdocs/wp-includes/pluggable.php on line 1196

Warning: Cannot modify header information - headers already sent by (output started at /var/www/vhosts/xxxxx.com/httpdocs/wp-content/themes/caroli/functions.php:1) in /var/www/vhosts/xxxx.com/httpdocs/wp-login.php on line 425

Warning: Cannot modify header information - headers already sent by (output started at /var/www/vhosts/xxxxxx.com/httpdocs/wp-content/themes/caroli/functions.php:1) in /var/www/vhosts/xxxxx.com/httpdocs/wp-login.php on line 438

Warning: Cannot modify header information - headers already sent by (output started at /var/www/vhosts/xxxxxx.com/httpdocs/wp-content/themes/caroli/functions.php:1) in /var/www/vhosts/xxxxxx.com/httpdocs/wp-login.php on line 425

Warning: Cannot modify header information - headers already sent by (output started at /var/www/vhosts/xxxx.com/httpdocs/wp-content/themes/caroli/functions.php:1) in /var/www/vhosts/xxxxxx.com/httpdocs/wp-login.php on line 438

Warning: Cannot modify header information - headers already sent by (output started at /var/www/vhosts/caroli.hosterspace.com/httpdocs/wp-content/themes/caroli/functions.php:1) in /var/www/vhosts/xxxxxxx.com/httpdocs/wp-includes/pluggable.php on line 925

Warning: Cannot modify header information - headers already sent by (output started at /var/www/vhosts/xxxxxxxxx.com/httpdocs/wp-content/themes/caroli/functions.php:1) in /var/www/vhosts/xxxxx.com/httpdocs/wp-includes/pluggable.php on line 926

Warning: Cannot modify header information - headers already sent by (output started at /var/www/vhosts/xxxxxx.com/httpdocs/wp-content/themes/caroli/functions.php:1) in /var/www/vhosts/xxxxxx.com/httpdocs/wp-includes/pluggable.php on line 927

Warning: Cannot modify header information - headers already sent by (output started at /var/www/vhosts/xxxxxxxx.com/httpdocs/wp-content/themes/caroli/functions.php:1) in /var/www/vhosts/xxxxxx.com/httpdocs/wp-includes/pluggable.php on line 1196

I downloaded a new copy of wordpress and replaced the wp-admin folder, the wp-includes folder, the wp-config.php file, the wp-login.php file.

I tried to change the name in the plugins folder, it still does not work, I tried to delete my theme in order to be able to access wp-admin, but still does not work.

, , .. - ?

+4
2

, , , , ( <?php), - , .

:

  • Wordpress ( eval() )

:

  • :/var/www/vhosts/xxxx.com/httpdocs/wp-content/themes/caroli/functions.php:1 <?php
  • , , , -
  • , Wordfence ( ), , , WP ( )

: , wp-admin. , . , (- ).

?

  • ( BACKUPS)
  • WP
  • /DB/uploads/plugins ( )
  • Wordfence,
+3

Cannot modify header information - headers already sent by

, - , , script.

output started at /var/www/vhosts/xxxx.com/httpdocs/wp-content/themes/caroli/functions.php:1

, , <?php.

, , UTF BOM, , Notepad ++ (Encoding → Convert to UTF-8).

+2

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


All Articles