• Resolved Jasper

    (@lucydog)


    Hello,

    I just updated from version 3.9.12, and now I can’t save posts that have the shortcode in them.

    For example,
    Create new post.
    Use shortcode [mdocs single-file=”1374″ ]

    If you click Save Draft, Preview or Publish, it prompts you to try to save the file to your PC (in my case it was a PDF). It won’t save the post.

    The Folder shortcode works fine. Displays of existing posts with single files that use the shortcode appears to be fine.

    This still happens if I deactivate all the other plugins.

    This site is behind a password but I can send it to you.

    Thanks.

Viewing 10 replies - 1 through 10 (of 10 total)
  • Plugin Author bhaldie

    (@bhaldie)

    try clearing your browser cache.

    Thread Starter Jasper

    (@lucydog)

    Clearing my browser cache didn’t fix it. I went into a completely different browser logged in under a different username, and repeated the problem in the other browser.

    Plugin Author bhaldie

    (@bhaldie)

    hmm very weird… not sure why that would do that. do the other shortcode work>

    Thread Starter Jasper

    (@lucydog)

    Yes, inserting a folder shortcode works. The problem is that it’s trying to open or save the file itself.

    Plugin Author bhaldie

    (@bhaldie)

    doesn’t make any sense, its only a shortcode at that point. It has not file association. I’ve tried on ever browser on my own dev servers and can’t recreate this issue.

    Thread Starter Jasper

    (@lucydog)

    It happens in Twentyseventeen theme also.

    If I cut and paste the shortcode into a post and save the post, as in
    [mdocs single-file=”873″ ]

    It works normally.

    If I use the shortcode button in the editor, it doesn’t work. It tries to download the file to my PC and hangs.

    Notice there is an extra space after the “. I don’t know if that is intentional? The older posts I created with the shortcode button that worked also have that extra space though.

    Plugin Author bhaldie

    (@bhaldie)

    okay I’ve found the issue, to fix it open the file mdocs-shortcodes.php and add the following.

    to line 65:

    
    <form name="mdocs-insert-shortcode-form" class="mdocs-insert-shortcode-form" method="post">
    

    to line 93:

    
    </form>
    

    to line 107:

    
    <form name="mdocs-insert-shortcode-form" class="mdocs-insert-shortcode-form" method="post">
    

    to line 119:

    
    </form>
    
    Thread Starter Jasper

    (@lucydog)

    Great! Thanks so much! Will this be on a new release?

    Plugin Author bhaldie

    (@bhaldie)

    this is a quick fix, unfortunately it will break other plugin eg “My Calendar”

    I will have to find a better solution for the next version but for now this will work for you.

    Thread Starter Jasper

    (@lucydog)

    Thanks. This fixed the issue. I will let you know if there are any other issues.

Viewing 10 replies - 1 through 10 (of 10 total)
  • The topic ‘unable to save pages with mdocs single-file shortcode’ is closed to new replies.