• Resolved rdesousa

    (@rdesousa)


    Hi all,
    I have created a new gallery. However, when I upload new images to the created folder, I got the following error message. I cannot figured out what seems to be the issue here.

    here is the error message I got :
    ERROR: Pic1.jpg :
    Fatal error: Cannot redeclare ngg_getonlyimages() (previously declared in /home3/thediliw/public_html/wp-content/plugins/nextgen-gallery/admin/functions.php:1462) in /home3/thediliw/public_html/wp-content/plugins/nextgen-gallery/admin/functions.php on line 1464

    Can anyone seed a light for a solution?

    Thanks in advance,

    Roberto

Viewing 12 replies - 1 through 12 (of 12 total)
  • Thread Starter rdesousa

    (@rdesousa)

    Seriously, I need help here… can Someone please explain or if you come across this error message, what did u do to fix it? I urgently need help…

    Thanks,

    Roberto

    I was having this issue as well and found the problem.

    It’s not really a NextGen problem, as I think NextGen has coded their files properly. What you more than likely have is another plugin that’s conflicting with NextGen.

    Mine was WP Buttons. In the wp-buttons.php file they had a call to functions.php as:
    require('functions.php');

    I changed this to:
    require_once (dirname (__FILE__) . '/functions.php');

    Everything works great now!

    So, if you aren’t running WP Buttons, I would search through your plugins, or turn them off and turn back on one by one, until you find the culprit. Look for calls to functions.php and try changing to what I did above and see if that solves it for you.

    Good luck!

    I have the same error, have deactivated all other plugs, ngg is the only one running. when uploading pictures I get:
    ERROR: P1050447.JPG :
    Fatal error: Cannot redeclare ngg_get_ttffont() (previously declared in /homepages/9/d185637836/htdocs/wp-content/plugins/nextgen-gallery/admin/settings.php:768) in /homepages/9/d185637836/htdocs/wp-content/plugins/nextgen-gallery/admin/settings.php on line 796
    any suggestions???
    Udo

    Are you positive they’re all deavtivated?

    Where else in your wordpress area or theme folder do you have a settings.php file residing?

    You need to find that, and then find what file is trying to require it and apply the same type of fix I mentioned. Maybe you have your own settings.php running or included somewhere?

    rather sure.. πŸ˜‰
    I have calotropis theme from itx running and found a functions.php there and a settings.php, but did not find the function call yet.
    I will have a look this evening, some lines of code to search in.
    thanks for the hint, hope it will solve my problem.
    Udo

    ok, deactivated calotropis theme and used the standard and now it works.
    creationnation, what do you think, is that misbehavior of the theme or is ist a bug in ngg?

    There’s a call to settings.php in the includes/option.php file in that theme. rename your setings.php to themesettings.php, and update that option.php the same, and you should see that error go away.

    Update the thread if that works for you.

    ok, have a
    require_once ‘includes/common.php’; in the functions.php of the theme
    and
    Line 12: if ( is_admin() ) require_once ADMIN_PATH.’admin.php’;
    Line 13: require_once ‘option.php’;
    Line 14: require_once ‘bg.php’;
    Line 15: require_once ‘front.php’;
    Line 16: require_once ‘header.php’;
    Line 17: require_once ‘layout.php’;
    Line 18: require_once ‘navigation.php’;
    Line 19: require_once ‘single.php’;
    Line 20: require_once ‘widget.php’;
    Line 61: require_once ‘wp-pagenavi.php’;
    in the includes/common.php of the theme
    more requires could not be found. What is the problem, the missing
    dirname (__FILE__) . in the call?

    sorry, was to quick and searched only for requires.
    found the include an will test your hint
    thanks

    perfect, thank you so much… πŸ˜‰
    now i get an
    Fatal error: Out of memory (allocated 31195136) (tried to allocate 10240 bytes) in /homepages/14/d185637841/htdocs/wp-content/plugins/nextgen-gallery/lib/gd.thumbnail.inc.php on line 179
    but i think my pics are too large.
    do you inform the itx team to correct their theme? I dont know how this community works but i think it would be fine to see this problem fixed in a future release.
    once more, thanks a lot,
    Udo

    Yeah that other fatal error seems like you’re cranking the server with your pics.

    I would contact them out of courtesy to let them know about it, couldn’t hurt!

    Glad to help.

Viewing 12 replies - 1 through 12 (of 12 total)

The topic ‘[Plugin: NextGEN Gallery] Error when uploading new images’ is closed to new replies.