Cannot modify header information – headers already sent by
-
Hi Dean,
Hope you well.
First of all thanks a lot for the amazing plugin, I love it.
I’d like to share a bug I noticed and fixed myself if it helps.
I ran your plugin on a website I was developing a theme for.
Once I enabled WP-DEBUG I noticed the following error:
WARNING: wp-admin/admin-header.php:9 – Cannot modify header information – headers already sent by (output started at /Users/Eugene/Documents/MAMP PRO/hlcchlsass/wp-content/plugins/photoswipe-masonry/photoswipe-masonry.php:178)
require_once(‘wp-admin/admin-header.php’), headerI could not find anything wrong with your code but then I realised I purposely omitted the value for “Thumbnail Height” on the plugin admin page and that’s what caused the error.
Once I added a value to the field everything went back to normal.
Hopefully no one will experience this bug but I thought I’d share my experience just in case.
Thanks again.
Best,
Eugene
- The topic ‘Cannot modify header information – headers already sent by’ is closed to new replies.