WordPress.org

Support

Support » Plugins and Hacks » NextGEN Gallery - WordPress Gallery Plugin » [Plugin: NextGEN Gallery] Fatal error: Cannot redeclare ngg_getonlyimages

[Plugin: NextGEN Gallery] Fatal error: Cannot redeclare ngg_getonlyimages

  • 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/

Viewing 10 replies - 1 through 10 (of 10 total)
  • 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!

    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?

    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

    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.

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

    Tx,

    Roberto

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

    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.

    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

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

    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

Viewing 10 replies - 1 through 10 (of 10 total)
  • The topic ‘[Plugin: NextGEN Gallery] Fatal error: Cannot redeclare ngg_getonlyimages’ is closed to new replies.
Skip to toolbar