Support » Plugin: NextGEN Gallery - WordPress Gallery Plugin » Wrong meta data imported and wrong sorting

Viewing 15 replies - 1 through 15 (of 49 total)
  • I also have the same problem since updating to 1.9.12, it appears that older images are having their dates changed and new ones are getting 1 Jan 1970 even though their metadata is correct. Any ideas anyone?



    I also have the same problem since installing 1.9.12. Please fix this issue because I have 2 running sites depending on this plugin!

    I confirm what [andybrownphotography] said: pictures metadata seems to be imported correctly, but all images uploaded after upgrading nextGenGallery to 1.9.12 have the same date (1 Jan 1970), so the sorting by date does not work as expected

    Same here. Seems to a problem since last update (or 1.9.11).
    I need it because images from different camera’s need to be sorted by date.

    I have the same problem. All photos imported with 1.9.10 have the correct date, all imported after the update to 1.9.12 appear as 1 Jan 1970, though the metadata shows the correct date.

    Seems the conversion to Unix Timestamp ( goes wrong and the default value ends up in the database.
    Edit: Indeed, the imagedate field in the ngg_pictures table is ‘1970-01-01 00:33:33’ for all new images..

    Update: I’ve replaced lib\meta.php with the one from 1.9.10 and it works fine again when importing images.

    The function get_date_time() is not working for me anymore in 1.9.12.

    @simon: so we have to re-import all images again (?)
    Hopefully there will be an update real soon.

    I’ve quickly looked through the code, and it may be enough to

    • Revert lib\meta.php to 1.9.10 state*
    • Check/Select the pictures that have invalid imagedate in the gallery
    • Pick ‘Import Metadata’ from the Combobox and execute it

    I’ve not tested this (I manually updated the database..), but it looks like get_date_time() is called when doing this.

    * If you don’t have an old copy of nggallery, the internet’s long time memory has it.

    Plugin Author photocrati


    If you all wouldn’t mind submitting a bug report here, it will go directly to our developers to look into. We’ll hopefully have a fix for this included in our next upgrade.


    Thanks for the link! Bug report is submitted.

    Bug report submitted, thanks

    Plugin Author photocrati


    Thanks @simon & @andybrownphotography 🙂 Bug report received!

    Looking forward to the fix. Hacking the db for every uploaded image is not fun. 🙂

    Plugin Author photocrati


    I am going to mark this thread as resolved, because we will be looking into resolving this in the next upgrade. Please continue to submit your bug reports if you haven’t already if you are experiencing this error.


    I just submitted mine – same problem…

    I’ll note that I just tried a fresh installation of WP 3.5.1 on a localhost setup – then installed NGG 1.9.12 only with NO other plugins installed or running – and the very same thing happened : After creating a Gallery, all photos added to it get the date “January 1, 1970”.

Viewing 15 replies - 1 through 15 (of 49 total)
  • The topic ‘Wrong meta data imported and wrong sorting’ is closed to new replies.