Content of page has disappeared

The content of my page has disappeared. I haven’t made any edits to this page in at least a year, so I don’t know what new situation could be causing this?

When I visit https://summerwindcanines.com/resources/ in the Pro editor, it asks me how I’d like to start, as if there’s nothing on this page. I can visit this page with the standard WP editor (which I never use) and can still see that content exists. How do I get the content to appear again (both in the Pro editor, and on the live site)?

Hello @capodanno,

Thanks for reaching out. Upon checking, there are 47 revisions to your Resources page. Some of the edits were a few hours ago.

You are not supposed to edit the page outside of the Pro Content Editor. Doing so corrupted the editor data which is why you can no longer edit this back in the editor. You may need to recreate the page from scratch.

Best Regards.

I am still investigating this issue, and came across a fatal error that the theme is throwing. You can take a look at error_log in the themes folder, and you’ll see this:

25-Jul-2021 07:18:31 UTC] PHP Fatal error: Uncaught Error: Call to undefined function x_get_view() in /home/summerwind/public_html/wp-content/themes/pro/index.php:16

Stack trace:

#0 {main}

thrown in /home/summerwind/public_html/wp-content/themes/pro/index.php on line 16

[26-Jul-2021 07:34:41 UTC] PHP Fatal error: Uncaught Error: Call to undefined function x_get_view() in /home/summerwind/public_html/wp-content/themes/pro/index.php:16

Stack trace:

#0 {main}

thrown in /home/summerwind/public_html/wp-content/themes/pro/index.php on line 16

[27-Jul-2021 07:22:38 UTC] PHP Fatal error: Uncaught Error: Call to undefined function x_get_view() in /home/summerwind/public_html/wp-content/themes/pro/index.php:16

Stack trace:

#0 {main}

thrown in /home/summerwind/public_html/wp-content/themes/pro/index.php on line 16

Here’s the content of that index.php file:

<?php // ============================================================================= // INDEX.PHP // ----------------------------------------------------------------------------- // Handles output of pages and posts if a more specific template file isn't // present. Must be present for theme to function properly. // // Content is output based on which Stack has been selected in the Customizer. // To view and/or edit the markup of your Stack's index, first go to "views" // inside the "framework" subdirectory. Once inside, find your Stack's folder // and look for a file called "wp-index.php," where you'll be able to find the // appropriate output. // ============================================================================= x_get_view( x_get_stack(), 'wp', 'index' );

Could this be causing my problem?

Hey @capodanno,

A Fatal Error would cause the theme not to work at all so it’s far from the issue you described moreover that the content is stored in the database. The fatal error could not delete the database entry.

Your content could have been edited outside of Cornerstone either manually (someone edited it) or dynamically by a 3rd party plugin like a database clean-up tool.

The only solution for this case is to revert your site from a backup that still has your content. Otherwise, you need to manually rebuild the page.

Thanks.

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