Problem opening Cornerstone

When I try to edit any page in Cornerstone, I get this error:

Hello @leomello,

Thanks for writing to us.

I checked your site it might be the issue of plugin conflict issue, I would suggest you please disable all the plugins and and recheck it. If it doesn’t work for you please copy your live site to the staging server and share the admin login details of the staging server and FTP of the staging server so that we can check it without breaking your live website.

Thanks

Thanks, @prakash_s.

The conflicting plugin is LiteSpeed Cache.

I have several other sites using the same versions of Cornerstone / X-Pro Theme and LiteSpeed and this error is not occurring.

Hey Leonardo,

Did the issue happen after you updated the theme or plugin? Please check this documentation:

For more troubleshooting tips, check this out:

Best Regards.

Everything was working normally.

Now, with the plugin disabled, when I try to edit a page, it gives an error.

https://www.btgingredients.com/cornerstone/edit/105

I’ve enabled Wordpress debugging and got the error:

[10-Mar-2024 19:47:24 UTC] PHP Fatal error: Uncaught Error: Cannot use object of type WP_Error as array in /home/btgingredients.com/public_html/wp-content/themes/pro/cornerstone/includes/classes/Services/DynamicContent.php:551
Stack trace:
#0 /home/btgingredients.com/public_html/wp-content/themes/pro/cornerstone/includes/classes/Services/DynamicContent.php(524): Themeco\Cornerstone\Services\DynamicContent->get_first_term_for_post()
#1 /home/btgingredients.com/public_html/wp-content/themes/pro/cornerstone/includes/classes/Services/DynamicContent.php(507): Themeco\Cornerstone\Services\DynamicContent->get_cached_first_term_for_post()
#2 /home/btgingredients.com/public_html/wp-content/themes/pro/cornerstone/includes/classes/Preview/Renderer.php(239): Themeco\Cornerstone\Services\DynamicContent->get_contextual_term()
#3 /home/btgingredients.com/public_html/wp-content/themes/pro/cornerstone/includes/classes/Preview/Renderer.php(212): Themeco\Cornerstone\Preview\Renderer->get_context_ids()
#4 /home/btgingredients.com/public_html/wp-content/themes/pro/cornerst in /home/btgingredients.com/public_html/wp-content/themes/pro/cornerstone/includes/classes/Services/DynamicContent.php on line 551

When I disable the Looper Provider in an area of the page and save, the editor opens again.

PS: The URL problem shown in the error is completely unrelated.

Hello Leonardo,

I have checked all the pages, headers, and footer on your site. It seems that only the “Our Products” and the homepage are experiencing the issue. I just could not figure out what was causing the issue. You might be correct that the Looper is causing it. Maybe it has something to do with how the product custom post type was created. I am seeing both the CPT UI and the ACF plugin active. If you can import your custom post and other taxonomy created in CPT UI plugin to the ACF plugin, we might be able to have one less plugin that needs to be tested for a conflict.

Best Regards.

I don’t think that’s it, because:

1 - The site has always worked in the same configuration and with the same plugins. It’s not something new. This error just started happening a while ago;

2 - I have several other sites using the same configuration and version of the plugins (the latest ones released) and everything is fine.

Hi Leonardo,

In the past few times, new versions of PHP and WordPress have been released, which could be the reason behind your problem. I would request that you follow the suggestion given by my colleague. Or else, you can please copy your live site to a staging server so we can troubleshoot freely without breaking your live site.
And give us access to the secure note, including:

– WordPress Site URL & Login URL
– WordPress Admin username/password

To create a secure note, click the key icon underneath any of your posts.

NOTE: Please remember that we don’t provide any support for the 3rd Party plugins or custom coding problems.

Thanks

You can make changes to this installation, I have already backed up the files and database.

The login details are in the secure note in the initial post of this thread.

Hi Leonardo,

I have checked it thoroughly and found that the Image and Text elements containing the dynamic content tag are the reason behind your problem. I would suggest you check the content tags and the relation with the post coming in the looper once.

NOTE: I have created a test page and deleted the elements, and it worked. Please find the test page URL in the secure note.

Hope it helps.
Thanks

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