• Resolved alriknijdam

    (@alriknijdam)


    Hi there,

    First of all thanks for creating this plugin!

    When I go to option > allowed file types and remove certain file types I have no option to save those settings. I thought they might save automatically, but when I visit that page again all file types are back.

    When I try to upload a file that shouldn’t be supported it does upload and show in the list, but when I go to preview it, it says ‘Sorry the file type you are trying to preview is unsupported.’ (that’s correct ofcourse, but I also don’t want them to upload in the first place.)

    Also when uploading I get an error: An Error has occured on line 320 of the mdocs-functions.php file. I looked it up and it’s this part $upload_dir = wp_upload_dir();
    This error started after I tried to disallow certain file types, before I did that there was no error (and I made no other changes).

    Can you please help me to fix these issues?

    Best regards,

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

    (@bhaldie)

    Just so I can rule it out, you are the Administrator of you site?

    Thread Starter alriknijdam

    (@alriknijdam)

    Yes I am, so if you need me to try something or supply you with more information you can ask πŸ™‚

    Plugin Author bhaldie

    (@bhaldie)

    First off, changes made to the file type list are saved automatically. So we should start there. Add a file or remove on with a browser inpector open and tell me if you see any javascript errors that occur.

    Thread Starter alriknijdam

    (@alriknijdam)

    No javascript error occur when I remove or add any file type.

    I do get a warning about my SSL certificate:

    The SSL certificate used to load resources from https://www.paypalobjects.com will be distrusted in M70. Once distrusted, users will be prevented from loading these resources. See https://g.co/chrome/symantecpkicerts for more information.

    I tried a couple of other pages and I only get this error when I go to Memphis documents.
    Might this be the cause?

    Plugin Author bhaldie

    (@bhaldie)

    no that should cause any issue, but I would look into that issue sounds like you need to renew your SSL cert to TLS 1.1 or higher.

    Try adding a file type like txt for example and then try to upload and view that file type. does that work?

    Thread Starter alriknijdam

    (@alriknijdam)

    Yes I’m going to look into it, I need to update it otherwise my site stops functioning after 20 july (I’m glad I found it out this way before it happened).

    I first removed the file type txt and then added it again to the allowed types.
    I made a text-file using notepad (ofcourse saving it as .txt) and uploaded it. Now it does upload just fine but I get the same error I was talking about in the first post:

    Memphis Error:
    An Error has occured on line 320 of the mdocs-functions.php file.

    Looking in the inspector while uploading it says this 3 times (under ‘no verbose’):

    [Violation] Forced reflow while executing JavaScript took … ms

    After that, when I choose to ‘Go to post’ I get the following message:

    Sorry the file type you are trying to preview is unsupported.

    I am able to share and download it. It’s a pitty but I don’t know if this has anything to do with it because pdf files are previewed like aspected.

    BTW, thanks for the effort and responses!

    Plugin Author bhaldie

    (@bhaldie)

    Sorry the file type you are trying to preview is unsupported. is Normal for txt file… they are unsupported in preview. the only documents that preview works for is PDF. If you are looking for more options when it comes to preview I would recommend using the BOX preview found in the mDocs settings.

    supported file types:
    https://ww.wp.xz.cn/plugins/memphis-documents-library/#supported%20documents%20types%20using%20local%20preview

    • This reply was modified 8 years, 1 month ago by bhaldie.
    Thread Starter alriknijdam

    (@alriknijdam)

    That’s what I already thought.

    I just discovered something way worse. Memphis documents is blocking my abillity to upload files directly te the wordpress media library. It says the file type isn’t alowed for security reasons.
    When I disable Mephis documents I can upload just fine, but as soon as I disable it the problem is back.

    Plugin Author bhaldie

    (@bhaldie)

    Memphis is using the WordPress file restrictions. So for example if you remove docx from the list in mDocs this will also remove the ability to upload to the WordPress media area as well.

    When you disable mDocs you are reverting back to WordPress default settings.

    Thread Starter alriknijdam

    (@alriknijdam)

    Is it an idea to seperate memphis documents and wordpress’s file restriction in a future update?

    Plugin Author bhaldie

    (@bhaldie)

    there is no plans, file restrictions will always use the default WordPress methodology I am not going to create my own way of doing thing when WordPress handles it for me.

    Cheers πŸ™‚

Viewing 11 replies - 1 through 11 (of 11 total)

The topic ‘Allowed file types not saving + error’ is closed to new replies.