Nov 192015
 

WordPress Simple Download Monitor Troubleshooting post provides some of the most common questions asked in the support forum with the best answers provided.

Last Updated: November 16, 2017

WordPress Simple Download Monitor Tutorials

WordPress Simple Download Monitor Troubleshooting

This is a list of questions and answers to help you troubleshoot some of the most common questions asked by many users in the wordpress.org forum.


Q1 ) How do I force the download of the files, instead of displaying the files in the window (PDF, JPG…) without having to edit the .htaccess file?

Solution 1: The following URL Force a file to download instead of showing in the browser will help you. (Solution provided by Tips & Tricks HQ)

Solution 2: Make sure you enable the following option PHP Dispatch or Redirect.


Q2 ) I need to upload and offer downloading for some file format like MOBI, and/or EPUB files, but, apparently, I cannot upload (for security reasons!)?

Answer: The error message that you receive is set up in place by WordPress core. This is done to prevent hacking into your site and to increase the security. This warning has nothing to do with Simple Download Monitor plugin. You might like to check the following URL WordPress file type is not permitted for security reasons for a solution.

I have also added the code below from the URL mentioned above just in case one day the site goes down.

  1. Copy and paste the below line of code in wpconfig.php file of your WordPress installation:
    define('ALLOW_UNFILTERED_UPLOADS', true);

    Now go back to media library and try uploading the media that showed the error earlier before. If it gets uploaded successfully, you won’t need anything else. If it doesn’t, continue to the next step.

  2. Add the code below to the functions.php file of your WordPress theme and save the changes:
    add_filter('upload_mimes', 'pixert_upload_types');
    function pixert_upload_types($existing_mimes=array()){
     $existing_mimes['mp4'] = 'video/x-mp4';
     $existing_mimes['swf'] = 'video/x-swf';
     $existing_mimes['flv'] = 'video/x-flv';
     $existing_mimes['mid'] = 'audio/midi';
     return $existing_mimes;
    }

Q3 ) When I upload the file and click on save it does not save. How can I fix this?

Solution 1: Check the following Configure the PHP max_input_vars setting. These settings are sometimes available in the php.ini directive called max_input_vars.

Edit the server php.ini or in some cases you can add a secondary php.ini inside the account (domain) folder.

Configure the php.ini like this:
max_input_vars = 3000

You may need to do this via .htaccess (on a shared host for instance), use:
php_value max_input_vars 3000

Solution 2: Deactivate all your other plugins and try and upload your file again. If this works then you know there is a plugin conflict. Start enabling one by one your other plugins and carrying out a test until you find the conflicting plugin.


Q4 ) If you receive the following error message when the download button in clicked on your website.

Fatal error: Call to undefined function filter_var() in /home/sloboda1/folk-art.ru/docs/wp-content/plugins/simple-download-monitor/includes/sdm-utility-functions.php on line 70

Something wrong with your server. It is like your PHP version is TOO OLD.

It is saying that the filter_var() function doesn’t exist on your site.

The function “filter_var” is a standard PHP function that should be available on all recent PHP installs. See the documentation of this function from PHP website:
http://php.net/manual/en/function.filter-var.php

Ask your hosting provider what version of PHP they are using. If they are using anything older than PHP5.4 you should ask them to upgrade it (because that means they have given you a server with very old PHP version).

(The above quoted by mra13 in the forum)


Q5 ) I want to adjust some of the settings via CSS. What do I need to do?

Solution 1: The following URL CSS Tweaks for The WordPress Download Monitor Plugin provides you with a list of options that allow you to tweak some of the settings and display features.


I will be adding more questions and answers so keep coming back for the latest.

If you have a question please let me know.

Enjoy.

Manuel Ballesta RuizManuel Ballesta Ruiz is a web developer, Blogger and WordPress Enthusiast.

 Leave a Reply

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>

(required)

(required)