?
avatar beni71
beni71
15 Nov 2016

Steps to reproduce the issue

  1. In the backend navigate to Users > Groups
  2. Sort the list by "Group Title"

Expected result

The list would be sorted asc/desc without a warning.

Actual result

The list is sorted, but there are some notices and warnings showing like:

  • Notice: Undefined property: stdClass::$path in \libraries\cms\helper\usergroups.php on line 311
  • Warning: array_merge(): Argument 1 is not an array in \libraries\cms\helper\usergroups.php on line 311

System information (as much as possible)

OS Windows
PHP 7.0.9
MySQLi 5.5.5-10.1.16-MariaDB
Caching Disabled
Gzip Disabled

Additional comments

  • Code actually pulled from staging branch.
  • Install Sample Data: Test English (GB) Sample Data
  • Debug configuration is set to joomla default.
  • The same problem is also in the actual 3.7.x branch.
avatar beni71 beni71 - open - 15 Nov 2016
avatar joomla-cms-bot joomla-cms-bot - change - 15 Nov 2016
Labels Added: ?
avatar beni71 beni71 - change - 15 Nov 2016
The description was changed
avatar beni71 beni71 - edited - 15 Nov 2016
avatar brianteeman brianteeman - change - 15 Nov 2016
Status New Confirmed
avatar brianteeman
brianteeman - comment - 15 Nov 2016

Confirmed in current 3.7 staging


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/12903.

avatar phproberto phproberto - reference | 4dda1e9 - 15 Nov 16
avatar phproberto
phproberto - comment - 15 Nov 2016

Patch sent:
#12904

avatar brianteeman
brianteeman - comment - 15 Nov 2016

Closing as we have a PR for testing See #12904


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/12903.

avatar brianteeman brianteeman - close - 15 Nov 2016
avatar brianteeman brianteeman - change - 15 Nov 2016
Status Confirmed Closed
Closed_Date 0000-00-00 00:00:00 2016-11-15 23:05:14
Closed_By brianteeman
avatar brianteeman brianteeman - close - 15 Nov 2016
avatar StefanSTS
StefanSTS - comment - 23 Aug 2017

On update of J 3.7.2 to J 3.7.5 I got an internal server error when opening the user list.
Google led me here and I deactivated the newly introduced line 313 within the new if:
$parentGroup = $this->populateGroupData($parentGroup);

After this, the internal server error was resolved and it showed Warnings and Notices like in J 3.7.2 only in the user details view:
Notice: Undefined property: stdClass::$path in .../joomla/libraries/cms/helper/usergroups.php on line 316
Warning: array_merge(): Argument #1 is not an array in .../joomla/libraries/cms/helper/usergroups.php on line 316
Warning: array_merge(): Argument #1 is not an array in .../joomla/libraries/cms/helper/usergroups.php on line 316

Never got that in any other installation.
I will try to get the server logs from the customer.
PHP 7.0.20

avatar StefanSTS
StefanSTS - comment - 24 Aug 2017

No error logs available yet.
The temporary solution was to set $parentGroup->path to an array which helped with the array_merge().
Everything is working without errors or warnings, but this will be overridden in the next J update, so I guess I open a new issue.


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/12903.

Add a Comment

Login with GitHub to post a comment