I installed PACS by creating PACS directory in Modules, copying the 4 files over, and then excecuting the SQL script pacs.mysql "successfully" using my webhost environment (bluehost.com).

I enabled PACS in modules, yet when I try to look at the "tree" option when editing a content page, I get this error:

warning: array_merge() [function.array-merge]: Argument #2 is not an array in /home/garymanf/public_html/modules/pacs/pacs.module on line 60.

Am I doing something wrong or is this a bug?

Comments

gammaRay’s picture

btw, I have PHP 5.0.4 installed.

gammaRay’s picture

I redid the installation to try it again. Here's the web based results of the execution of pacs.mysql:

#
# Table structure alteration for table `node`
#
ALTER TABLE node ADD COLUMN pid INT UNSIGNED NOT NULL DEFAULT 0;# MySQL returned an empty result set (i.e. zero rows).
ALTER TABLE node ADD COLUMN stops VARCHAR( 250 ) NULL ;# MySQL returned an empty result set (i.e. zero rows).
DELETE FROM node_access WHERE nid =0 AND realm = 'all';# Affected rows:1

peterone’s picture

Assigned: Unassigned » peterone
Status: Active » Fixed

Hi,

I couldn't reproduce the bug, but I uploaded a new version that I believe will resolve it. Please download the new version from cvs - it will only appear on the download page tomorrow.

Thanks,
Peter

gammaRay’s picture

Thanks Peter. I also just found how to remove the error messages and possible why it was happening. When viewing the Tree after first enabling it and creating some content, the "Root" is actually blank for every role. This is where the error message happens. What I do is then click on the blank root box, then click on a role, and then Grant that role a permission (view, etc.). I reload the page and now "Root" shows on the root box instead of blank and there is no error message.

Note, this has to be done for all new roles. So if I create a new role, then when viewing the tree with that role selected, Root is blank and the same error will occur. I have to then set new branch grants for that role and Root is set and no error messages.

Hope this helps. I'll try the new version. Thanks for a great module!

Gary

Anonymous’s picture

Status: Fixed » Closed (fixed)