X Theme causing a fatal error

Received an alert from Wordpress that “WordPress caught an error with your theme, X.” When I check the site (https://careers.littlesprouts.com/), the header layout, section background colors, and font colors are affected / not right. For reference, the header of the site should look identical to this: (https://littlesprouts.com/).

I’ve troubleshooted and reached out to our webhost. They couldn’t find an issue, but did help me restore the site back to 2/10/25. That did not work. They said it’s a theme issue so they cannot provide more support. Please help!

WordPress version 6.7.2
Active theme: X version 10.5.16
Cornerstone: version 7.5.16
PHP version 8.0.30

Error Details

=============

An error of type E_ERROR was caused in line 289 of the file /chroot/home/ada763f8/887c4f3568.nxcli.io/html/wp-content/themes/x/framework/functions/x/migration.php. Error message: Uncaught Error: Call to undefined method Themeco\Cornerstone\Services\Permissions::migrateTemplateEditPermission() in /chroot/home/ada763f8/887c4f3568.nxcli.io/html/wp-content/themes/x/framework/functions/x/migration.php:289

Stack trace:

#0 /chroot/home/ada763f8/887c4f3568.nxcli.io/html/wp-includes/class-wp-hook.php(324): x_version_migration(’’)

#1 /chroot/home/ada763f8/887c4f3568.nxcli.io/html/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters(NULL, Array)

#2 /chroot/home/ada763f8/887c4f3568.nxcli.io/html/wp-includes/plugin.php(517): WP_Hook->do_action(Array)

#3 /chroot/home/ada763f8/887c4f3568.nxcli.io/html/wp-settings.php(704): do_action(‘init’)

#4 /chroot/home/ada763f8/887c4f3568.nxcli.io/html/wp-config.php(137): require_once(’/chroot/home/ad…’)

#5 /chroot/home/ada763f8/887c4f3568.nxcli.io/html/wp-load.php(50): require_once(’/chroot/home/ad…’)

#6 /chroot/home/ada763f8/887c4f3568.nxcli.io/html/wp-admin/admin.php(34): require_once(’/chroot/home/ad…’)

#7 /chroot/home/ada763f8/887c4f3568.nxcli.io/html/wp-admin/update-core.php(10): require_once(’/chroot/home/ad…’)

#8 {main}

thrown

Hey @littlesprouts,

Thanks for writing in! We could not replicate the issue on out end. Could you please clone your site to a staging site so we can do the troubleshooting there. If you are not familiar with staging area, please check this article first:

We would also love if you can share with the the staging area access. You can create a secure note in your next reply with the following info:
– Link to your site
– WP login URL
– WP username
– WP password
– WP Administrator Role
– Confirmation that we can access and make changes to your site

To know how to create a secure note, please check this out: How The Forum Works

image

Best Regards.

Responding with secure note now.

Hey @littlesprouts,

Could you kindly provide access to https://littlesprouts.com/ so we can review and compare the settings between the live and staging environments?

Thank you.

Yes, i can provide access to littlesprouts.com. Just the live site? Or do I need to create a staging site to give you access as well?

Hey @littlesprouts.

Just give us access to your live website so that we can compare the settings from the staging you’ve provided.

Thank you.

Sending credentials in secure note now

Hello @littlesprouts,

The site https://careers.example.com is using the X theme and Cornerstone.
The main site https://example.com is using Pro theme and it also have the Pro Child theme active.

The header and the footer of the main site has a custom CSS added in the child theme’s style.css file that has this custom CSS code:

.x-topbar{
    background-color: #6894bd !important;
    height: 40px;
    max-width: 1440px;
    width: 88%;
    top:0px;
    position:fixed;
    z-index: 1031;
    color: #fff;
    margin:0px auto;
}
.x-colophon.top {
    background-color: #abc27e !important;
    padding: 5% 0 5.25%;
    color: #fff;
}

.x-colophon.bottom {
    background-color: #41873e;
}

Please install an X child theme which you can get it here: https://theme.co/docs/child-themes, and then copy the CSS style from the main site to the careers.example.com site.

And please make sure that there are no performance issue in Tools > Site Health > Info in your WordPress dashboard.

Best Regards.

Before I do that, can you explain why our Careers site is suddenly need the X child theme installed? It’s actually been set up that way with no major changes nor issues over the past several years. This issue only happened I think over the last week?

Hello @littlesprouts,

To ensure that custom code changes are not lost during theme updates, please install and use the X child theme. Adding custom code to the parent theme is not recommended, as updates will overwrite any modifications.

Thanks