Today I tried to make a WP plug-in. This plug-in produced an exception output of 594 characters in the process of being enabled.If you have problems with "headers already sent" errors, syndication feeds (such as RSS) errors, try disabling or removing this plug-in. Baidu checked the investigation, saying that it was a conflict, the amount of ... ... I really did not find and which conflict, had to unload the heavy equipment, but the result is still the same, I think that is definitely where the block is wrong, right?I deleted the code line by line, leaving the plug-in header information, or the same error, looks like the relationship between the code, as a programmer, I want to code is not a problem, is the coding problem, oh, a try, sure enough , Let's share it for everyone:
To use UTF-8 with BOM when saving files, it looks like you just have to press the BOM to save it. What to save depends on what code content your plug-in uses.
This article has been printed on copyright and is protected by copyright laws. It must not be reproduced without permission.If you need to reprint, please contact the author or visit the copyright to obtain the authorization. If you feel that this article is useful to you, you can click the "Sponsoring Author" below to call the author!
Reprinted Note Source: Baiyuan's Blog>>https://wangbaiyuan.cn/en/new-to-wp-plugins-encountered-exception-that-is-n-characters-output-2.html