Community Forums › Forums › General Genesis Framework Discussions › Call stack errors citing Genesis
Tagged: PHP Errors
- This topic has 3 replies, 3 voices, and was last updated 5 days, 1 hour ago by
lonzobrown.
-
AuthorPosts
-
April 1, 2026 at 1:41 pm #509856
dannam2
ParticipantBackground:
WordPress.COM hosting
Using Genesis 3.6.2 and Mai Theme from BizBudding.
Sugar Calendar 3.11.0
WordPress 3.9.4
All plugins and themes are up to date.When I try to view the calendar at this URL, you see a Call Stack of 15 errors, some related to wp-includes, others relate to Genesis:
https://mgnv.org/events/calendar/calendar/Error details are below.
I'm at a loss on how to troubleshoot and would appreciate any ideas or direction.
Thank you.
https://mgnv.org/events/calendar/calendar/Uncaught Error: ltrim(): Argument #1 ($string) must be of type string, WP_Error given in /wordpress/core/6.9.4/wp-includes/formatting.php on line 4496 Call stack: ltrim(WP_Error) wp-includes/formatting.php:4496 esc_url(WP_Error) wp-content/themes/genesis/lib/structure/header.php:366 genesis_canonical('') wp-includes/class-wp-hook.php:341 WP_Hook::apply_filters(NULL, array) wp-includes/class-wp-hook.php:365 WP_Hook::do_action(array) wp-includes/plugin.php:522 do_action('wp_head') wp-includes/general-template.php:3197 wp_head() wp-content/themes/genesis/header.php:35 require_once('/srv/htdocs/wp-content/themes/genesis/header.php') wp-includes/template.php:814 load_template('/srv/htdocs/wp-content/themes/genesis/header.php', true, array) wp-includes/template.php:749 locate_template(array, true, true, array) wp-includes/general-template.php:48 get_header() wp-content/themes/genesis/lib/framework.php:24 genesis() wp-content/themes/genesis/page.php:15 include('/srv/htdocs/wp-content/themes/genesis/page.php') wp-includes/template-loader.php:132 require_once('/wordpress/core/6.9..../template-loader.php') wp-blog-header.php:19 require('/wordpress/core/6.9.4/wp-blog-header.php') index.php:17 Query MonitorApril 2, 2026 at 8:25 am #509860AnitaC
KeymasterSugar had an update yesterday to 3.11.0 (April 1). I would suggest downgrading to the previous version of Sugar to see if it resolves that issue. If it does, send this error to Sugar to see how they can resolve it.
Need help with customization or troubleshooting? Reach out to me.
April 2, 2026 at 11:08 am #509861dannam2
ParticipantGood idea, but we're already testing both versions.
This URL is using Sugar 3.11.0 -
https://mgnv.org/events/calendar/calendar/
which displays the stack trace errorsThe staging site is using Sugar 3.10 -
https://staging-6be6-mgnova.wpcomstaging.com/events/calendar/my-calendar/
and it returns a critical error.In working with a WordPress engineer, he says
The stack trace shows the fatal error originates in the Genesis theme - specifically, the genesis_canonical() function in genesis/lib/structure/header.php (line 366). It's passing an invalid value to WordPress's esc_url() function instead of a proper URL, which causes the crash. This isn't a Sugar Calendar or WordPress core issue.
April 8, 2026 at 2:21 pm #509891lonzobrown
ParticipantI am facing same type issue in my website jumblesanswer.com can any one help me in it i take too much time.
-
AuthorPosts
- You must be logged in to reply to this topic.