Hello and welcome to our community! Is this your first visit?
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    Regular Coder
    Join Date
    Nov 2011
    Thanked 0 Times in 0 Posts

    Question WordPress - Fatal error: Cannot redeclare gt_save_images()

    Hi there,
    Having some difficulty trying to add a duplicated new post type to the Nash template (from ThemeForest). I've run into an error message that results in 0 results on Google, so I'm hoping someone here can help me figure it out:

    Fatal error: Cannot redeclare gt_save_images() (previously declared in /path/wp-content/themes/nash/functions/theme-videometa.php:578) in /path/wp-content/themes/nash/functions/theme-portfoliometa.php on line 599
    The code in that spot in both referenced files is:

    PHP Code:
    $.post(ajaxurl, { ids''action'gt_save_images'post_idgt_ajax.post_idnoncegt_ajax.nonce }); 

  • #2
    Senior Coder
    Join Date
    Sep 2010
    Thanked 226 Times in 226 Posts
    That means that you're re-declaring a function which has already been declared. just remove the second instance of its declaration and the problem will go away.
    Welcome to http://www.myphotowizard.net

    where you can edit images, make a photo calendar, add text to images, and do much more.

    When you know what you're doing it's called Engineering, when you don't know, it's called Research and Development. And you can always charge more for Research and Development.


    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts