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

    (@bhaldie)

    Looks to be an issue with connect to my site, which holds the list of know bots.. I may need to change the way this works and not host it there. For some reason some people lose access to my site…. Stupid GoDaddy!!!

    Thread Starter joe_halloran

    (@joe_halloran)

    Thanks for fixing this. It now works perfectly.
    Joe

    Thread Starter joe_halloran

    (@joe_halloran)

    Hi,

    I keep getting the error above when I try to download documents. Not every time, but consistently enough to make it a problem for my users.

    Is there a more permanent fix to this problem?

    Thanks,

    Joe

    Plugin Author bhaldie

    (@bhaldie)

    You can try and edit this file mdocs-functions.php starting at line 358.

    from this:

    function mdocs_is_bot() {
    	$upload_dir = wp_upload_dir();
    	$bots = strip_tags(file_get_contents(MDOCS_ROBOTS));
    	$bots = explode('|:::|',$bots);
    	foreach($bots as $bot) {
            if ( stripos($_SERVER['HTTP_USER_AGENT'], $bot) !== false && $bot != 'via docs.google.com') return true;
        }
    	return false;
    }

    to this:

    function mdocs_is_bot() {
    /*
    	$upload_dir = wp_upload_dir();
    	$bots = strip_tags(file_get_contents(MDOCS_ROBOTS));
    	$bots = explode('|:::|',$bots);
    	foreach($bots as $bot) {
            if ( stripos($_SERVER['HTTP_USER_AGENT'], $bot) !== false && $bot != 'via docs.google.com') return true;
        }
    	return false;
    */
            return false;
    }

    Thread Starter joe_halloran

    (@joe_halloran)

    Thanks for the speedy reply. I will give it a go and let you know.
    Joe

    Plugin Author bhaldie

    (@bhaldie)

    Did this fix your issue?

    Thread Starter joe_halloran

    (@joe_halloran)

    Yes, much better now. No reported problems. Sorry for the delay in letting your know.

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Download documents not working’ is closed to new replies.