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
Tyson Phillips (Inactive)
created issue -
Tyson Phillips (Inactive)
made changes -
Field | Original Value | New Value |
---|---|---|
Rank | Ranked higher |
Tyson Phillips (Inactive)
made changes -
Sprint | 4.4.0 Sprint 3 [ 59 ] |
Tyson Phillips (Inactive)
made changes -
Rank | Ranked higher |
Tyson Phillips (Inactive)
made changes -
Sprint | 4.4.0 Sprint 3 [ 59 ] | 4.4.0 Sprint 3, 4.4.0 Sprint 4 [ 59, 71 ] |
Tyson Phillips (Inactive)
made changes -
Rank | Ranked higher |
Tyson Phillips (Inactive)
made changes -
Security | Private [ 10000 ] |
Tyson Phillips (Inactive)
made changes -
Assignee | Tyson Phillips [ tyson ] |
Automated transition triggered when Tyson Phillips (Inactive) created a branch in Stash -
Status | Open [ 1 ] | In Progress [ 3 ] |
Tyson Phillips (Inactive)
made changes -
Remaining Estimate | 0 minutes [ 0 ] | |
Time Spent | 20 minutes [ 1200 ] | |
Worklog Id | 11494 [ 11494 ] |
Automated transition triggered when Tyson Phillips (Inactive) created pull request #9 in Stash -
Status | In Progress [ 3 ] | In Review [ 5 ] |
Resolution | Fixed [ 1 ] |
Tyson Phillips (Inactive)
made changes -
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 ] |
Tyson Phillips (Inactive)
made changes -
Rank | Ranked higher |
Automated transition triggered when Tyson Phillips (Inactive) merged pull request #9 in Stash -
Status | In Review [ 5 ] | Closed [ 6 ] |