Cornerstone / Pro (theme builders) clash after cloning LIVE site to STAGING site


This week, on May 10th, I decided to update the STAGING site with the latest updates from the LIVE site, since we made a number of small changes on the live site.

After the Update was done, and I went to the staging site to check the changes, there was a critical error and a white screen behind it with no additional information.

Error Details


An error of type E_ERROR was caused in line 116 of the file /home/payfelix/public_html/staging/wp-content/plugins/wp-staging-pro/wp-staging-pro.php. Error message: Uncaught Error: Class ‘WPStaging\WPStaging’ not found in /home/payfelix/public_html/staging/wp-content/plugins/wp-staging-pro/wp-staging-pro.php:116

Stack trace:

#0 /home/payfelix/public_html/staging/wp-settings.php(418): include_once()

#1 /home/payfelix/public_html/staging/wp-config.php(85): require_once(’/home/payfelix/…’)

#2 /home/payfelix/public_html/staging/wp-load.php(50): require_once(’/home/payfelix/…’)

#3 /home/payfelix/public_html/staging/wp-admin/admin-ajax.php(22): require_once(’/home/payfelix/…’)

#4 {main}


The error seems to be connected to WP Staging Pro plugin responsible for pushing changes.

However, after some tinkering we have discovered it was the “Pro theme” by that was interfering with the staging site.

Before the latest update BOTH our staging site and our live site were using the “Pro” page builder and the pages built in Pro builder in staging pushed to the live site were working well, the staging links remained within the staging site while the live links were present on the live site.

Since the latest update in the Pro theme, our live site started using the “Cornerstone” page builder and the staging site used “Pro” page builder but despite that the changes made in Cornerstone on the staging site translated well into the live site with no issues.

We went into the FTP, took the “Pro” page builder folder, copied it and pasted into the same place but in the staging folder within FTP. It seemed to have fixed the issue BUT now (please refer to image “issue-1.png”) editing the page with the Cornerstone builder leads to the “Welcome screen” (please refer to image “issue-2.png”) and when you select “Launch” it leads you to the Homepage editing screen. You can still manually find the page you want to edit and edit it (issue-3.png), but I’m afraid that during the push from the STAGING site to LIVE site, that may lead to URL issues.

The staging site works now but has issues with the page builder and links. After the “Update” from LIVE site to STAGING, some notes appeared in the Wordpress hub (please refer to image “issue-4.png”) which are likely the key to fixing this issue, however, I do not remember the structure of permalinks set initially on the staging site and whether the other points provided in image “issue-4.png” affect the working order of the staging site and the page builders.

Please let me know what would be the best solution in this situation to ensure the staging site returns to normal, the staging links do not break the live site links and what would be good ways to restore/fix the staging site in this situation.


Hello Jay,

Thanks for writing to us.

For the error, I would suggest you use the FTP to access the file then go to the wp-content/plugins/ rename the wp-staging-pro plugin folder the error seems to be coming from external plugins.

For the page builder, It seems that you have set the Permalink as Plain, I would suggest you set the Permalink as Post Name since Cornerstone uses the WordPress rest API and you can not use the rest API if you set the Permalink as Plain.

Go to WordPress Dashboard ---->Settings —>Permalink —>Post Name

Hope it helps


Thank you for your reply. Simply changing the permalink settings seems to have done the trick by the looks of it.


Hello Jay,

We are glad that you were able to figure out a way to resolve your issue. Thanks for letting us know. Please feel free to create another thread if you have any other inquiries.


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