• Resolved bdvllrd

    (@bdvllrd)


    The download counter value have been resetted after the plugin update to 4.7.0 !

    I am now obliged to restore the database. Don’t update this plugin.

Viewing 9 replies - 1 through 9 (of 9 total)
  • Plugin Author Razvan Aldea

    (@raldea89)

    Hello @bdvllrd ,

    You don’t need to restore the database as we did not delete anything, downgrading the plugin to your previous version will reset the counter.

    Could you please tell us from what version you have updated?

    Warmly,
    Razvan

    Thread Starter bdvllrd

    (@bdvllrd)

    Download Monitor (v.4.5.92)

    for the downgrading of the plugin do I need to downgrade only the plugin extension code or the code + database tables ?

    Plugin Author Razvan Aldea

    (@raldea89)

    You’ll need only the plugin, that can be found here – https://downloads.www.ads-software.com/plugin/download-monitor.4.5.92.zip – but I think we can solve this without downgrading, so you can still have up-to-date software that comes with improvements and fixes.

    Could you please tell me if you had any logs before the update or you were only relying on the counts found in the Downloads meta? If you had deleted/not used the logging system ( I believe that is the cause of your Downloads having 0 counts ) you can hook a filter, namely dlm_count_meta_downloads, and return true so that the counts in the post’s meta will be taken into consideration.

    So, if you add in your child theme’s functions.php the following code you’ll most probably get back the download counts: add_filter( 'dlm_count_meta_downloads', '__return_true' ); .

    Please let me know how this worked.

    Warmly,
    Razvan

    Thread Starter bdvllrd

    (@bdvllrd)

    Yes I had some logs inside the table _dlm_reports_log before upgrading.

    I have installed the filter inside the functions.php function and nothing change. The log count are still wrong.

    inside _postmeta before plugin upgrade:
    (838950, 4846, ‘_download_count’, ‘671’),

    inside _dlm_downloads now. (25 downloads happen since the upgrade):
    4
    4845
    25
    {“4846”:25}

    Plugin Author Razvan Aldea

    (@raldea89)

    Could you please give a link to a page where the Download with ID 4846 is held and the count is displayed so we can take a look?

    Warmly,
    Razvan

    Thread Starter bdvllrd

    (@bdvllrd)

    I downgraded the plugin release and I retrieve the count values (from _postmeta).

    I reinstall the release 4.7.1 release and I retrieve the wrong counts.

    • This reply was modified 2 years, 1 month ago by bdvllrd.
    Plugin Author Razvan Aldea

    (@raldea89)

    Could you show me how and where did you entered the code for the filter I gave you? A simple screenshot would suffice.

    Warmly,
    Razvan

    • This reply was modified 2 years, 1 month ago by Razvan Aldea. Reason: extra info
    Thread Starter bdvllrd

    (@bdvllrd)

    May be the upload of the functions.php code doesn’t work correctly; I redo this upload and now it seems ok with the release 4.7.1 and the filter
    add_filter( ‘dlm_count_meta_downloads’, ‘__return_true’ );

    Now the count for download_id 4846 is 697. Which is correct : 671 + 25 = 696

    Plugin Author Razvan Aldea

    (@raldea89)

    Awesome, glad it worked for you ??

    If you have any other questions please don’t hesitate to contact us.

    Warmly,
    Razvan

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘counter value is zero after migrating to 4.7.0 !’ is closed to new replies.