Login

The plugin generated 2 characters of unexpected output during activation.

Author:neo yang Time:2023/12/21 Read: 8872
I developed a plug-in myself, and the following error occurred when activating it: The plug-in generated 2 characters of […]

自己开发的插件,激活时出现以下错误:

The plugin generated 2 characters of unexpected output during activation. If you notice “headers already sent” messages, problems with syndication feeds or other issues, try deactivating or removing this plugin.

后来发现,在两个php文件的开头各有一个空格,删掉之后,就没事了。

参考了这个帖子:php – The plugin generated X characters of unexpected output during activation (WordPress) – Stack Overflow



copyright © www.lyustu.com all rights reserved.
Theme: TheMoon V3.0. Author:neo yang