Tagged: ,

Viewing 16 posts - 1 through 16 (of 16 total)
  • Author
    Posts
  • #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.

    View post on imgur.com

    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?

    #1074555

    Hi,

    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.

    #1074644

    Same problem for me for 2 differents websites.

    Workaround: Create new widget. Add you pdf link in widget. Add the widget in the page…

    #1074776

    @eroberge

    Thank you for your reply. I added a widget area and it worked first time. Brilliant. I’ve spent hours on this.

    Ok Enfold. That’s two of my sites and two for @eroberge who has a workaround in place. There is something odd going on here.

    Digital Essence

    #1075141

    Hi,

    Yes, we will be checking further into that :)

    Best regards,
    Basilis

    #1076426

    Hi,

    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.

    http://osso.digitalessence.net

    #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.

    #1077438

    More 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.

    #1078500

    Hi,
    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,
    Mike

    #1078741

    Hi 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.

    #1078984

    Hi,
    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,
    Mike

    #1079484
    This reply has been marked as private.
    #1079678

    Hi,
    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,
    Mike

    #1079986

    Hi,

    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.

    #1080142

    Hi,
    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,
    Mike

    #1080332

    Hi Mike,

    yes please close this ticket. The issue is resolved with the partial release.

    Thanks for your help.

Viewing 16 posts - 1 through 16 (of 16 total)
  • You must be logged in to reply to this topic.