WordPress.org

Ready to get started?Download WordPress

Forums

[Plugin: NextGEN Gallery] Fatal Error: Call to a member function get_var() on a non-object in shortc (11 posts)

  1. Pepe Huerta
    Member
    Posted 4 years ago #

    Hi, Im getting the following error after the 1.5 update:

    Fatal error: Call to a member function get_var() on a non-object in /home/xxxx/public_html/wp-content/plugins/nextgen-gallery/lib/shortcodes.php on line 216

    The error is only displayed in posts with the old shortcode wich uses the gallery name:

    [gallery=test]

    It works with the gallery ID: [gallery=123] and, of course, with the new shortcode [nggallery=XX]

    I cant manage to solve this, specialy because we have thousands of posts with galleries using the old shortcode (2008).

    http://www.lagzero.net/2008/10/reviviendo-clasicos-diablo/

    Any help will be apreciated.

  2. Alex Rabe
    Member
    Posted 4 years ago #

    Thanks for the detailed description, I'm able to reproduce the problem and will work on this

  3. Pepe Huerta
    Member
    Posted 4 years ago #

    Thank you for your time Alex.

  4. Alex Rabe
    Member
    Posted 4 years ago #

    Here is the fix, will be release a new version in the next days :

    http://code.google.com/p/nextgen-gallery/source/detail?r=717

  5. Pepe Huerta
    Member
    Posted 4 years ago #

    Thank you alex.

    That solves the php error but now the gallery isnt displayed with the old gallery=name shortcode, instead you get this error:

    [Gallery not found]

    http://grab.by/3jLu

    An example post: http://www.lagzero.net/2008/10/reviviendo-clasicos-diablo/

    The gallery is called with the following shortcode:

    [gallery=diablo]

    Thanks

  6. Alex Rabe
    Member
    Posted 4 years ago #

    Ok, need to dig deeper.. come back to you

  7. mikum
    Member
    Posted 4 years ago #

    I have exactly the same problem. After getting rid of the error,

    Fatal error: Call to a member function get_var() on a non-object in /home/xxxx/public_html/wp-content/plugins/nextgen-gallery/lib/shortcodes.php on line 216

    by updating to version 1.5.2 I have now:

    [Galerie nicht gefunden]

  8. mikum
    Member
    Posted 4 years ago #

    Fixed it by using: [nggallery id=x]

    :)

    Everything's fine now!

  9. Alex Rabe
    Member
    Posted 4 years ago #

  10. Pepe Huerta
    Member
    Posted 4 years ago #

    @alexrabe

    That solves the complete issue!! excelent job m8! thank you very much.

  11. digitalxxl
    Member
    Posted 4 years ago #

    Hi, got the following error message trying to activate the reinstalled plugin:

    Fatal error: Allowed memory size of 33554432 bytes exhausted (tried to allocate 23040 bytes) in /home/www/wp-content/plugins/nextgen-gallery/lib/ngg-db.php on line 182

    I reinstalled the plugin because a client of mine had uploaded a picture far than 2 MB to her blog. After that the blog was not accessible, no login possible, blank page.

    So I deactivated every plugin and reactivated them in order to find the cause of this error. Finally it was NGG.

    So I reinstalled NGG, Version 1.43
    Trying to update NGG to 1.53 causes the error explained above.

    I think there are some code fragments in the database, how can I check this?

    Any idea what to do now?

    Thanks

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.