WordPress.org

Ready to get started?Download WordPress

Forums

Download Monitor
Download Monitor Not Working! (4 posts)

  1. olajideolaolorun
    Member
    Posted 1 year ago #

    I get this error when someone clicks on any download link.
    eg. ( http://www.kingola.com/downloads/52NIDPromoMix )

    Warning: Missing argument 2 for wpdb::prepare(), called in /home/olajideo/public_html/kingola/wp-content/plugins/download-monitor/download.php on line 208 and defined in /home/olajideo/public_html/kingola/wp-includes/wp-db.php on line 990
    
    Warning: Cannot modify header information - headers already sent by (output started at /home/olajideo/public_html/kingola/wp-includes/wp-db.php:990) in /home/olajideo/public_html/kingola/wp-content/plugins/download-monitor/download.php on line 543
    
    Warning: Cannot modify header information - headers already sent by (output started at /home/olajideo/public_html/kingola/wp-includes/wp-db.php:990) in /home/olajideo/public_html/kingola/wp-content/plugins/download-monitor/download.php on line 544
    
    Warning: Cannot modify header information - headers already sent by (output started at /home/olajideo/public_html/kingola/wp-includes/wp-db.php:990) in /home/olajideo/public_html/kingola/wp-content/plugins/download-monitor/download.php on line 545
    
    Warning: Cannot modify header information - headers already sent by (output started at /home/olajideo/public_html/kingola/wp-includes/wp-db.php:990) in /home/olajideo/public_html/kingola/wp-content/plugins/download-monitor/download.php on line 546
    
    Warning: Cannot modify header information - headers already sent by (output started at /home/olajideo/public_html/kingola/wp-includes/wp-db.php:990) in /home/olajideo/public_html/kingola/wp-content/plugins/download-monitor/download.php on line 547
    
    Warning: Cannot modify header information - headers already sent by (output started at /home/olajideo/public_html/kingola/wp-includes/wp-db.php:990) in /home/olajideo/public_html/kingola/wp-content/plugins/download-monitor/download.php on line 548
    
    Warning: Cannot modify header information - headers already sent by (output started at /home/olajideo/public_html/kingola/wp-includes/wp-db.php:990) in /home/olajideo/public_html/kingola/wp-content/plugins/download-monitor/download.php on line 549
    
    Warning: Cannot modify header information - headers already sent by (output started at /home/olajideo/public_html/kingola/wp-includes/wp-db.php:990) in /home/olajideo/public_html/kingola/wp-content/plugins/download-monitor/download.php on line 556
    
    Warning: Cannot modify header information - headers already sent by (output started at /home/olajideo/public_html/kingola/wp-includes/wp-db.php:990) in /home/olajideo/public_html/kingola/wp-content/plugins/download-monitor/download.php on line 559
    
    Warning: Cannot modify header information - headers already sent by (output started at /home/olajideo/public_html/kingola/wp-includes/wp-db.php:990) in /home/olajideo/public_html/kingola/wp-content/plugins/download-monitor/download.php on line 562
    PK§_A	Bang Bus/PK§_Ad¯÷6ã&t3&.Bang Bus/01 Icarus (Extended Mix) - Madeon.mp3œXToߪt)R"5€”Ð;„Þ	]1Ò	¡*"½	¡R¤ƒÂÿ(h•Ž -ˆ4tAAŠ Hñ¸~ïÞݽ»›·óö›of~3;;óö}kn¤€ÉÚÙÑÞÐòd>a”£¹£âÉ]ø„Í=ÝCÃñ¤qT˜w—·Â%…EX»{y_ rD[üÑý„ ܃|áxGŒ1ê/[–æ6¦[+´‹-ÚþD< ~aaÁšòò‘‘‘r¸ ß«WÜå<¯ÚZ[ŸèÏœ°wï¿1BcÌ ðïΝáÝ}½åýƒ}ðëͯ9€×8 çs’«¹4Àü~}8Â=¢=‘½N¶æ ÁÂ˹{]õðþ#¸|”{°ÝËÙó#6¸- ÷¿d¸ÔNt[zênFz«‡*EÝ´ç	6QãÞšf)~@ìô(U ¬_û[óâsº#Á]RÏÁkïràCT@×Y´‘ΔF¼QÖ‰›Žò¨tî%ò­š?9ö7$å,ÞµÌ)ßKÑï®Ç!8”öÜó˜x,ûJn¤—ä¥$jXÅ'g™t9zxŠËO:Ôþ‚ÕŠZC¬Y(¨fµÙólSÞLcÆï; VÌJR	9ç!Í@Æ2©vþuߨøùë{âù\O‘,Ô]3»I¹zw¶=¤W°1a’ûQ>’1ÛI4l°Jë ¤ð--þ~¾öñ,ôê,óc«RžJæ€$†ë¥ÈL+•…#õô¿hMi¾Ù¼ÖÓÆAçß8  ŒôvŸ3ƺ˜9F„o‚+Ì?ÕDQÎô¬˘¤]‘pS—¾úöÁT9Z\À"/óTÉXÝ
    SO‚´%ùg%†’Í~½ ýZuõðÞ›Š«ÏL“0·¢%ZÇhåá5”š˜Ór
    `

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

  2. olajideolaolorun
    Member
    Posted 1 year ago #

  3. harpercl
    Member
    Posted 1 year ago #

    for non-programmers, that means change line 208 in download.php from:

    $old_date = $wpdb->get_var( $wpdb->prepare( "SELECT date FROM $wp_dlm_db_log WHERE ip_address = '$ipAddress' AND download_id = ".$d->id." ORDER BY date DESC limit 1;") );

    to:

    $old_date = $wpdb->get_var( $wpdb->prepare( "SELECT date FROM $wp_dlm_db_log WHERE ip_address = '%s' AND download_id = '%s' ORDER BY date DESC limit 1;", $ipAddress, $d->id) );

    Plugin author should fix this.

  4. scanID
    Member
    Posted 1 year ago #

    I had the same problem.

    I updated the code manually for now as explained by harpercl and it works.
    Thanks a lot harpercl!!!

    Now hoping the author has time to update accordingly before the next WP update...

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.