The list shows the category Uncategorised.
Warning: count(): Parameter must be an array or an object that implements Countable in C:\www\joomla380\components\com_weblinks\models\categories.php on line 95
The list shows the category Uncategorised.
Joomla 3.9.0
PHP 7.2.11
Fixed by inserting the following lines before line 95 in
components/com_weblinks/models/categories.php
if (!is_array($this->_items))
{
$this->_items = array();
}
Ref. topic "Weblinks Categories page - Warning: count() at https://forum.joomla.org/viewtopic.php?f=715&t=967481
Also, I can't reproduce your issue here on 3.9.1-rc
I always get 2 arrays, even if the first one if NULL
I do not know about 3.9.1-rc but I have now reproduced the warning in an out-of-the-box Joomla 3.9.0 updated with Joomla_3.9.1-dev-Development-Update_Package.zip.
Also in the code available from https://github.com/joomla-extensions/weblinks the file models/categories.php is identical to version 3.6.0.
In any case, submitted joomla-extensions/weblinks#393
Status | New | ⇒ | Closed |
Closed_Date | 0000-00-00 00:00:00 | ⇒ | 2018-11-26 15:33:06 |
Closed_By | ⇒ | joomla-cms-bot |
Closed_Date | 2018-11-26 15:33:06 | ⇒ | 2018-11-26 15:33:07 |
Closed_By | joomla-cms-bot | ⇒ | Quy |
Set to "closed" on behalf of @Quy by The JTracker Application at issues.joomla.org/joomla-cms/23172
Please open this issue at https://github.com/joomla-extensions/weblinks/issues as Weblinks is a decoupled extension.