admin管理员组

文章数量:1122826

I have had this weird whitespace appear multiple times on multiple sites. By "appear" I mean, it wasn't there one day, then it was. I am the only admin on these sites, which are in the cloud. I suspect some kind of infection, but I can't figure it out. This image is from a blank site, Google cloud [happening on AWS also], fresh database, no plugins: My previous solution was to reload these sites from Duplicator backups. That seams to have worked. This image is from a new DB and no plugins, so it must be in the core code on these sites. Since it's happening repeatedly to me, I'd like to track it down.

Does anyone know what could cause this whitespace?

I have had this weird whitespace appear multiple times on multiple sites. By "appear" I mean, it wasn't there one day, then it was. I am the only admin on these sites, which are in the cloud. I suspect some kind of infection, but I can't figure it out. This image is from a blank site, Google cloud [happening on AWS also], fresh database, no plugins: My previous solution was to reload these sites from Duplicator backups. That seams to have worked. This image is from a new DB and no plugins, so it must be in the core code on these sites. Since it's happening repeatedly to me, I'd like to track it down.

Does anyone know what could cause this whitespace?

Share Improve this question edited Nov 11, 2020 at 23:06 John Dee asked Nov 11, 2020 at 23:04 John DeeJohn Dee 5135 silver badges14 bronze badges 1
  • Check your theme and plugin files -- something's sending output where it shouldn't. It could be as simple as a file having whitespace (space, tab, carriage return) after a closing ?> tag. – Pat J Commented Nov 11, 2020 at 23:06
Add a comment  | 

2 Answers 2

Reset to default 0

Well that didn't take long to figure out..

I've dealt with this before, but could never figure it out. Obfuscated code. Impulsively I deleted the directory, but they'll be back. If you see these weird random PHP files, your site needs to be scrubbed and relaunched from backups. Preferably XML data files with no code. Reload the entire site from sources.

Enabling Debug logging caused this issue for me. Disable and try. You can disable in wp-config.php.

define('WP_DEBUG', false);

本文标签: Weird white space in admin area