Details
-
Type:
Bug
-
Status: Closed
-
Priority:
Major
-
Resolution: Fixed
-
Affects Version/s: None
-
Fix Version/s: 4.4.0-b1
-
Component/s: None
-
Labels:None
Description
See https://www.blesta.com/forums/index.php?/topic/11884-blesta-error-reportingdebug-breaks-blesta/
The following error can be encountered when attempting to use the Universal Module to add a new product on php 7.2:
count(): Parameter must be an array or an object that implements Countable on line 45 in /components/modules/universal_module/views/default/add_row.pdt
The fix is to update that add_row template (and the edit_row template) to ensura the argument is countable:
$num_package_fields = count($this->Html->ifSet($vars->package_fields['label']));
becomes
$num_package_fields = count($this->Html->ifSet($vars->package_fields['label'], []));
Activity
Field | Original Value | New Value |
---|---|---|
Rank | Ranked higher |
Sprint | 4.4.0 Sprint 3 [ 59 ] |
Rank | Ranked higher |
Sprint | 4.4.0 Sprint 3 [ 59 ] | 4.4.0 Sprint 3, 4.4.0 Sprint 4 [ 59, 71 ] |
Rank | Ranked higher |
Security | Private [ 10000 ] |
Assignee | Tyson Phillips [ tyson ] |

Status | Open [ 1 ] | In Progress [ 3 ] |
Remaining Estimate | 0 minutes [ 0 ] | |
Time Spent | 20 minutes [ 1200 ] | |
Worklog Id | 11494 [ 11494 ] |

Status | In Progress [ 3 ] | In Review [ 5 ] |
Resolution | Fixed [ 1 ] |
Sprint | 4.4.0 Sprint 3, 4.4.0 Sprint 4 [ 59, 71 ] | 4.4.0 Sprint 3, 4.4.0 Sprint 4, 4.4.0 Sprint 5 [ 59, 71, 72 ] |
Rank | Ranked higher |

Status | In Review [ 5 ] | Closed [ 6 ] |