• Resolved lincolnbaggie

    (@lincolnbaggie)


    SInce a recent plugin update I’m getting the following errors on my Calendar page:

    Fatal error: Uncaught TypeError: call_user_func(): Argument #1 ($callback) must be a valid callback, function “” not found or invalid function name in /homepages/15/d683293347/htdocs/clickandbuilds/EastAlgarveWF/wp-content/plugins/my-calendar/my-calendar-navigation.php:214 Stack trace: #0 /homepages/15/d683293347/htdocs/clickandbuilds/EastAlgarveWF/wp-content/plugins/my-calendar/my-calendar-output.php(1942): mc_generate_calendar_nav(Array, ‘3,4,5,7,8,9’, 1, 24, ‘mc-78f0a9da0e50…’, false, Array, ‘2022-12-26’) #1 /homepages/15/d683293347/htdocs/clickandbuilds/EastAlgarveWF/wp-content/plugins/my-calendar/my-calendar-shortcodes.php(97): my_calendar(Array) #2 /homepages/15/d683293347/htdocs/clickandbuilds/EastAlgarveWF/wp-includes/shortcodes.php(355): my_calendar_insert(Array, ”, ‘my_calendar’) #3 [internal function]: do_shortcode_tag(Array) #4 /homepages/15/d683293347/htdocs/clickandbuilds/EastAlgarveWF/wp-includes/shortcodes.php(227): preg_replace_callback(‘/\\[(\\[?)(my_cal…’, ‘do_shortcode_ta…’, ‘<p><strong>Belo…’) #5 /homepages/15/d683293347/htdocs/clickandbuilds/EastAlgarveWF/wp-includes/class-wp-hook.php(308): do_shortcode(‘<p><strong>Belo…’) #6 /homepages/15/d683293347/htdocs/clickandbuilds/EastAlgarveWF/wp-includes/plugin.php(205): WP_Hook->apply_filters(‘<p><strong>Belo…’, Array) #7 /homepages/15/d683293347/htdocs/clickandbuilds/EastAlgarveWF/wp-includes/post-template.php(255): apply_filters(‘the_content’, ‘<strong>Below i…’) #8 /homepages/15/d683293347/htdocs/clickandbuilds/EastAlgarveWF/wp-content/themes/conica/templates/contents/content-page.php(22): the_content() #9 /homepages/15/d683293347/htdocs/clickandbuilds/EastAlgarveWF/wp-includes/template.php(785): require(‘/homepages/15/d…’) #10 /homepages/15/d683293347/htdocs/clickandbuilds/EastAlgarveWF/wp-includes/template.php(718): load_template(‘/homepages/15/d…’, false, Array) #11 /homepages/15/d683293347/htdocs/clickandbuilds/EastAlgarveWF/wp-includes/general-template.php(204): locate_template(Array, true, false, Array) #12 /homepages/15/d683293347/htdocs/clickandbuilds/EastAlgarveWF/wp-content/themes/conica/template-full-width.php(13): get_template_part(‘templates/conte…’, ‘page’) #13 /homepages/15/d683293347/htdocs/clickandbuilds/EastAlgarveWF/wp-includes/template-loader.php(106): include(‘/homepages/15/d…’) #14 /homepages/15/d683293347/htdocs/clickandbuilds/EastAlgarveWF/wp-blog-header.php(19): require_once(‘/homepages/15/d…’) #15 /homepages/15/d683293347/htdocs/clickandbuilds/EastAlgarveWF/index.php(17): require(‘/homepages/15/d…’) #16 {main} thrown in?/homepages/15/d683293347/htdocs/clickandbuilds/EastAlgarveWF/wp-content/plugins/my-calendar/my-calendar-navigation.php?on line?214

    Any advice?

    The page I need help with: [log in to see the link]

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Author Joe Dolson

    (@joedolson)

    Can you share your shortcode with me? It sounds like you have a navigation key that doesn’t exist; but I’d like to confirm that.

    Plugin Author Joe Dolson

    (@joedolson)

    Regardless, this is fixed; view the change, if you want to apply it before I get an update out.

    Thread Starter lincolnbaggie

    (@lincolnbaggie)

    Thanks for getting back to me. Yes, I’ve now worked out it’s an issue with the shortcode. It was:

    [my_calendar category=”3,4,5,7,8,9″ format=”calendar” time=”month” above=”nav,jump,” below=”none”]

    If I remove “above..” and “below..” it does render the calendar, but not a single month view as it did. Can you advise what I should use to show a single month with no categories below

    Plugin Author Joe Dolson

    (@joedolson)

    If you edit the calendar page, there’s a metabox at the bottom you can use to configure the page instead of using the shortcode. Set show_months = 1 (it defaults to the value you have saved in Settings > Display for number of months to show.)

    The problem in the above parameter is the stray comma; if you just delete the comma you’ll be have your navigation settings back. Or you can omit the attributes and configure navigation in the metabox in the page editor.

    Thread Starter lincolnbaggie

    (@lincolnbaggie)

    Thanks Joe, really appreciate your help. I’ll have a look in the morning and report back. Great support from you.

    Thread Starter lincolnbaggie

    (@lincolnbaggie)

    All corrected and working again Joe. Thanks for your help.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘My Calendar is not working’ is closed to new replies.