• Just downloaded ver0.60 and tried to apply it but can’t see map and get this error:
    Warning: Cannot modify header information – headers already sent by (output started at /home/*****/public_html/***/wp-content/plugins/nextgen-gallery-geo/example.php:145) in /home/*****/public_html/***/wp-includes/pluggable.php on line 866
    Any ideas?

Viewing 15 replies - 1 through 15 (of 15 total)
  • You have to add the plugin tag, otherwise your post is not related to the plugin.

    Does it work if you deactive the worldmap-mode? Please try the newest trunk-version also.

    I am getting the same error as aviceda.
    It happens when I add the [nggg worldmap]tag to the page and try to save the page.
    If I disable worldmap and try to add maps automatically the same error occurs.

    Additionally, when I activated the plugin a message came up on the plugin page saying
    “The plugin generated 3 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.”
    I love the concept of this plugin and would really like to get it working.

    Hi,

    I have the same kind of errors.

    So I tried with starting a blank new project using WordPress (english) 3.3.2
    Only plugins installed :
    NextGen Gallery, version: 1.9.3
    NextGen Gallery geo, version : 0.60
    All running locally with MAMP (on Mac, OS X Lion)

    Only one post ! With [nggallery id=1] [nggg]

    Before I tagged the post, I had the same error as Aviceda.
    Once the post tagged, I have the same error as alternateroute.

    I am not sure what we should understand by “You have to add the plugin tag, otherwise your post is not related to the plugin.” ?
    Do you mean to add a tag for the post like “nextgen-gallery-geo”.
    Whatever, it’s what I did.

    When trying to update the options of the plugin, I get again the error message :

    Cannot modify header information – headers already sent by (output started at /…/wp-content/plugins/nextgen-gallery-geo/example.php:145) in /…/wp-includes/pluggable.php on line 866

    and I get a full list of errors for the preview map.

    I get the same message if I do an update for the post.
    If I display the post, I get a list of error :

    Notice: Undefined variable: map_output in /…/wp-content/plugins/nextgen-gallery-geo/plugin.php on line 25

    Warning: exif_read_data() [function.exif-read-data]: Unable to open file in /…/wp-content/plugins/nextgen-gallery-geo/functions.php on line 24

    Notice: Use of undefined constant latitude – assumed ‘latitude’ in /…/plugins/nextgen-gallery-geo/functions.php on line 144

    Notice: Use of undefined constant longitude – assumed ‘longitude’ in /…/wp-content/plugins/nextgen-gallery-geo/functions.php on line 145

    Notice: Use of undefined constant latitude – assumed ‘latitude’ in /…/wp-content/plugins/nextgen-gallery-geo/functions.php on line 67

    etc… for several lines…

    I like very much the concept of this plugin and sure be very useful.

    Let us know, if our problems come from some setup mistakes we do or misunderstanding from our part, or if these errors that come out need code corrections.

    Thanks for your answers.

    Hi there,

    I think the problem is in the example page (example.php). There are blank lines at the bottom. I tried with successful activation by removing those blank lines. You can also give it a try.

    Good Luck!

    JX

    Please try the trunk version, I have allready deleted the blank lines.

    Well spotted jinxiaojun, deleting those lines worked.
    Although I am a bit confused. I would have thought that once the ?> tag was reached the computer would stop trying to read the file. How does reading empty lines break the plugin?

    Thread Starter aviceda

    (@aviceda)

    Frederic, what do you mean by “the trunk version”….can I download it?
    Apologies for my poor knowledge of coding.
    I’m really looking forward to seeing the maps working on my site, so thank you for all your effort!
    Tom

    Hi,

    @aviceda,
    I found the trunk version here and installed.

    I got there following this

    BUT !
    @frest.de,

    I still get errors, when going in the settings of the plugin (preview map) :
    Trying to get property of non-object in /…/wp-includes/post-template.php on line 30
    This addresses to a file which is the wordpress core !
    And then a full list or errors…regarding the plugin files.
    And after the error list, then the example map shows !!!

    In a post including [nggg], I get a full pages of errors
    Notice: Undefined variable: map_output in /../wp-content/plugins/nextgen-gallery-geo/plugin.php on line 25
    Notice: Undefined property: nggImage::$worldmap in /…/wp-content/plugins/nextgen-gallery-geo/functions.php on line 65
    Notice: Use of undefined constant latitude – assumed ‘latitude’ in /…/wp-content/plugins/nextgen-gallery-geo/functions.php on line 67
    Notice: Use of undefined constant longitude – assumed ‘longitude’ in /…/wp-content/plugins/nextgen-gallery-geo/functions.php on line 67
    Notice: Undefined variable: pin_desc in /…/wp-content/plugins/nextgen-gallery-geo/functions.php on line 80
    Notice: Use of undefined constant longitude_format – assumed ‘longitude_format’ in /…/wp-content/plugins/nextgen-gallery-geo/functions.php on line 88
    Notice: Use of undefined constant longitude_format – assumed ‘longitude_format’ in /…/wp-content/plugins/nextgen-gallery-geo/functions.php on line 88

    …etc…

    I am not a PHP code specialist, but maybe there is certainly a simple syntax mistake in a file which generates theses problems.

    I have detected something : at the end of the file functions.php, there is no end: ” ?> “. I tried to add one, but that does not solve the problem…

    Any ideas ?

    Thanks for your patience and the detailed informations, I will try to fix it later this day. V. 0.52 should work.

    @Frest.de

    Thanks for you efforts and coming updates.

    Just start a new project with V.0.52.
    Sorry to tell I have the same issues within a post.
    I don’t get any error messages at the settings page, I expect its because there is no preview map in this version.

    Here is what I get with the post :

    Notice: Undefined variable: map_output in /…/wp-content/plugins/nextgen-gallery-geo/plugin.php on line 25

    Then for each image included in the gallery it repeats :

    Notice: Use of undefined constant latitude – assumed ‘latitude’ in /…/wp-content/plugins/nextgen-gallery-geo/functions.php on line 65

    Notice: Use of undefined constant longitude – assumed ‘longitude’ in /…/wp-content/plugins/nextgen-gallery-geo/functions.php on line 65

    Notice: Undefined variable: pin_desc in /…/wp-content/plugins/nextgen-gallery-geo/functions.php on line 78

    Notice: Use of undefined constant longitude_format – assumed ‘longitude_format’ in /…/wp-content/plugins/nextgen-gallery-geo/functions.php on line 86

    Notice: Use of undefined constant longitude_format – assumed ‘longitude_format’ in /…/wp-content/plugins/nextgen-gallery-geo/functions.php on line 86

    Notice: Use of undefined constant latitude_format – assumed ‘latitude_format’ in /…/wp-content/plugins/nextgen-gallery-geo/functions.php on line 86

    I hope this will help you to track…

    It’s not an error, just a notice. The most configurations does not display these notices. But I will try to fix that, too. 😉

    @capecross: added the “?>”, stupid bug.

    Thread Starter aviceda

    (@aviceda)

    Hi Frederic, tried the new version and now only get this message:

    Warning: exif_read_data() [function.exif-read-data]: Unable to open file in /home/******/public_html/***/wp-content/plugins/nextgen-gallery-geo/functions.php on line 24 39 times!

    Hi Frederic,

    Until now I had no better results.
    Either V.0.52 or V0.61.
    I think I have an explanation, see below…

    As in the settings, I could see the example map, but no result in post, and as I am sure all this is working for you, I thought it could be a configuration problem.

    Then I had the idea to make a try with your example images, even if I was sure that my images had GPS datas.
    So I imported your example images in a Gallery, and post, and then the map and the vignettes showed nicely.
    So this surely meaned that there were differences in the exif datas.
    Using Phil Harvey’s exiftools I compare :

    Here is one of your image exifs datas as it is shown by exiftools :

    Resolution Unit : None
    Y Cb Cr Positioning : Centered
    GPS Version ID : 2.2.0.0
    GPS Time Stamp : 20:36:14
    GPS Satellites : 0
    GPS Map Datum : WGS-84
    GPS Date Stamp : 2012:05:11
    XMP Toolkit : Image::ExifTool 8.26
    ……some more datas…..
    Color Components : 3
    Y Cb Cr Sub Sampling : YCbCr4:2:0 (2 2)
    GPS Date/Time : 2012:05:11 20:36:14Z
    GPS Latitude : 44 deg 29′ 34.40″ N
    GPS Latitude Ref : North
    GPS Longitude : 63 deg 54′ 59.40″ W
    GPS Longitude Ref : West
    GPS Position : 44 deg 29′ 34.40″ N, 63 deg 54′ 59.40″ W

    Here is one my images (made with a Canon camera) exits datas as it is shown by exiftools :

    Exposure Mode : Manual
    White Balance : Manual
    Scene Capture Type : Standard
    Lens Model : EF24-105mm f/4L IS USM
    GPS Version ID : 2.2.0.0
    GPS Latitude Ref : North
    GPS Longitude Ref : West
    GPS Map Datum : WGS-84
    Compression : JPEG (old-style)
    ……some more datas…..
    Aperture : 8.0
    Date/Time Created : 2011:06:17 19:59:35+02:00
    Digital Creation Date/Time : 2011:06:17 19:59:35+02:00
    GPS Latitude : 65 deg 48′ 28.87″ N
    GPS Longitude : 16 deg 23′ 13.78″ W
    GPS Position : 65 deg 48′ 28.87″ N, 16 deg 23′ 13.78″ W
    Image Size : 940×627
    Scale Factor To 35 mm Equivalent: 5.8
    Shutter Speed : 0.4

    I usually use PhotoLinker to reverse geotag my images, before importing them to Lightroom, then exporting them for the web with all the metadatas.
    Now that Lightroom 4 handles GPS datas, I might skip PhotoLinker.
    But anyway there is a difference between the way GPS exifs are coded within your images and mines.
    Especially the lack of GPS Date Stamp and GPS Date/Time in my image and the order.

    I made a try with an image made with another camera (Panasonic), and your map shows OK. The GPS datas came from a gpx file used with PhotoLinker to tag the images.
    The exif tools shows :

    Lens Model : LUMIX G VARIO 14-140/F4.0-5.8
    GPS Version ID : 2.2.0.0
    GPS Latitude Ref : North
    GPS Longitude Ref : West
    GPS Altitude Ref : Above Sea Level
    GPS Time Stamp : 16:42:01
    GPS Map Datum : WGS-84
    GPS Date Stamp : 2011:06:16
    Compression : JPEG (old-style)
    ……some more datas…..
    Aperture : 5.0
    Date/Time Created : 2011:06:16 16:42:28+02:00
    Digital Creation Date/Time : 2011:06:16 16:42:28+02:00
    GPS Altitude : 17.9 m Above Sea Level
    GPS Date/Time : 2011:06:16 16:42:01Z
    GPS Latitude : 65 deg 31′ 32.22″ N
    GPS Longitude : 13 deg 48′ 20.04″ W
    GPS Position : 65 deg 31′ 32.22″ N, 13 deg 48′ 20.04″ W
    Image Size : 940×587

    So I do think my problem was coming from this.
    Datas are not arranged in the same way or order.
    I should have a look in the data base to try to understand, or modify your test :
    line 28 in functions.php :
    if (!isset ($exif[‘GPSLongitude’][0])) {return false;}
    which maybe is toot strict.

    If you have ideas from your side…they will be welcome.

    Sorry to have been so long, but I am almost sure, I won’t be the only one to face this.
    Hard time with these exifs which are not completely normalized…

    Can you please mail me a photo? (ngg-geo@frest.de)

    “Can you please mail me a photo?”

    Email sent !

    Several tries later, I am not quite sure that’s my problem come from the way GPS datas are arranged, or has something to do with the lack of GPS Date Stamp and GPS Date/Time…

Viewing 15 replies - 1 through 15 (of 15 total)
  • The topic ‘nextgen geo – map not displaying’ is closed to new replies.