• Resolved nashaden

    (@nashaden)


    Hi,

    I’ve just installed your plugin and wanted to give it a quick try. I created my first download file, gave it a name and uploaded a pdf file. Upon the ‘publish’ button click i get:

    Warning: strpos(): Empty needle in /wp-content/plugins/download-monitor/src/FileManager.php on line 433

    When I got back to the admin area the file is there on the list and everything seems fine. I copied the shortcode for that file and pasted it on test page. The link is there but when I press it (both as admin and not) the file that gets downloaded is download.html.

    Here is the link to the test page: https://konferencje.nowa-energia.com.pl/przykladowa-strona/

Viewing 3 replies - 1 through 3 (of 3 total)
  • Hi @nashaden

    Thank you for writing to us.

    First, please ensure that you are using the latest version of the WPDM plugin.

    Also, is the error appearing only for PDF files or every other files as well and which please share the exact short code you are using?

    And, have you added the file using the server browser or from the media library?

    We are looking forward to hearing back from you.

    Regards

    Hi, I have the same problem. Also when trying to download the file it is downloading html with the same errors:

    Warning: strpos(): Empty needle in /wp-content/plugins/download-monitor/src/FileManager.php on line 433

    Warning: Cannot modify header information – headers already sent by (output started at /wp-content/plugins/download-monitor/src/FileManager.php:433) in /wp-content/plugins/download-monitor/src/DownloadHandler.php on line 433

    Warning: Cannot modify header information – headers already sent by (output started at /wp-content/plugins/download-monitor/src/FileManager.php:433) in /wp-content/plugins/download-monitor/src/DownloadHandler.php on line 899

    Warning: Cannot modify header information – headers already sent by (output started at /wp-content/plugins/download-monitor/src/FileManager.php:433) in /wp-content/plugins/download-monitor/src/DownloadHandler.php on line 900

    Warning: Cannot modify header information – headers already sent by (output started at /wp-content/plugins/download-monitor/src/FileManager.php:433) in /wp-content/plugins/download-monitor/src/DownloadHandler.php on line 901

    Warning: Cannot modify header information – headers already sent by (output started at /wp-content/plugins/download-monitor/src/FileManager.php:433) in /wp-content/plugins/download-monitor/src/DownloadHandler.php on line 903

    Plugin Contributor Shafaet Alam

    (@shafayat-alam)

    @difreo ,
    You’re using a different plugin, not this one.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘strpos() error’ is closed to new replies.