Archived topic
Cannot remove site template
5 replies · Started by David on August 3, 2021
I only installed GP premium today. After I install a site template I cannot remove it to install another one. It just goes to restoring content and never changes.
Hi David,
When you try to remove the template from this view - https://docs.generatepress.com/article/using-the-site-library/#removing-an-imported-site - does it return any error?
Are you familiar with Google Dev tools? (right click page + inspect)
Can you check on the console tag for any errors? Let us know.
It just stays on 'removing content' with the revolving circle. The only way I can change sites is by deleting the theme and GP premium plug in.
Hi there,
when the issue occurs. If you right click the page, and select Inspect, it will open up the developers tools. Select the Console tab. Are their any errors being displayed ?
Yes this is what is says -
JQMIGRATE: Migrate is installed, version 3.3.2
/wp-json/generatepress-site-library/v1/restore_content?_locale=user:1 Failed to load resource: the server responded with a status of 500 (Internal Server Error)
themes.php:1 Uncaught (in promise) Object
When you install a Site from the Library - GP creates a 'snapshot' of the site before the install goes ahead, which is what it uses to provide you the option to revert those changes when selecting a new site.
But on your site its storing this value agains this user string: ?_locale=user which is failing as it doesn't exist after the site import. This will be to do with how your local server is storing user data. And i can't really advise on how to change that behaviour.
If you're working on a clean install, try installing the WP Reset plugin, which will roll the site back to a clean install.