- This topic has 7 replies, 3 voices, and was last updated 4 years, 11 months ago by
Elvin.
-
AuthorPosts
-
April 8, 2021 at 10:12 am #1726649
perlfan
Hi there,
when I try to edit the functions.php of my GP child theme I get an error: “Scrape nonce check failed. Please try again.”. In other posts I’ve seen that caching plugins can be the cause, however I don’t have any and I have the newest GP and WP installed.
The problem (probably) occurred after migrating the page to another hosting provider. The site runs smoothly except this error.
Thanks for help, Frank
April 8, 2021 at 12:34 pm #1726795Leo
StaffCustomer SupportHi there,
I don’t believe this is a GP issue.
Have you tried disabling all plugins to test?
Maybe try removing the functions in your child theme one by one and see if any of them is causing the issue?
April 8, 2021 at 9:08 pm #1727072perlfan
Hi Leo,
I have deactivated all plugins and cleared the cache, but the error remains. I have also tried to save the functions.php leaving only…
"<?php /** * GeneratePress child theme functions and definitions. * * Add your custom PHP in this file. * Only edit this file if you have direct access to it on your server (to fix errors if they happen). */… but the error remains. So it hasn’t to do with the content of the functions.php. Then I tried to save the functions.php from other themes (not activated) and it worked. When I try to save the functions.php from the Generatepress main theme (not child theme), same error … So for me, the error seems to be GP related …
Thanks for help, Frank
April 8, 2021 at 9:36 pm #1727091Elvin
StaffCustomer SupportHi there,
Check your syntaxes for any issues.
I’m not sure if this is an error when you placed the code on your reply but you have a stray
"on your code before the<?php.There’s probably more throughout the file.
So it hasn’t to do with the content of the functions.php. Then I tried to save the functions.php from other themes (not activated) and it worked.
That’s misdiagnosing things.
functions.php with syntax issues don’t affect the site if it’s not activated. It only affects the site if it’s activated so it’s still potentially an issue.
That’s why it’s not affecting the site when it’s on a functions.php on a deactivated theme but then breaks the site when you place it on an active child theme’s functions.php. 🙂
April 8, 2021 at 10:57 pm #1727138perlfan
Hi, the quotation mark is not part of the code! 🙂 I also noticed that the error occurs with every activated theme, so it’s not a GP problem. Now I added my new code as a snippet, hopefully the error will disappear with future WP updates…
FrankApril 8, 2021 at 11:25 pm #1727166Elvin
StaffCustomer SupportHave you sorted it out? Let us know if you need further help. 🙂
April 8, 2021 at 11:34 pm #1727174perlfan
No, it’s not solved – that’s why I hope that future WP updates will eliminate the problem. As a turnaround I’ll edit the functions.php via FTP. And I don’t think that the error causes other conflicts on the site. Thanks for helping me, even though the problem is not even caused by your theme. Frank
April 11, 2021 at 2:58 pm #1730284Elvin
StaffCustomer SupportNo problem. Glad to be of any help.
-
AuthorPosts
- You must be logged in to reply to this topic.