Tagged: 404, Update failed
-
AuthorPosts
-
February 28, 2019 at 1:17 pm #1072623
Hi,
I am trying to add a link to a pdf in a text block. The pdf exists and is available at: http://tweeddale.digitalessence.net/wp-content/uploads/Membership-Form/Tweeddale-Society-Membership-Form.pdf
I open and edit a text block and add a link eg:
<a href="http://tweeddale.digitalessence.net/wp-content/uploads/Membership-Form/Tweeddale-Society-Membership-Form.pdf">Click here to add your own text</a>
Save the text element and then update the page. At this point I instantly get a 404 error.
Returning to the page I can see the link has been stripped off the text. This only happens with a link to a pdf. A link to a website or image works fine.
I removed all of our plugins. No change. Removed our custom code in the functions.php and I now see different behaviour.
I have the following to disable the Gutenberg editor:// Disable Gutenberg Editor // Disable for posts add_filter('use_block_editor_for_post', '__return_false', 10); // Disable for post types add_filter('use_block_editor_for_post_type', '__return_false', 10);
If I disable this and again try to add a link to a pdf the page sits at updating and never saves. This only occurs when I add a link to a pdf. The same happens if I try to place the link in a Code Block as opposed to a Text Block.
So that’s me with no custom functions.php or style.css or shortcodes.
If I revert the site back to the Twenty Nineteen theme the issue is resolved.
I’ve tested this on another of my sites and I am seeing the same issue except a link to a pdf gives me “Updating Failed” when I press update when in Enfold.
In one instance I’m running WP 5.0.3 and the other 5.1. Both sites have Enfold 4.5.4
Before I spin up a dev site with Enfold and nothing else to test further. Can someone test to see if they are experiencing the same issue?
March 5, 2019 at 12:22 am #1074555Hi,
anyone have ideas about this?
I’ve removed my functions.php, style.css and shortcodes but still the problem persists. When adding a link to a pdf the page just sits at updating (when I have removed my functions.php file) or gives me a 404 error with functions.php present..
I have the same issue with the parent default barebones Enfold theme so it’s not any of my custom code.
March 5, 2019 at 5:16 am #1074644Same problem for me for 2 differents websites.
Workaround: Create new widget. Add you pdf link in widget. Add the widget in the page…
March 5, 2019 at 11:14 am #1074776March 5, 2019 at 11:15 pm #1075141Hi,
Yes, we will be checking further into that :)
Best regards,
BasilisMarch 8, 2019 at 5:38 pm #1076426Hi,
any news on this as I am seeing the same issue on another site and it is holding up production. we can’t link to any of the restaurants menus which are all pdfs.
March 9, 2019 at 12:50 pm #1076741@eroberge
By any chance, were the two sites you were having issues with subdomains?@Basilis
The site I was originally having issues with was a subdomain of my domain (tweeddale.digitalessence.net) and I have now migrated this to their live domain and linking to a pdf works.the other site I am having an issue with (http://osso.digitalessence.net) is also a sub-domain.
I can’t see how this would have any bearing on the issue but I thought it best to bring it to your attention in case it was a part of the jigsaw.
March 11, 2019 at 6:02 pm #1077438More information for you:
I’ve have a test page with a link to either an externally hosted or local pdf file and it works fine as long as I just have a full width column and a text block with the link.
I then tried loading a template of another page and as soon as I did this the page would not save. This is the same behaviour I was seeing before.
So far I can’t see which, if any of the elements in that template are causing the issue. If I remove everything then it saves. But pretty much every other element causes this issue.
March 14, 2019 at 4:14 am #1078500Hi,
Sorry for the late reply, I took a look at your page and I see that you are getting this error:Block validation: Block validation failed for
core/shortcode
Above you wrote that you have disabled the Gutenberg editor with a function, but this function seems to not be in place now, and if you disable the block editor with the option in the Enfold options this error above doesn’t occur.
The dev team has released a build that seems to solve some issues they have been working on, I could apply it to your site if you post your ftp access. Would you like for me to try that?
Best regards,
MikeMarch 14, 2019 at 4:19 pm #1078741Hi Mike,
If I use Gutenberg then the page just sits at saving and never actually saves.
If I disable Gutenberg either with that function or in Enfold under > Select your Editor then the page saves instantly but gives a 404.This is only with pdf links. Any other link, either image or website works fine.
I’ll sort out some FTP details to you and add to the ticket.
thanks.
March 15, 2019 at 4:38 am #1078984Hi,
Thank you, I will try to apply the fix when I see the ftp access. This is odd that it only happens with pdf links, I wonder if you used a link shortener to hide the “pdf” if that would work? Perhaps https://goo.gl/Best regards,
MikeMarch 16, 2019 at 7:29 pm #1079484This reply has been marked as private.March 17, 2019 at 5:59 pm #1079678Hi,
I know that you are not using a pdf link shortener, but I wondered if the error would still happen if you did use one, since this seems to only be happening to pdf links, just a thought.
Thank you for the FTP access, I renamed your current theme to “enfold-old” then I uploaded the new “enfold” and checked that your site is working correctly. Please also check for yourself.
Once you are happy you, (or I) can delete the “enfold-old” via ftp, (not the WP theme page)
Should for some reason you wish to roll-back to the old version, it’s easy to do, simply rename the new “enfold” to “enfold-new” via ftp and then rename “enfold-old” to “enfold” then refresh your page.It seems that I can add the pdf link and it saves, and it works on the front end now, please check for yourself.
Best regards,
MikeMarch 18, 2019 at 5:32 pm #1079986Hi,
sorry for the confusion about the link shortener.
I can confirm that the fix you have in place works and I am able to link to a pdf.
I was going to ask what has been changed but I ran a file compare and it’s quite a lot!
Thanks.
March 19, 2019 at 12:06 am #1080142Hi,
Glad we could help, this was only a partial of the next update :)
Unless there is anything else we can assist with on this issue, shall we close this then?Best regards,
MikeMarch 19, 2019 at 1:30 pm #1080332Hi Mike,
yes please close this ticket. The issue is resolved with the partial release.
Thanks for your help.
-
AuthorPosts
- You must be logged in to reply to this topic.