WordPress.org

Forums

Pronamic Google Maps
[resolved] Error - Headers already sent (3 posts)

  1. red_A
    Member
    Posted 2 years ago #

    Hi I'm getting two notices and one warning when I try to post on my custom post type where I have google pronamic maps set to be used on.

    They are as follows:

    Notice: Undefined property: stdClass::$status in /Applications/MAMP/htdocs/site/wp-content/plugins/pronamic-google-maps/classes/Pronamic_Google_Maps_Admin.php on line 215

    Notice: Undefined property: stdClass::$status in /Applications/MAMP/htdocs/site/wp-content/plugins/pronamic-google-maps/classes/Pronamic_Google_Maps_Admin.php on line 215

    Warning: Cannot modify header information - headers already sent by (output started at /Applications/MAMP/htdocs/site/wp-content/plugins/pronamic-google-maps/classes/Pronamic_Google_Maps_Admin.php:215) in /Applications/MAMP/htdocs/site/wp-includes/pluggable.php on line 881

    It's not letting me post.

    http://wordpress.org/extend/plugins/pronamic-google-maps/

  2. maxj
    Member
    Posted 2 years ago #

    You can try to use <?php ob_start();?> in the firt line of your code, before doctype declaration.

  3. Remco Tolsma
    Member
    Plugin Author

    Posted 2 years ago #

    @maxj That's not how you should fix "Headers already sent" errors. The error is caused by some PHP notices. We should fix those notices...

    http://plugins.trac.wordpress.org/browser/pronamic-google-maps/tags/2.2.3/classes/Pronamic_Google_Maps_Admin.php#L215

    @red_A Thanks for noticing this error, this issue will be fixed in the next release:

    https://github.com/pronamic/wp-pronamic-google-maps/blob/master/classes/Pronamic/Google/Maps/Admin.php#L210

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Pronamic Google Maps
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic