Replies: 0
Hi,
We get the following error when trying to edit the themes functions.php file on a clean instance of the staging environment. this does not happen on the live environment.
Error: Scrape nonce check Failed
We have had a response back from our hosting company:
The error that you receive – Scrape nonce check Failed is related to the theme.
Not that there are themes that use a lot of custom code and functions that require updates when the URL of the website is changed so it can be configured to work with the new website set up.
With the staging tool on our cPanel accounts, the website configuration is not changed, meaning that the URL is not updated within the database of the staging tool but instead, there are server-side rules and redirects that keep the URL while the staging site is accessed through a different URL. that specific configuration can also affect the functionality of the theme or some plugins which are domain-dependant.
I would recommend you to deactivate all plugins on the staging website and test editing the functions.php file again. If the issue is resolved, start activating the plugins one by one, until the issue re-occurs. This procedure will help diagnose which plugin is causing the issue or additional theme updates will be required.
You can also check with the theme support if there are any specifics that should be considered having in mind the custom configuration used by the staging websites.