• Skip to main content
  • Skip to forum navigation

StudioPress

  • Shop for Themes
  • My StudioPress

Forum navigation

  • Home
  • General Genesis Discussions
  • StudioPress Themes
  • Genesis Blocks
    • Genesis Blocks
    • Genesis Custom Blocks
  • Retired Themes
  • FAQs
  • Forum Rules
  • Internationalization and Translations
  • Forum Bugs and Suggestions
  • Forum Log In

Are You Using The WordPress Block Editor?

Genesis now offers plugins that help you build better sites faster with the WordPress block editor (Gutenberg). Try the feature-rich free versions of each plugin for yourself!

Genesis Blocks Genesis Custom Blocks

Call stack errors citing Genesis

Welcome!

These forums are for general discussion on WordPress and Genesis. Official support for StudioPress themes is offered exclusively at My StudioPress. Responses in this forum are not guaranteed. Please note that this forum will require a new username, separate from the one used for My.StudioPress.

Log In
Register Lost Password

Community Forums › Forums › General Genesis Framework Discussions › Call stack errors citing Genesis

This topic is: not resolved

Tagged: PHP Errors

  • This topic has 3 replies, 3 voices, and was last updated 5 days, 1 hour ago by lonzobrown.
Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • April 1, 2026 at 1:41 pm #509856
    dannam2
    Participant

    Background:
    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.

    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 Monitor
    https://mgnv.org/events/calendar/calendar/
    April 2, 2026 at 8:25 am #509860
    AnitaC
    Keymaster

    Sugar 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 #509861
    dannam2
    Participant

    Good 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 errors

    The 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 #509891
    lonzobrown
    Participant

    I am facing same type issue in my website jumblesanswer.com can any one help me in it i take too much time.

  • Author
    Posts
Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.
Log In

CTA

Ready to get started? Create a site or shop for themes.

Create a site with WP EngineShop for Themes

Footer

StudioPress

© 2026 WPEngine, Inc.

Products
  • Create a Site with WP Engine
  • Shop for Themes
  • Theme Features
  • Get Started
  • Showcase
Company
  • Brand Assets
  • Terms of Service
  • Accptable Usse Policy
  • Privacy Policy
  • Refund Policy
  • Contact Us
Community
  • Find Developers
  • Forums
  • Facebook Group
  • #GenesisWP
  • Showcase
Resources
  • StudioPress Blog
  • Help & Documentation
  • FAQs
  • Code Snippets
  • Affiliates
Connect
  • StudioPress Live
  • StudioPress FM
  • Facebook
  • Twitter
  • Dribbble