Support » Plugin: Fundify Crowdfunding (Moved) » Backer Count Out of Sync

Viewing 12 replies - 1 through 12 (of 12 total)
  • Plugin Author virtuousgiant

    (@virtuousgiant)

    Did you change anything on your site or upgrade? Was there any specific action that caused this change?

    Thread Starter 4449311

    (@4449311-1)

    I don’t know specifically but if I had to guess I would say that the Campaign End Date was changed during the course of the Campaign? I tried to duplicate this by creating a Campaign pushing some donations and then changing the end date then adding more backers but I could not get the same result.

    Somehow I’m missing a variable or condition to duplicate this.

    Thread Starter 4449311

    (@4449311-1)

    I found it? Looks like the steps are as follows:
    1. create a Campaign (set a end date)
    2. make some donations
    3. let the Campaign end
    4. edit the Campaign and change the end date to a future date to revive the Campaign
    5. make some donations

    That throws off my count.

    Thread Starter 4449311

    (@4449311-1)

    Is there anything on this yet?

    Thread Starter 4449311

    (@4449311-1)

    Are there any updates on this virtuousgiant? Were you able to duplicate this issue?

    same happens to us when deleting test payments.. the backers count even went negative which we could fix with some additional code – however, the “simple” arithmetics of counting backers up and down (addition and subtraction) does not work consistently.

    Only workaround for now is to adjust backers in database..

    the backer count code is in appthemer-crowdfunding plugin whereas the arithmetics for deleting is in edd I guess..

    any idea to make it consistent and synchronized would be highly appreciated!

    (Crowdfunding by Astoundify Version 1.8.2)

    https://wordpress.org/plugins/appthemer-crowdfunding/

    Thread Starter 4449311

    (@4449311-1)

    I ended up updating my counts manually in the database as well because I was too lazy to create something to do it. Maybe I’ll get to creating something like the EDD Recount Earnings plugin?

    a plugin to consistently delete, cancel, etc. test- or failed payments is definitely a must.. nevertheless, the elegant (expected) way would be to have just a working edd / crowdfunding environment

    please let us know what you plan and maybe we can contribute!

    Hi there
    I want to update the count manually (in the meantime). What’s the table and field in the database containing backers. Can only see wp_posts.
    Thanks

    it should be in in the table:

    wp_postmeta

    in our case in the meta_key:

    edd_variable_prices

    (just search wp_postmeta for the string ‘amount’ shall it not be in this specific meta_key)

    After some entries and deletions, the edd_variable_prices meta_value looked like this:

    a:6:{i:0;a:4:{s:4:”name”;s:8:”Donation”;s:6:”amount”;s:4:”0.00″;s:5:”limit”;s:0:””;s:6:”bought”;s:0:””;}i:1;a:4:{s:4:”name”;s:0:””;s:6:”amount”;s:4:”0.00″;s:5:”limit”;s:0:””;s:6:”bought”;s:1:”0″;}i:2;a:4:{s:4:”name”;s:0:””;s:6:”amount”;s:4:”0.00″;s:5:”limit”;s:0:””;s:6:”bought”;s:1:”0″;}i:3;a:4:{s:4:”name”;s:0:””;s:6:”amount”;s:4:”0.00″;s:5:”limit”;s:0:””;s:6:”bought”;s:1:”0″;}i:4;a:4:{s:4:”name”;s:0:””;s:6:”amount”;s:4:”0.00″;s:5:”limit”;s:0:””;s:6:”bought”;s:1:”5″;}s:0:””;a:1:{s:6:”bought”;i:-3;}}

    where you can see the negative value i:-3 at the very end which actually is the ‘backer count’.. adjusting it will make it.

    In our case (donation campaigns without limits), the complete initial meta_value for this (0 backers) reads:

    a:1:{i:0;a:4:{s:4:”name”;s:8:”Donation”;s:6:”amount”;s:1:”0″;s:5:”limit”;s:0:””;s:6:”bought”;s:1:”0″;}}

    This is the code we added into the plugin “appthemer-crowdfunding”
    —-> includes
    class-campaign.php (line 254)
    to at least negative backers..

    254		if ( $count < 0 ) {
    		$count = 0; // Don't ever show negative backers
    		}

    any news on this issue? our backer count is totally screwed requiring hands-on all-the-time..

    Thread Starter 4449311

    (@4449311-1)

    @makmad – I’m wondering the exact same thing but there doesn’t seem to be any movement on this? I laid out how I got my errors so all I can do is wait and update them manually as the many errors keep occurring.

Viewing 12 replies - 1 through 12 (of 12 total)
  • The topic ‘Backer Count Out of Sync’ is closed to new replies.