Details
-
Type: Story
-
Status: Closed
-
Priority: Major
-
Resolution: Fixed
-
Affects Version/s: None
-
Fix Version/s: 4.6.0-b1
-
Component/s: None
-
Labels:None
Description
Several modules/plugins call php's count() function, but it is not clear that it is always passed an iterable value to count. If it is not passed such a value (e.g. passed null or an empty string), then an error can be encountered in php 7.2+:
count(): Parameter must be an array or an object that implements Countable on line ### in /app/components/modules/***/***.***
This may be most prevalent in modules/plugins that call count and pass in a variable through _Html::ifSet _without specifying a default value, which means the default value is an empty string, thus encountering the error.
It appears the following modules/plugins may need to be updated, at least to ensure a default value to count is provided.
Modules
- Blesta License
- BuycPanel
- CentOS Web Panel
- CentovaCast
- CyberPanel
- DirectAdmin
- Enom
- GoGetSSL
- Interworx
- ISPConfig
- Logicboxes
- Multicraft
- Namecheap
- Plesk
- Proxmox
- SolusVM
- TCAdmin
- TeamSpeak
- Vesta
- Virtualmin
- VPS.net
- Vultr
- WHMSonic
Plugins:
- FeedReader (views)
- Mass mailer (views)
- Order (views)