Open Content -> Categories in Administrator
No Warning
The following Warning get displayed with PHP 7.0 but not with PHP 5.6
^^^Warning: Parameter 1 to ContentHelper::countItems() expected to be a reference, value given in /administrator/components/com_categories/models/categories.php on line 395^^^
The same problem! Need solution, please.
Same question as I asked before
What version of joomla?
Do you have any extensions installed?
version of Joomla 3.5.1. No extensions, I even reinstalled joomla 3.6 in other directory with new database - the same problem. Even changed version to php 5.6, but the warning is still there. Don't know what the reason is actually. What can it be? I use localhost (root, whithou password)
May be it wasn't at first and then appeared, I can't exactly say it.
Warning: Parameter 1 to ContentHelper::countItems() expected to be a reference, value given in D:\OpenServer\domains\joomla-test.local\administrator\components\com_categories\models\categories.php on line 403
The Problem is in this commit:
d2577b7#diff-edb981daf19f46ce73d3828ab0df8454R400
@bembelimen didn't notice that
call_user_func(array($cName, 'countItems'), $items, $section);
can't give parameter per reference to the called function and in PHP 7.0 this raises a warning.
I use Joomla 3.6, I changed it to $cName::countItems($items, $section);
and it works again without warning.
btw. in this commit in line 395 there is $prefix = ucfirst(str_replace('com_', '', $component));
which is redundant to line 388 $eName = str_replace('com_', '', $component);
so replaceing this with $prefix = ucfirst($eName);
would be a good idea.
Thanks a lot! The problem is solved.
Had the same problem
Joomla 3.6 with several extensions and PHP 7.0.9
Problem solved
Priority | Medium | ⇒ | Urgent |
Status | New | ⇒ | Confirmed |
Anyone got a few minutes to look at this https://issues.joomla.org/tracker/joomla-cms/11274#event-184574 and do a PR please @rdeutz @bembelimen
Closed as we have a PR
@KlintMX @nikiedev @HLeithner can you please test #11337
Status | Confirmed | ⇒ | Closed |
Closed_Date | 0000-00-00 00:00:00 | ⇒ | 2016-07-28 16:01:04 |
Closed_By | ⇒ | brianteeman |
I've tested #11337 - no errors
What version of joomla?
Do you have any extensions installed?
I do not see this problem
On 23 July 2016 at 17:11, Harald notifications@github.com wrote:
Brian Teeman
Co-founder Joomla! and OpenSourceMatters Inc.
http://brian.teeman.net/