phpwordpress

WordPress corrupt after installing plugin


I installed this plugin https://wordpress.org/plugins/wp-gallery-custom-links/ and got an error during install that I didn't have time to read before the page refreshed.

Now my media picker didn't load at all.

I removed the plugin completely with no luck, and now I can't even reach the wp-admin anymore. 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 have downloaded a fresh copy of wordpress and replaced the wp-admin folder, the wp-includes folder, wp-config.php file, wp-login.php file.

I have tried changing name on the plugins folder, still does not work, I have tried removing my theme to be able to reach the wp-admin, but still doesnt work.

I suspect it might be the database, but i'm out of luck to find the issue.. Can anyone help ?


Solution

  • I've been across this issue several times, as said by Vaviloff, a space is placed in the beginning of the file (before <?php) is the thing your looking for.

    Some possible reasons :

    Possible solutions :

    EDIT : I just saw you can't reach wp-admin. That's tricky, but I've had the same problem some times. And well, it was an intrusion (due to an obsolete plugin).

    What did I do ?