WordPress – Headers already sent

I just migrated a wordpress site from a local xampp server running on my Windows 8 PC to a cpanel hosting account which I use to host a few other sites.

Post migration the site seemed to be working well, until I tried saving a page in the wordpress admin. Upon saving, I encountered the error message shown further down the page.

Read More

I have attempted to troubleshoot to the best of my ability, including following the steps on the wordpress site for this particular error. So far, to no avail.

If I disable the nextgen gallery plugin, the problem goes away. I require the plugin to display images on the site though, so it’s not a solution.

Interestingly enough, the changes do get saved, despite the error.

If anyone can help me figure out this problem I will be forever grateful!

Many thanks

Warning: preg_match() expects parameter 2 to be string, array given in
/home/ascothou/public_html/wp-content/plugins/nextgen-gallery/non_pope/class.photocrati_resource_manager.php
on line 36

Warning: strpos() expects parameter 1 to be string, array given in
/home/ascothou/public_html/wp-content/plugins/nextgen-gallery/products/photocrati_nextgen/modules/ngglegacy/admin/admin.php on line 63  Warning: Cannot modify header information – headers
already sent by (output started at
/home/ascothou/public_html/wp-content/plugins/nextgen-gallery/non_pope/class.photocrati_resource_manager.php:1)
in
/home/ascothou/public_html/wp-content/plugins/nextgen-gallery/products/photocrati_nextgen/modules/frame_communication/class.frame_event_publisher.php
on line 74

Warning: Cannot modify header information – headers already sent by
(output started at
/home/ascothou/public_html/wp-content/plugins/nextgen-gallery/non_pope/class.photocrati_resource_manager.php:1)
in /home/ascothou/public_html/wp-admin/post.php on line 222

Warning: Cannot modify header information – headers already sent by
(output started at
/home/ascothou/public_html/wp-content/plugins/nextgen-gallery/non_pope/class.photocrati_resource_manager.php:1)
in /home/ascothou/public_html/wp-includes/pluggable.php on line 899

Related posts

Leave a Reply

1 comment

  1. 2 possible reasons.

    1. You screwed that page up, and PHP generates warnings (which you have seen), and then the warnings are printed to the browser, which prevents the headers being modified.
    2. You saved the page with UTF-8 BOM, which is sent to browser before the header modification.

    More like the 1st reason.