• Resolved robnicholson

    (@robnicholson)


    I’ve just added Memphis to a client’s site and it’s not working. When one adds a document, it simply throws you back to the dashboard and the file isn’t uploaded.

    However, I suspect that they may have tried a very old version in the past and some of that is lingering. At first it wouldn’t install because there was already a memphis-documents-library in plugins. I renamed this as .bak which allows Memphis to at least install.

    I’ve tried uninstalling and checking the Memphis folders in uploads and plugins are not there but no joy.

    Does Memphis put something in the database? Extending the schema? Is it worth deleting those by PhpAdmin (this is all backed up BTW)? Or are there some instructions on completely removing Memphis?

    The page I need help with: [log in to see the link]

Viewing 15 replies - 16 through 30 (of 34 total)
  • Plugin Author bhaldie

    (@bhaldie)

    hmm okay so it has to do with some from .10 and above

    narrowing it down.

    Plugin Author bhaldie

    (@bhaldie)

    im looking at my change logs, one thing you can try is update back to the latest version 3.10.8 then open the mdocs-upload.php file and goto line 537 and remove the line:

    
    <?php wp_nonce_field( 'mdocs-upload-file-action', 'mdocs-upload-file-field' ); ?>
    

    that’s is the only difference in the submit form from version 9 to 10.

    3.9 works but 3.9.20 doesn’t. I will set you up as a user so you can poke around, I just need your email.

    Plugin Author bhaldie

    (@bhaldie)

    Unfortunately u can use those versions they have security issues. I would prefer not to have access to your site don’t want to break something

    OK, found the line, commented out, still get the error. Edited again, removed the line completely, same error. Put the line back the way it was. So this happened somewhere between 2.9 and 2.9.20. I can try to narrow that down a little more if it’s useful to you.

    Plugin Author bhaldie

    (@bhaldie)

    it looks like it is an inline style of your theme, maybe located in the header or footer.

    sorry wrong post.

    • This reply was modified 4 years, 6 months ago by bhaldie.

    OK, I zeroed in on this. Version 3.9.5 works, 3.9.6 doesn’t work so it’s something that changed in that time frame. We would have been running an older version of mDocs because the PHP on the server was out of date and we couldn’t update anything else. This bug has been hiding for awhile now I’d say.

    Any progress on this?

    Plugin Author bhaldie

    (@bhaldie)

    still looking.

    Plugin Author bhaldie

    (@bhaldie)

    okay looking at the old version can you try something:

    open the file mdocs-upload.php head to line 536 looks like this:

    
    <form class="form-horizontal" enctype="multipart/form-data" action="<?php the_permalink(); ?>" method="POST" id="mdocs-add-update-form">
    

    try changing it to this:

    
    <form class="form-horizontal" enctype="multipart/form-data" action="<?php echo $the_permalink; ?>" method="POST" id="mdocs-add-update-form">
    
    Plugin Author bhaldie

    (@bhaldie)

    looking into it more that probably won’t work, try this instead:

    starting at line 524:
    OLD

    
    if(isset($post->ID)) {
        $redirect = get_option('mdocs-frontend-upload-redirect');
        if($redirect == 0) $the_permalink = get_permalink($post->ID);
        else $the_permalink = '';
    } else $the_permalink = 'admin.php?page=memphis-documents.php&mdocs-cat=';
    

    NEW

    
    if(isset($post->ID)) {
    $redirect = get_option('mdocs-frontend-upload-redirect');
        if($redirect == 0) $the_permalink = get_permalink($post->ID);
        else $the_permalink = '';
        $is_admin = false; // NEW LINE
    } else { // NEW LINE
        $the_permalink = 'admin.php?page=memphis-documents.php';
        $is_admin = true; // NEW LINE
    } //NEW LINE
    
    • This reply was modified 4 years, 6 months ago by bhaldie.
    • This reply was modified 4 years, 6 months ago by bhaldie.

    You were right, it didn’t work. Do you want me to restore the original line 536 or leave the change?

    Plugin Author bhaldie

    (@bhaldie)

    restore it please

    OK, that works if the ‘Redirect is blank’ is ticked in settings. Looks good, I’ll run through it a few more times to be sure.

    Plugin Author bhaldie

    (@bhaldie)

    that is what I expected good to hear, let me know if everything is okay and I will make it a bug fix for the next version of mDocs.

Viewing 15 replies - 16 through 30 (of 34 total)
  • The topic ‘Unable to add documents’ is closed to new replies.