Viewing 8 replies - 1 through 8 (of 8 total)
  • Plugin Contributor Drivingralle

    (@drivingralle)

    Similar error on saving an existing post at my site:
    Notice: Undefined index: fg_perm_noncedata in /wp-content/plugins/featured-galleries/components/metabox.php on line 52

    Plugin Author Andy Mercer

    (@kelderic)

    I’ll look into it tonight. I’ve got a lot of issues right now. This is NOT compatible with WP 3.9, at all. They have completely overhauled a lot of the media-views.js file, so it’s going to take me a bit to figure out how to update it. That said, the above should hopefully not take super long to fix.

    Plugin Author Andy Mercer

    (@kelderic)

    Just to be sure I understand, this is correct, right?:

    You have the plugin installed.
    You go to Appearance -> Menus
    You click Save Menu.
    You get a notice near top of screen saying that error.

    Also what version of WP, what version of the plugin, what post types are you using it for, (post, page, custom types, etc). Do you have any featured galleries saved, or just have the plugin installed?

    The above info will help me track it down more quickly. Thanks!

    Thread Starter Torsten Landsiedel

    (@zodiac1978)

    Problem is still there on 3.9 if you save menus (on top of the admin page):
    Notice: Undefined index: fg_perm_noncedata in /wp-content/plugins/featured-galleries/components/metabox.php on line 53

    But the menu is saved.

    If I want so save a post it gets even worse:

    Notice: Undefined index: fg_perm_noncedata in /wp-content/plugins/featured-galleries/components/metabox.php on line 53
    
    Warning: Cannot modify header information - headers already sent by (output started at /wp-content/plugins/featured-galleries/components/metabox.php:53) in /wp-admin/post.php on line 235
    
    Warning: Cannot modify header information - headers already sent by (output started at /wp-content/plugins/featured-galleries/components/metabox.php:53) in /wp-includes/pluggable.php on line 1121

    (On a white page, no admin page is shown, you have to go back and reload manually.)

    But the post is saved also…

    This is a really cool plugin with a great, intuitive UI, but just without these problems … ??

    Cheers
    Torsten

    Also what version of WP, what version of the plugin, what post types are you using it for, (post, page, custom types, etc).

    We started with WP 3.8.2/3.8.3 and Plugin 1.1.6, now we are on WP 3.9 and Plugin version 1.2.2. We just use it for 1 CPT (see below).

    You have the plugin installed.
    You go to Appearance -> Menus
    You click Save Menu.
    You get a notice near top of screen saying that error.

    Yes, that’s right.

    Maybe this is important for you. We use this code to just made the metabox available to one CPT.

    /**
     * Featured gallerys just for CPT
     *
     * @return array for allowed post types
     **/
    add_filter( 'fg_post_types', 'post_type_filter_for_featured_gallery', 10 );
    function post_type_filter_for_featured_gallery( $posttype_array ) {
    
    	return array( 'custom-cpt-name' );
    
    }

    If I save a post from this CPT everything is okay. If I try to save a post, a page or a menu, I got the error messages.

    Plugin Author Andy Mercer

    (@kelderic)

    Appreciate the help! I finally figured out what debug mode is (I guess I should have been using it all along) and saw how many errors my plugin was causing.

    Looks like every time something was saved that wasn’t for the plugin, it was calling my save function and throwing an error. Worst case in menus! The new version I just uploaded fixes all error messages I can find in Debug mode, but I’ve only tested in 3.9, so I may have missed something. Please let me know if 1.2.3 fixes everything for you.

    Thread Starter Torsten Landsiedel

    (@zodiac1978)

    Woohoo! Thank you very much for the quick response and fix. Works like a charm now. ??

    AWESOME!

    Cheers
    Torsten

    Plugin Author Andy Mercer

    (@kelderic)

    I’m glad I could help! If you like it, could you give a rating? Doesn’t even have to be 5 stars, lol, I just hate looking at 0 ratings of any kind.

    Thread Starter Torsten Landsiedel

    (@zodiac1978)

    Done! (Sorry for the delay …)

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘PHP Notice on saving custom menu’ is closed to new replies.