Section templates not working after update

not only all gone after update, but i cannot create new ones.

please help urgently

after diging deeper:

[04-Jan-2023 09:41:39 UTC] PHP Fatal error:  Uncaught Error: Call to a member function initialize() on null in /.../public_html/wp-content/plugins/cornerstone/includes/classes/Templating/Template.php:194
Stack trace:
#0 /.../public_html/wp-content/plugins/cornerstone/includes/classes/Templating/Template.php(254): Themeco\Cornerstone\Templating\Template::migrateInstanceFromTemplateType('document', 'layout:footer', Object(WP_Post))
#1 /.../public_html/wp-content/plugins/cornerstone/includes/classes/Templating/Template.php(277): Themeco\Cornerstone\Templating\Template::instanceFromPostInfo(Object(WP_Post))
#2 /.../public_html/wp-content/plugins/cornerstone/includes/classes/Services/Templates.php(106): Themeco\Cornerstone\Templating\Template::locate(Object(WP_Post))
#3 [internal function]: Themeco\Cornerstone\Services\Templates->Themeco\Cornerstone\Services\{closure}(Object(WP_Post))
#4 /.../public_html/w in /.../public_html/wp-content/plugins/cornerstone/includes/classes/Templating/Template.php on line 194
[04-Jan-2023 09:41:53 UTC] wp_auto_login: trying to login user_id==1 loginusername=ajax to admin_url=https://mydomain.com/wp-admin/

code that causes error is here:

  $toMigrate = self::instanceFromTemplateType($type, $subType);
  $toMigrate->initialize()->load( $post );
  $toMigrate->save();


i;'ve temporaty fixed it like this, but please provide real fix :wink:

Hi @kroolik123,

Glad that you are able to fix the issue. Although the issue has not been reported yet by any other users, I will notify the same to our development team to take a closer look into it.

Thanks

will you let me know what did they tell 'bout the issue?

Hey @kroolik123,

We do not have any feedback from our developers yet. Rest assured that the issue has been reported already.

Please bear with us. Thanks.

I was just asking if there will be some update, not trying to rush anyone.

Today, after more testing my “fix” just allowed editor to work again, and im still missing templates.
Please help fix or revert back to previous version.

Apologies for that error that will be fixed in the next release.
In a secure note could you give us access so that we can see this issue on your site? So you are missing the black friday template? Was this a section template in Pro5?

90% of my section templates are missing only some random ones are left. my guess is something went wrong during migration and it halted on that template, but no error was catched, so everything broke. I’ve attached secure note.

Hi @kroolik123,

I have tried to check your WordPress admin dashboard but unfortunately, it can’t be accessed due to the Two Factor authentication. I have also checked the website and found some Console errors which might be the cause behind your problem which might be due to the improper update of the X theme and Cornerstone plugin, I would suggest you follow the below steps to troubleshoot.

  1. Delete the Cornerstone
  2. After deletion please use the link in the dashboard to automatically install the Cornerstone.

If that does not help, there might be some different reasons behind your issue. I would like to suggest troubleshooting the following common issue to help us to recognize the reason.

  1. Theme Related Issue
  2. Plugin Conflict
  3. Theme Update related issue
  4. CSS/JS Customization
  5. Disabling Cache
  6. Disabling CDN

If that does not help, please deactivate the Two Factor authentication and let us know for further investigation.

Thanks

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