Title: prod3v3loper's Replies | WordPress.org

---

# prod3v3loper

  [  ](https://wordpress.org/support/users/prodeveloper/)

 *   [Profile](https://wordpress.org/support/users/prodeveloper/)
 *   [Topics Started](https://wordpress.org/support/users/prodeveloper/topics/)
 *   [Replies Created](https://wordpress.org/support/users/prodeveloper/replies/)
 *   [Reviews Written](https://wordpress.org/support/users/prodeveloper/reviews/)
 *   [Topics Replied To](https://wordpress.org/support/users/prodeveloper/replied-to/)
 *   [Engagements](https://wordpress.org/support/users/prodeveloper/engagements/)
 *   [Favorites](https://wordpress.org/support/users/prodeveloper/favorites/)

 Search replies:

## Forum Replies Created

Viewing 15 replies - 1 through 15 (of 36 total)

1 [2](https://wordpress.org/support/users/prodeveloper/replies/page/2/?output_format=md)
[3](https://wordpress.org/support/users/prodeveloper/replies/page/3/?output_format=md)
[→](https://wordpress.org/support/users/prodeveloper/replies/page/2/?output_format=md)

 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[MelAbu WP Download Counter Button] counter starts with 0 for new user](https://wordpress.org/support/topic/counter-starts-with-0-for-new-user/)
 *  Plugin Author [prod3v3loper](https://wordpress.org/support/users/prodeveloper/)
 * (@prodeveloper)
 * [6 years, 12 months ago](https://wordpress.org/support/topic/counter-starts-with-0-for-new-user/#post-11543904)
 * Hi [@msupriya](https://wordpress.org/support/users/msupriya/),
 * first thanks for your feedback.
 * I need more information like a screenshot of your shortcode so I can reproduce
   it, or a link to the built-in page would help me first.
 * I hope I can help you then if you still need help.
 * Best regards
    prod3v3loper
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[MelAbu WP Download Counter Button] Gray Button with lots of spacing after button](https://wordpress.org/support/topic/gray-button-with-lots-of-spacing-after-button/)
 *  Plugin Author [prod3v3loper](https://wordpress.org/support/users/prodeveloper/)
 * (@prodeveloper)
 * [7 years, 9 months ago](https://wordpress.org/support/topic/gray-button-with-lots-of-spacing-after-button/#post-10537301)
 * Hi [@fgorton](https://wordpress.org/support/users/fgorton/),
    and thanks for 
   your feedback, but I see you have already found another solution. If still further
   help should be necessary, simply write in again. The distance problem was there
   before, but it’s just a style distance, here’s more: [https://wordpress.org/support/topic/spacing-no-style-or-background-color-choices/](https://wordpress.org/support/topic/spacing-no-style-or-background-color-choices/)
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[MelAbu WP Download Counter Button] Does not work with WP 4.7.3](https://wordpress.org/support/topic/does-not-work-with-wp-4-7-3-2/)
 *  Plugin Author [prod3v3loper](https://wordpress.org/support/users/prodeveloper/)
 * (@prodeveloper)
 * [9 years, 2 months ago](https://wordpress.org/support/topic/does-not-work-with-wp-4-7-3-2/#post-8919433)
 * Cool, that pleases me, forget my rating not for the plugin 🙂
    The title is unfortunately
   not possible, only default for all. Is there any error message?
 * I just see that there is still a function with finfo in line 149 exchange but
   please these also.
 * From:
 *     ```
       /**
         * FILETYPE with url
         * @param type $fileurl
         * @return type
         */
         protected function get_type_by_url($fileurl) {
   
             $filecontent = file_get_contents($fileurl);
             $file_info = new finfo(FILEINFO_MIME_TYPE);
             $type = $file_info->buffer($filecontent);
   
             return $type;
         }
       ```
   
 * To:
 *     ```
       /**
         * FILETYPE with url
         * @param type $fileurl
         * @return type
         */
         protected function get_type_by_url($fileurl) {
   
             $type = '';
             if (function_exists('mime_content_type')) {
                 $type = mime_content_type("$fileurl");
             }
   
             return $type;
         }
       ```
   
 * And please post nevertheless if there are error messages in the debug.log
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Melabu WP Sharing Social Safe] Popup Warning](https://wordpress.org/support/topic/popup-warning/)
 *  Plugin Author [prod3v3loper](https://wordpress.org/support/users/prodeveloper/)
 * (@prodeveloper)
 * [9 years, 2 months ago](https://wordpress.org/support/topic/popup-warning/#post-8919379)
 * Hi [@mathishuettl](https://wordpress.org/support/users/mathishuettl/),
 * i hope the new version now meets your requirement and if it is so we would be
   pleased about a rating 🙂
 * Have fun with the plugin.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[MelAbu WP Download Counter Button] Does not work with WP 4.7.3](https://wordpress.org/support/topic/does-not-work-with-wp-4-7-3-2/)
 *  Plugin Author [prod3v3loper](https://wordpress.org/support/users/prodeveloper/)
 * (@prodeveloper)
 * [9 years, 2 months ago](https://wordpress.org/support/topic/does-not-work-with-wp-4-7-3-2/#post-8919340)
 * Ok, thank you, so I would not be faster with email and here it can help others
   also in the short term if they have the same problem.
 * It looks as if finfo is not activated with you, but you could activate it:
    [Activate finfo](http://stackoverflow.com/questions/3579072/php-fileinfo-is-undefined-function)
 * Or replace the code in `/home/******/public_html/wp-content/plugins/download-
   counter-button/classes/class.MelibuDownloaderAbstract.php` line 133 by the other
   function.
 * From:
 *     ```
       /**
        * FILETYPE with path
        * @param type $filepath
        * @return type
        */
        protected function get_type_by_path($filepath) {
   
            $finfo = finfo_open(FILEINFO_MIME_TYPE); // return mime type ala mimetype extension
            $type = finfo_file($finfo, $filepath);
            finfo_close($finfo);
   
            return $type;
        }
       ```
   
 * To:
 *     ```
       /**
        * FILETYPE with path
        * @param type $filepath
        * @return type
        */
        protected function get_type_by_path($filepath) {
   
            $type = '';
            if (function_exists('mime_content_type')) {
                $type = mime_content_type($filepath);
            }
   
            return $type;
        }
       ```
   
 * I think this should work, so you do not have to touch the php.ini
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[MelAbu WP Download Counter Button] Does not work with WP 4.7.3](https://wordpress.org/support/topic/does-not-work-with-wp-4-7-3-2/)
 *  Plugin Author [prod3v3loper](https://wordpress.org/support/users/prodeveloper/)
 * (@prodeveloper)
 * [9 years, 2 months ago](https://wordpress.org/support/topic/does-not-work-with-wp-4-7-3-2/#post-8919115)
 * Ok thank you, that seems to be all right.
 * Can you add the following in the `wp-config.php`:
 *     ```
       Define ('WP_DEBUG', true);
       Define ('WP_DEBUG_LOG', true);
       Define ('WP_DEBUG_DISPLAY', false);
       ```
   
 * This causes the error to be logged into a log file named `debug.log` and prevents
   it from appearing after you have inserted that into the `wp-config.php`, go to
   the page where the button is included and update this page once . Then the file
   would have to be created and the error or the errors are then there, the `debug.
   log` is then found in the `wp-content` folder.
 * Please post this content here. However, make your server root unrecognizable 
   something like `/var/www/host/wp-content/...` to `/xxx/xxx/xxx/wp-content/...`
   but leave the rest inside of the path something like `/wp-content/plugins/download-
   counter-button`
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[MelAbu WP Download Counter Button] Does not work with WP 4.7.3](https://wordpress.org/support/topic/does-not-work-with-wp-4-7-3-2/)
 *  Plugin Author [prod3v3loper](https://wordpress.org/support/users/prodeveloper/)
 * (@prodeveloper)
 * [9 years, 2 months ago](https://wordpress.org/support/topic/does-not-work-with-wp-4-7-3-2/#post-8918443)
 * Hi [@aviatorbimmer](https://wordpress.org/support/users/aviatorbimmer/),
 * with the environment I mean on what server or webspace it runs, e.g. Linux or
   Windows, then which PHP version (With most hosters one can adjust the PHP version
   in the account itself or look up).
 * I use PHP 7 on my Linux server and develop it with a environment with PHP 5.6,
   with me it works everywhere and with 100 others synonymous, so it must be something
   else. To find out I need your help, since I can not access your server. I need
   the best error messages, but the first thing would be synonymous to me the short
   code that you write in the editor.
 * Please post here but once your short code.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[MelAbu WP Download Counter Button] Does not work with WP 4.7.3](https://wordpress.org/support/topic/does-not-work-with-wp-4-7-3-2/)
 *  Plugin Author [prod3v3loper](https://wordpress.org/support/users/prodeveloper/)
 * (@prodeveloper)
 * [9 years, 2 months ago](https://wordpress.org/support/topic/does-not-work-with-wp-4-7-3-2/#post-8910054)
 * Hi [@aviatorbimmer](https://wordpress.org/support/users/aviatorbimmer/),
    and
   thank you for your feedback, however, this can be not only on the plugin itself
   but also in the environment on which the plugin runs. If you want, I can help
   you, if so please post your shortcode here. And we continue to see, hope could
   help first.
 * Best regards
    Developer
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Melabu WP Sharing Social Safe] Popup Warning](https://wordpress.org/support/topic/popup-warning/)
 *  Plugin Author [prod3v3loper](https://wordpress.org/support/users/prodeveloper/)
 * (@prodeveloper)
 * [9 years, 2 months ago](https://wordpress.org/support/topic/popup-warning/#post-8891118)
 * Hi [@mathishuettl](https://wordpress.org/support/users/mathishuettl/),
 * thank you for your feedback. The pop up is intended for this purpose, but it 
   is not so easy for the browsers, because usually pop-up windows are blocked. 
   MeliBu WP SSS is therefore set so that it checks if Pop ups are blocked, if this
   is the case then leads it further so that the blocked pop up is bypassed.
 * In the upcoming version, Two settings with which this can be controlled.
 * In order to test the pop up you have to allow pop-ups in your browser, otherwise
   the browser will always block it and the desired result will not be achieved.
 * The browser window may not be full size on a Mac, because then the popup will
   not function as desired, but only open a new tab.
 * As I said in the new coming version, the settings are provided, the rest is on
   the user and the browser.
 * The new version should be released this week.
 * If there are any questions, please feel free to ask.
 * Best Regards
    Developer
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[MelAbu WP Download Counter Button] Upload and download don’t work](https://wordpress.org/support/topic/upload-and-download-dont-work/)
 *  Plugin Author [prod3v3loper](https://wordpress.org/support/users/prodeveloper/)
 * (@prodeveloper)
 * [9 years, 3 months ago](https://wordpress.org/support/topic/upload-and-download-dont-work/#post-8731893)
 * Hi, and thanks for your reply.
 * As I can see, your path has not been properly determined and compiled traffic.
 * I can help you fix the problem however I need your help for it.
 * With you is the first problem of the slash at the beginning:
    `/C:\xampp\htdocs\
   wordpress/wordpress/wp-content/uploads/2017/01/Hallelujah-Karaoke-HD-In-the-style-
   of-Alexandra-Burke.mp3`
 * Then these more slashes are backslahes:
    `C:\xampp\htdocs\wordpress`
 * And here it is normal slashes:
    `/wp-content/uploads/2017/01/Hallelujah-Karaoke-
   HD-In-the-style-of-Alexandra-Burke.mp3`
 * So that I can fix the error, please do the following:
    - Open the download-counter-button folder either in the WP editor under Design-
      > Editor or under `wp-content/plugins/download-counter-button`
    - Open in `classes/class.MelibuDownloaderAbstract.php`
    - On line 79, `protected function parse_url_to_path ($ url, $ absolutepath) {`
      
      You find this function
    - Write this down as follows:
    -     ```
          /**
            * GET PATH
            * @param type $url
            * @param type $absolutepath
            * @return string
            */
            protected function parse_url_to_path($url, $absolutepath) {
      
                $arr = parse_url($url);
                $thinpart = str_replace(filter_input(INPUT_SERVER, "DOCUMENT_ROOT"), '', $absolutepath);
      
                //  Please do the following and, as I have done, these four echos with these variables. 
      
                // ECHO 1
                echo $thinpart . '<br>';
      
                // ECHO 2
                echo $absolutepath . '<br>';
      
                $thinparter = str_replace($thinpart, '', $absolutepath);
      
                // ECHO 3
                echo $thinparter;
      
                if ($thinpart == $absolutepath) {
                    $fullfilepath = '/' . trim($absolutepath, '/') . $arr['path'];
                } else {
                    $fullfilepath = $thinparter . $arr['path'];
                }
      
                // ECHO 4
                echo $fullfilepath;
      
                return $fullfilepath;
          }
          ```
      
    - post here then from the output
 *  -  This reply was modified 9 years, 3 months ago by [prod3v3loper](https://wordpress.org/support/users/prodeveloper/).
    -  This reply was modified 9 years, 3 months ago by [prod3v3loper](https://wordpress.org/support/users/prodeveloper/).
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[MelAbu WP Download Counter Button] Button Pages Not loading, After moving site within same server](https://wordpress.org/support/topic/button-pages-not-loading-after-moving-site-within-same-server/)
 *  Plugin Author [prod3v3loper](https://wordpress.org/support/users/prodeveloper/)
 * (@prodeveloper)
 * [9 years, 4 months ago](https://wordpress.org/support/topic/button-pages-not-loading-after-moving-site-within-same-server/#post-8639992)
 * Hi, Have you moved the website into another WebSpace or the domain only changed?
   If WebSpace moved, you might have a different PHP version running on the WebSpace?
 * I think it is due to your PHP version or the URLs stored in the database.
 * You can delete the database by deleting the plugin (THEN ARE ALL DATA DELETED),
   you can reinstall it, which should be located at the URLs in the database, fix
   the error and you can restore the plugin as desired The new domain.
 * I hope could help first.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[MelAbu WP Download Counter Button] Upload and download don’t work](https://wordpress.org/support/topic/upload-and-download-dont-work/)
 *  Plugin Author [prod3v3loper](https://wordpress.org/support/users/prodeveloper/)
 * (@prodeveloper)
 * [9 years, 4 months ago](https://wordpress.org/support/topic/upload-and-download-dont-work/#post-8639884)
 * Hi, I will gladly continue to help you, but these are too little to give, so 
   I can understand your error message. Can you still post your shortcode here? 
   Then I can example to see which file type you use.
 * The error that is seen with you, is not the actual error. But as far as I can
   see was or could the file not be found.
 * This error in line 355 you can change in which you the:
    `trigger_error('...',
   E_WARNING);` Rename in: `trigger_error('...',E_USER_WARNING);`
 * Then you get the actual error message.
 * Hope could first help.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[MelAbu WP Download Counter Button] Spacing, no style or background color choices](https://wordpress.org/support/topic/spacing-no-style-or-background-color-choices/)
 *  Plugin Author [prod3v3loper](https://wordpress.org/support/users/prodeveloper/)
 * (@prodeveloper)
 * [9 years, 6 months ago](https://wordpress.org/support/topic/spacing-no-style-or-background-color-choices/#post-8380132)
 * No problem, do not forget my stars 🙂
    Thanks for the screenshot, the links, 
   your shortcode and your help
 * You have an exe file to the download selected, because you did not send the actual
   link before I could not test it. So I had a jpg file to test selected because
   ran it, now I have it fixed, now it would have to work with any file type.
 * Here is a screenshot have it tested error free now and it aired, hope could help
   you.
    ⌊application/x-msdos-program⌉
 * In the next `v.1.8.6.3` or higher the correct data will be displayed, much fun
   with the next version.
 * **TIP:** And please use in the short code no `instance` starting with `0` `instance
   ="0xxx"` (bad), i have it in a screenshot but with zero starting instance are
   error prone, better starting with `1` `instance="1xxx"` (good).
 * Best regards
    -  This reply was modified 9 years, 6 months ago by [prod3v3loper](https://wordpress.org/support/users/prodeveloper/).
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[MelAbu WP Download Counter Button] Spacing, no style or background color choices](https://wordpress.org/support/topic/spacing-no-style-or-background-color-choices/)
 *  Plugin Author [prod3v3loper](https://wordpress.org/support/users/prodeveloper/)
 * (@prodeveloper)
 * [9 years, 6 months ago](https://wordpress.org/support/topic/spacing-no-style-or-background-color-choices/#post-8376032)
 * So with me your shortcode creates an error, I do not know if you have WP_DEBUG
   on, if not the errors are not shown to you.
 * `Notice: Undefined index: instance in /wp-content/plugins/download-counter-button/
   classes/class.MelibuFrontend.php on line 260`
 * Your shortcode:
    `[wp_mb_plugin_download instance=”1″ name="Download" datetime
   ="29.10.2016" other="v1.2"]https://www.dropbox.com/s/xxxxx/TORG-Setup.exe[/wp_mb_plugin_download]`
 * `instance=”1″` Here you have two different quotes, that could cause the error.`”`/`″`
   These are not WP editor quotes.
 * `name="Download"` And here you have the right quotes, which come in the WP editor
   when you type. `"` The right quote.
 * Please try:
    `[wp_mb_plugin_download instance="1" name="Download" datetime="29.10.2016"
   other="v1.2"]https://www.dropbox.com/s/xxxxx/TORG-Setup.exe?dl=1[/wp_mb_plugin_download]`
 * And for DropBox downloads please, check here:
    [doesnt-work-with-dropbox-links](https://wordpress.org/support/topic/doesnt-work-with-dropbox-links/#post-8282671)
 * Try it with the right quotes if it still spits the same error then sign up again
   and I help you.
 * Best regards
    -  This reply was modified 9 years, 6 months ago by [prod3v3loper](https://wordpress.org/support/users/prodeveloper/).
    -  This reply was modified 9 years, 6 months ago by [prod3v3loper](https://wordpress.org/support/users/prodeveloper/).
    -  This reply was modified 9 years, 6 months ago by [prod3v3loper](https://wordpress.org/support/users/prodeveloper/).
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[MelAbu WP Download Counter Button] Spacing, no style or background color choices](https://wordpress.org/support/topic/spacing-no-style-or-background-color-choices/)
 *  Plugin Author [prod3v3loper](https://wordpress.org/support/users/prodeveloper/)
 * (@prodeveloper)
 * [9 years, 6 months ago](https://wordpress.org/support/topic/spacing-no-style-or-background-color-choices/#post-8373905)
 * Not for that, gladly, I have to thank for your feedbacks, I would be glad about
   a review, if you leave one behind 🙂
 * So with the label and quotes I did not quite understand why you quotes in there
   have in the display and there are no blank spaces in the label name?
 * Can you possibly make a screenshot, then I could make a better picture. You can
   upload a picture on a free platform and embed it so you can see the image, because
   underlined are not the meaning, it should work without underscores wei with me
   also, if I understood you correctly.
 * No type/size I have now fixed for files which are attached by remote, in the 
   next version `v.1.8.6.2` they will determine from dropbox or any platform, it
   is the it is a donwloadable file.
 * Best regards

Viewing 15 replies - 1 through 15 (of 36 total)

1 [2](https://wordpress.org/support/users/prodeveloper/replies/page/2/?output_format=md)
[3](https://wordpress.org/support/users/prodeveloper/replies/page/3/?output_format=md)
[→](https://wordpress.org/support/users/prodeveloper/replies/page/2/?output_format=md)