Just tried the new version, you will get:
- Warning
PHP Warning: count(): Parameter must be an array or an object that implements Countable in qa-theme-base.php on line 211
Line: if (count(@$this->content['widgets'][$region][$place])) {
https://github.com/q2a/question2answer/blob/dev/qa-include/qa-theme-base.php#L211
- Warning
PHP Warning: count(): Parameter must be an array or an object that implements Countable in page.php
Line: $lastcategoryid = count($categoryids) ? end($categoryids) : null;
|
$lastcategoryid = count($categoryids) ? end($categoryids) : null; |
--
Fix is to check before if(isset(...))
Just tried the new version, you will get:
Line:
if (count(@$this->content['widgets'][$region][$place])) {https://github.com/q2a/question2answer/blob/dev/qa-include/qa-theme-base.php#L211
Line:
$lastcategoryid = count($categoryids) ? end($categoryids) : null;question2answer/qa-include/app/page.php
Line 486 in cfec3c0
--
Fix is to check before
if(isset(...))