WordPress.org

Ready to get started?Download WordPress

Forums

NextGEN Gallery
Fatal error: Cannot redeclare ngg_getonlyimages (11 posts)

  1. David Radovanovic
    Member
    Posted 3 years ago #

    Using WordPress 3.0, Thesis 1.8 and NGG Version: 1.5.5

    Manage Gallery -> Gallery -> edit Thumbnail produces this error:

    Fatal error: Cannot redeclare ngg_getonlyimages() (previously declared in ../nextgen-gallery/admin/functions.php:1456) in ../nextgen-gallery/admin/functions.php on line 1460

    When I comment one instance of the function out then a similar "..Cannot redeclare..." error returns for another function in the same file.

    Thanks for a great plugin and any support you could offer!

    http://wordpress.org/extend/plugins/nextgen-gallery/

  2. David Radovanovic
    Member
    Posted 3 years ago #

    It was the openhook plugin that exists for the Thesis framework which caused the headache.

    fix is the following:

    changed:

    include_once('functions.php');
             include_once('actions.php');

    to:

    include_once(dirname (__FILE__) . '/functions.php');
        include_once(dirname (__FILE__) . '/actions.php');

    in wp-content/plugins/thesis-openhook/thesis-openhook.php

    thanks to razboinik(AT)gadast.net!

  3. Malopuff
    Member
    Posted 3 years ago #

    Hi dpaule, I tried your fix and now get an error message that top of all my posts. I even tried uninstalling the plugin and reinstalling again, but could still get the error.

    include_once(dirname (__FILE__) . '/functions.php'); include_once(dirname (__FILE__) . '/actions.php');

    Any ideas?

  4. rdesousa
    Member
    Posted 3 years ago #

    I have the same error message too when tried to upload new images. any help on this will be greatly appreciated.

    Havent tried Dpaule's code due to my Malopuff's another problem when implementing it.

    Thanks for any feedback
    Roberto

  5. Malopuff
    Member
    Posted 3 years ago #

    Hey rdesousa, I didn't get any help but discovered that when I used dpaule's method, it also placed the edited code into Thesis Hooks, don't know why. If you edit the code using dpaule's method, make sure the code hasn't some how transferred over to Thesis Hooks (which you can then delete), you should be good to go.

  6. rdesousa
    Member
    Posted 3 years ago #

    Thanks Malopuff for reply... which code that get transferred and which one I should delete in which .php?

    Tx,

    Roberto

  7. rdesousa
    Member
    Posted 3 years ago #

    Hi Malopuff,
    I also cannot locate thesis-openhook folder under wp-content/plugins/

  8. Malopuff
    Member
    Posted 3 years ago #

    Hey rdesousa,

    Maybe you don't have Thesis Hooks? So i'm not sure why your getting the same error message. It was the thesis hooks plugin that was conflicting with the plugin.

  9. rdesousa
    Member
    Posted 3 years ago #

    I in fact, just installed the thesis hook and configure the code provided correctly. I do not have any error message with regard thesis openhook, however, I still can not upload image using nextgen gallery from dashboard... I still get the same error message as above.

    Not sure whats wrong with it... any other ideas?

    tx,

    Roberto

  10. Malopuff
    Member
    Posted 3 years ago #

    Sorry dude, no idea. And it's really hard to get any help. I sent a question ages ago and got no reply.

  11. rdesousa
    Member
    Posted 3 years ago #

    Hi Malopuff,
    Thanks that you still there to help... even the developer(s) who designed this plugin runs from his/her responsibility to provide an explanation/solution.

    Anyway, What I do for now is to upload the image via FTP and from dashboard|gallery|Manage Gallery all I need to do is to click on scan folder for new images and it will display the image(s) that uploaded previously via http://FTP.. it work for now while waiting for a permanent solutions.

    Thanks again,

    Roberto

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.