Hi, here's the errors it gave me when I installed the User Relationships module:

• warning: array_fill() [function.array-fill]: Number of elements must be positive in /home/jbailey2/public_html/includes/database.inc on line 235.

• warning: implode() [function.implode]: Bad arguments. in /home/jbailey2/public_html/includes/database.inc on line 235.

• warning: array_keys() [function.array-keys]: The first argument should be an array in /home/jbailey2/public_html/modules/user/user.module on line 500.

• user warning: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')' at line 1 query: SELECT p.perm FROM role r INNER JOIN permission p ON p.rid = r.rid WHERE r.rid IN () in /home/jbailey2/public_html/modules/user/user.module on line 500.

• warning: array_fill() [function.array-fill]: Number of elements must be positive in /home/jbailey2/public_html/includes/database.inc on line 235.

• warning: implode() [function.implode]: Bad arguments. in /home/jbailey2/public_html/includes/database.inc on line 235.

• warning: array_keys() [function.array-keys]: The first argument should be an array in /home/jbailey2/public_html/modules/user/user.module on line 500.

• user warning: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')' at line 1 query: SELECT p.perm FROM role r INNER JOIN permission p ON p.rid = r.rid WHERE r.rid IN () in /home/jbailey2/public_html/modules/user/user.module on line 500.

• The content access permissions need to be rebuilt. Please visit this page.

Hope that means something to somebody.

Here's what I get when I add a relationship type or visit the Modules page:

• warning: array_fill() [function.array-fill]: Number of elements must be positive in /home/jbailey2/public_html/includes/database.inc on line 235.

• warning: implode() [function.implode]: Bad arguments. in /home/jbailey2/public_html/includes/database.inc on line 235.

• warning: array_keys() [function.array-keys]: The first argument should be an array in /home/jbailey2/public_html/modules/user/user.module on line 500.

• user warning: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')' at line 1 query: SELECT p.perm FROM role r INNER JOIN permission p ON p.rid = r.rid WHERE r.rid IN () in /home/jbailey2/public_html/modules/user/user.module on line 500.

It does seem to be writing to and creating SQL tables though.

And it might be unrelated but when the admin tries to add somebody as a buddy:


This user is not accepting relationship requests.

And when a regular user tries to add somebody:


Access denied
You are not authorized to access this page.

I'm new at this so it's possible I did something wrong. Chmod permissions maybe?

Here's the other modules that are installed:

content profile
fivestar
flexifilter
fotonotes
image
ip locator
kudos
lightbox2
logintobaggan
messenger
nodeauthor
persistant login
popups
safari search
sections
tagadelic
transliteration
type local nids
views
voting api

Thanks

Comments

jthomasbailey’s picture

Edit:

I changed some permissions in the admin section and am able to add and accept relationships, so everything seems to technically work, albeit with error dialogs.

sprsquish’s picture

Try disabling a module at a time until the error goes away. The last module you disabled should be the one that's causing the problem. If it's one of the UR modules please let me know which one. Otherwise this issue should be set to the proper project.

Thanks.

sprsquish’s picture

Status: Active » Postponed (maintainer needs more info)

Try disabling a module at a time until the error goes away. The last module you disabled should be the one that's causing the problem. If it's one of the UR modules please let me know which one. Otherwise this issue should be set to the proper project.

Thanks.

alex.k’s picture

Status: Postponed (maintainer needs more info) » Closed (won't fix)

Please reopen if assistance is needed. Thanks.

xavipal’s picture

sorry,

Can you tell me exactly what did you changed on the permissions screen? I have a similar problem when trying to deploy content types.

Thanks