Closed (fixed)
Project:
Subscriptions
Version:
5.x-2.3
Component:
Miscellaneous
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
13 Sep 2008 at 07:03 UTC
Updated:
30 May 2009 at 22:18 UTC
I'm getting this error when I run the update:
warning: Division by zero in /home/USERNAME/www/www/sites/all/modules/subscriptions/subscriptions.install on line 490.
Comments
Comment #1
salvisWhat? The dividend comes from
and it gives you 0? You're running a site with no users, not even an administrator?
Comment #2
jsimonis commentedWe definitely have users. Looking at the sequences table, we're up to 1227.
Comment #3
salvisIf you have, say, 1000 users, then you should have seen a progress bar with 20 browser reloads, processing 50 users at a time. At which point did this occur, at the beginning or at the end of this process?
subscriptions_update_7() is modeled one-to-one after system_update_172(). I could try an other termination condition, but I need to understand why it failed.
Here's the relevant source code:
Does anyone see how this can fail with a zero-divide exception on the last line?
BTW, you can restart subscriptions_update_7() any number of times without risking any problems.
Comment #4
jsimonis commentedThe bar comes up, jumps to 18%, sits there for a while, and then jumps right to 100%. That's when I get the error.
Comment #5
salvisThis was an odd issue that no one else seems to have had. I'm sorry I wasn't able to provide more help...