Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Division by zero error #1163

Open
lipatovroman opened this issue Dec 7, 2023 · 0 comments
Open

Division by zero error #1163

lipatovroman opened this issue Dec 7, 2023 · 0 comments

Comments

@lipatovroman
Copy link

lipatovroman commented Dec 7, 2023

Hello.
When I trying to edit an item with zero votes, I'm getting Division by zero error.

2023-12-06_19-04-08

Also, I'm getting error report on my email:
Error Code 0
Error Type DivisionByZeroError
Message Division by zero
File /var/www/site/data/www/site.com/administrator/components/com_flexicontent/models/parentclassitem.php
Line 4270
Protocol https
Host site.com
Request /administrator/index.php?option=com_flexicontent&task=item.edit&view=item&id=2412
Referrer /administrator/index.php?option=com_flexicontent&view=items
Method GET

This error appears if item have zero votes.
So, I edited _content_rating in database and added 1 votes.
After that it's ok. But it should be fixed

Watch this video.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant