Warning: Division by zero in Drupal\advagg\Asset\SingleAssetOptimizerBase->isMinificationSuccess() (line 129 of modules/contrib/advagg/src/Asset/SingleAssetOptimizerBase.php

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

anmolgoyal74 created an issue. See original summary.

Nelo_Drup’s picture

Issue tags: +css breaks with Agregación avanzada de CSS / JS

I have the same problem the CSS is lost drupal version 8.6.7

CProfessionals’s picture

Same warning appearing here, although it dies not seem to be affecting site performance.
PHP 7.1.20
Drupal 8.6.1
AdvAgg 8.x-3.5

Snehal Brahmbhatt’s picture

Status: Active » Needs review
FileSize
586 bytes

Here's the patch that resolves the same issue mentioned above, I have added the condition to check the original content length before dividing it.

Thanks!..

apaderno’s picture

Version: 8.x-3.5 » 8.x-3.x-dev
Issue tags: -css breaks with Agregación avanzada de CSS / JS

Bugs are fixed on Git branches (i.e., development snapshots).

thalles’s picture

Thanks @all!
Fixed on branch dev.

thalles’s picture

Status: Needs review » Fixed
thalles’s picture

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.