The plugin generated 2 characters of unexpected output during activation
-
After activating this plugin we get a warning:
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.
If we log out of the WordPress admin, we then get a white screen and can’t get back in. If we enable WP_DEBUG it indicates that the error is caused by this plugin.
Deleting the plugin allows us to access the admin again.
Errors are along the lines of:
Warning: session_start(): Cannot send session cookie – headers already sent by (output started at /wp-content/plugins/hide-admin-menu/menu-list.php:2) in /wp-content/plugins/hide-admin-menu/menu-list.php on line 12
Warning: session_start(): Cannot send session cache limiter – headers already sent (output started at /wp-content/plugins/hide-admin-menu/menu-list.php:2) in /wp-content/plugins/hide-admin-menu/menu-list.php on line 12
Warning: Cannot modify header information – headers already sent by (output started at /wp-content/plugins/hide-admin-menu/menu-list.php:2) in /wp-includes/pluggable.php on line 1251
Warning: Cannot modify header information – headers already sent by (output started at /wp-content/plugins/hide-admin-menu/menu-list.php:2) in /wp-includes/pluggable.php on line 1254
- The topic ‘The plugin generated 2 characters of unexpected output during activation’ is closed to new replies.