This error message is from Tracker Mathematical Calculations.
This warning keeps popping up - can the warning be eliminated? Or, if I am incorrect and my mathematical calculation should instead be corrected, please advise.
(round(div(div(date (sub futureDate (date)))60)60)1)
See more notes I added in the 'Forums' here - https://tiki.org/forumthread75298--Divide-by-Zero-warning
This is important because Tiki 21x is the latest LTS.
Adding Jonny and Victor as it seems you both tried to correct the issue.
thanks,
Mike
See the 'Related' item for Bernard Sfez's post - Jonny's recommended workaround also worked in this situation:
"The workaround I did was to add an 'if' around it (which I think is good practice anyway), e.g."
(if childrenBirthDate (round (div (sub (date) childrenBirthDate) 31536000 ) 1))
In my situation this is what the mathematical formula looks like:
(if futureDate (round(div(div(date (sub futureDate (date)))60)60)1))
So with this formula, no more 'Divide by '0'' error messages.
Though I have no idea how it works or why, it seems as though this is not a TIki problem but an issue of how my mathematical formula was incorrectly put together.
To help developers solve the bug, we kindly request that you demonstrate your bug on a show2.tiki.org instance. To start, simply select a version and click on "Create show2.tiki.org instance". Once the instance is ready (in a minute or two), as indicated in the status window below, you can then access that instance, login (the initial admin username/password is "admin") and configure the Tiki to demonstrate your bug. Priority will be given to bugs that have been demonstrated on show2.tiki.org.
To help developers solve the bug, we kindly request that you demonstrate your bug on a show.tikiwiki.org instance. To start, simply select a version and click on "Create show.tikiwiki.org instance". Once the instance is ready (in a minute or two), as indicated in the status window below, you can then access that instance, login (the initial admin username/password is "admin") and configure the Tiki to demonstrate your bug. Priority will be given to bugs that have been demonstrated on show.tikiwiki.org.
filename | created | hits | comment | version | filetype | ||
---|---|---|---|---|---|---|---|
No attachments for this item |