I experience a problem using xyz-shortcodes added to a page.
When the page has been autosaved automatically then the page in the gutenberg editor as well as the real page will present “Fatal error: Cannot redeclare…” where … is Class or function.
When I disable the snippet or the plugin I can access the page in the editor. If I then remove the autosaved page, reenable the snippet the page will load perfectly in the editor and the real page.
I already increased the autosave timeout to 1 day and hoped that this would resolve my problem. But when I press preview in the editor, the page is autosaved and the script will fail again. Hence I’m stuck in a not workable situation.
In some way the script appears to be run twice when a page is autosaved.
If this post is in the wrong location then pleas point me to the correct location.
- The topic ‘Autosave of pages causes “Fatal error: Cannot redeclare… “’ is closed to new replies.