You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We are experiencing an issue in one of our site where the UpdateElementSlugsAndUris is reporting a DivisionByZeroError. The issue is happening on this line: $this->setProgress($queue, $this->_totalProcessed++ / $this->_totalToProcess);
Looks like $this->_totalToProcess can sometimes be 0 while in the foreach (Db::each($query) as $element) { loop
Steps to reproduce
Run the UpdateElementSlugsAndUris job
Randomly it can crash by a DivisionByZeroError
Craft CMS version
4.13.8
PHP version
8.3.16
Operating system and version
No response
Database type and version
PostgreSQL 16.6
Image driver and version
No response
Installed plugins and versions
The text was updated successfully, but these errors were encountered:
What happened?
Description
We are experiencing an issue in one of our site where the UpdateElementSlugsAndUris is reporting a DivisionByZeroError. The issue is happening on this line:
$this->setProgress($queue, $this->_totalProcessed++ / $this->_totalToProcess);
Looks like
$this->_totalToProcess
can sometimes be 0 while in theforeach (Db::each($query) as $element) {
loopSteps to reproduce
Craft CMS version
4.13.8
PHP version
8.3.16
Operating system and version
No response
Database type and version
PostgreSQL 16.6
Image driver and version
No response
Installed plugins and versions
The text was updated successfully, but these errors were encountered: