WordPress.org

Ready to get started?Download WordPress

Forums

Download Monitor
1.4.1 Warnings ... (11 posts)

  1. mapdi
    Member
    Posted 6 months ago #

    If i update from Version 1.3.2 to Version 1.4.1, i always get this warning in some of my DL-Links (download disappears) and in the backend.

    Could this be a server issue of my hoster?

    I rolled back to Version 1.3.2 everything works fine, again ...

    http://wordpress.org/plugins/download-monitor/

  2. mikejolley
    Member
    Plugin Author

    Posted 6 months ago #

    I've found the cause; patching in 1.4.2

  3. mapdi
    Member
    Posted 6 months ago #

    Thanks, but there seems to be still an issue. I still get the following warnings:

    Warning: hash_file() [function.hash-file]: Filename cannot be empty in /var/www/www.example.com/wp-content/plugins/download-monitor/download-monitor.php on line 629

    Warning: hash_file() [function.hash-file]: Filename cannot be empty in /var/www/www.example.com/wp-content/plugins/download-monitor/download-monitor.php on line 630

    Warning: hash_file() [function.hash-file]: Filename cannot be empty in /var/www/www.example.com/wp-content/plugins/download-monitor/download-monitor.php on line 631

    Warning: Cannot modify header information - headers already sent by (output started at /var/www/www.example.com/wp-content/plugins/download-monitor/download-monitor.php:629) in /var/www/www.example.com/wp-content/plugins/download-monitor/includes/class-dlm-download-handler.php on line 180

    Warning: Cannot modify header information - headers already sent by (output started at /var/www/www.example.com/wp-content/plugins/download-monitor/download-monitor.php:629) in /var/www/www.example.com/wp-content/plugins/download-monitor/includes/class-dlm-download-handler.php on line 190

    ---

    Warning: hash_file() [function.hash-file]: Filename cannot be empty in /var/www/www.example.com/wp-content/plugins/download-monitor/download-monitor.php on line 629

    Warning: hash_file() [function.hash-file]: Filename cannot be empty in /var/www/www.example.com/wp-content/plugins/download-monitor/download-monitor.php on line 630

    Warning: hash_file() [function.hash-file]: Filename cannot be empty in /var/www/www.example.com/wp-content/plugins/download-monitor/download-monitor.php on line 631

    Rolled back to Version 1.3.2 again.

  4. user0509
    Member
    Posted 6 months ago #

    same problem please reply, it works fine on localhost but shows so many warning on live site

  5. owcv
    Member
    Posted 6 months ago #

    I've found the cause; patching in 1.4.2

    I've checked the Changelog for that, but I'm not sure if just the bug is patched or also the bugs it caused?

    Because if I upgrade from 1.3.2 to 1.4.2 directly everything works fine, but if I upgrade step by step from 1.3.2 to 1.4.0 to 1.4.1 I get these PHP Warnings...

    What does the "Fix for site_url -> abspath" exactly do? Does ist any permission change or something else that could lead to these warnings?

    And what about "the hash functions"? Are they written in the database?

  6. Johan van der Wijk
    Member
    Posted 6 months ago #

    I have the same issue as mapdi, downgrading to 1.40 fixed this.

  7. mapdi
    Member
    Posted 6 months ago #

    @Johan van der Wijk
    Look in your Media Library and compare it with the downloads which outputs the warnings. In my case all of the downloads were not listed anymore in my Media Library. Maybe this affected the problem during updating to the newest Version. This worked for me ...

  8. ajua
    Member
    Posted 6 months ago #

    The problems is still present on 1.4.2. The only version I can use that doesn't show error or warnings when clicking download links is 1.3.2.

    My context: I have manual entries for all the download files in my site so I don't use the upload function (I upload my files via FTP) of this plugin.

    Can the author please look into this?

  9. jamespro
    Member
    Posted 6 months ago #

    I get these messages in the back-end. Only for some files though. Some of the time they occur on days where we have uploaded a lot of files if that is any help.

    Warning: hash_file(/wp/wp-content/uploads/ASDF.pdf) [function.hash-file]: failed to open stream: No such file or directory in /home4/example/public_html/wp/wp-content/plugins/download-monitor/download-monitor.php on line 629

    Warning: hash_file(/wp/wp-content/uploads/ASDF.pdf) [function.hash-file]: failed to open stream: No such file or directory in /home4/example/public_html/wp/wp-content/plugins/download-monitor/download-monitor.php on line 630

    Warning: hash_file(/wp/wp-content/uploads/ASDF.pdf) [function.hash-file]: failed to open stream: No such file or directory in /home4/example/public_html/wp/wp-content/plugins/download-monitor/download-monitor.php on line 631

  10. jamespro
    Member
    Posted 6 months ago #

    The errors always come in three at a time, with those three line numbers.

  11. jamespro
    Member
    Posted 6 months ago #

    I had the File URL as /wp/wp-content/uploads/ASDF.pdf

    BUT it works when I used

    http://www.example.com/wp/wp-content/uploads/ASDF.pdf

    ALSO works when using:

    /home4/example/public_html/wp/wp-content/uploads/ASDF.pdf

    So what is the best format to use?

Reply

You must log in to post.

About this Plugin

About this Topic

Tags

No tags yet.