Uncaught Error on line 289 migration.php

Hi Themeco,

I’m got an “Your Site is Experiencing a Technical Issue” email with the following error messages

WordPress version 6.7.1
Active theme: X – Child Theme (version 1.0.0)
Current plugin: (version )
PHP version 8.1.31

Error Details

An error of type E_ERROR was caused in line 289 of the file /home/celliantproducts/public_html/cabinetbedcanada.com/wp-content/themes/x/framework/functions/x/migration.php. Error message: Uncaught Error: Call to undefined method Themeco\Cornerstone\Services\Permissions::migrateTemplateEditPermission() in /home/celliantproducts/public_html/cabinetbedcanada.com/wp-content/themes/x/framework/functions/x/migration.php:289
Stack trace:
#0 /home/celliantproducts/public_html/cabinetbedcanada.com/wp-includes/class-wp-hook.php(324): x_version_migration()
#1 /home/celliantproducts/public_html/cabinetbedcanada.com/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters()
#2 /home/celliantproducts/public_html/cabinetbedcanada.com/wp-includes/plugin.php(517): WP_Hook->do_action()
#3 /home/celliantproducts/public_html/cabinetbedcanada.com/wp-settings.php(704): do_action()
#4 /home/celliantproducts/public_html/cabinetbedcanada.com/wp-config.php(96): require_once(’/home/celliantp…’)
#5 /home/celliantproducts/public_html/cabinetbedcanada.com/wp-load.php(50): require_once(’/home/celliantp…’)
#6 /home/celliantproducts/public_html/cabinetbedcanada.com/wp-admin/admin.php(34): require_once(’/home/celliantp…’)
#7 /home/celliantproducts/public_html/cabinetbedcanada.com/wp-admin/update-core.php(10): require_once(’/home/celliantp…’)
#8 {main}

This happened after updating the X theme to version 10.5.15.

Thank you,

Hello @Stigan,

Thank you for the inquiry.

Is the error occurring frequently, or do you receive the email multiple times? We don’t see any issues on the front end, and there are no error notifications in the back end.

Best regards,
Ismael

Hi Ismael,

We get this once in an email and once in the update screen. It would only happen once per site and there’s no error message anywhere.

Is this something you can look into why it happens? I hope it’s not a big issue.

Thank you,

Thank you for the update.

What was the version of the theme prior to the update? According to the error, the method “migrateTemplateEditPermission” is undefined, which caused an error after the migration. This migration process only runs once during each update, so it should not cause any errors or issues on the site.

Let us know if you encounter the issue again after an update.

Best regards.

The version of the theme prior to the update is 10.4.16. If it only runs once during each updates then does that mean the current method “migrateTemplateEditPermission” is still undefined?

Hey Stigan,

To resolve this issue, it is recommended to update Cornerstone first. I have confirmed with the developer that this update will not cause any compatibility issues with X and should effectively address the problem.

Thank you.

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.