null instead of array being passwed to krsort, foreach in civicspace.inc on line 368 and 369

seanr - April 20, 2006 - 20:34
Project:Administration
Version:4.6.x-1.x-dev
Component:Code
Category:bug report
Priority:normal
Assigned:Unassigned
Status:active
Description

Get these errors when accessing /sadmin:

warning: krsort() expects parameter 1 to be array, null given in /usr/local/www/vhosts/[DOMAIN]/htdocs/modules/zadministration/civicspace.inc on line 368.

warning: Invalid argument supplied for foreach() in /usr/local/www/vhosts/[DOMAIN]/htdocs/modules/zadministration/civicspace.inc on line 369.

I have a ttached a patch wich fixes it, but it's just a temporary work around as it doesn't really address why $group isn't getting filled in the first place.

AttachmentSize
civicspace.inc_1.patch3.07 KB

#1

webchick - April 20, 2006 - 22:40

I was not able to duplicate this issue. Here is a description of the steps I followed:

1. Installed CivicSpace 0.8.3. I just chose the default options all the way through (political action profile, etc.)
2. Went to ?q=sadmin and confirmed old administration module was present.
3. Deleted the modules/zadministration folder and replaced it with the one from the tarball
4. There were some oddities after doing this (broken layout, still using old menus, etc.). To get around these, I went to admin/settings/zadministration, and first Deactivated and then Activated the menus again.
5. After that everything was fine.

So if people are having problems, I guess I would suggest first deactivating the current zadministration module's menus under admin/settings/zadministration prior to copying over these files, and then activating them again to enable the new module.

My platform is Apache/Win32, PHP 5.1.1, and MySQL 5.0.18.

#2

Veggieryan - May 27, 2006 - 09:06

hey there,
im still getting warning: krsort() expects parameter 1 to be array, null given in /home***zadministration/civicspace.inc on line 371.

this is on .8.4 final
patch does not work.
is this being looked into?
thanks
ryan.

 
 

Drupal is a registered trademark of Dries Buytaert.