Problem/Motivation
When installing module on Cent-OS 5.7 Apache 2.2.3 PostgreSQL 8.4.3 I receive the following errors:
Notice: Array to string conversion in InsertQuery_pgsql->execute() (line 42 of /var/www/html/jcldocs/includes/database/pgsql/query.inc).
Notice: Array to string conversion in InsertQuery_pgsql->execute() (line 42 of /var/www/html/jcldocs/includes/database/pgsql/query.inc).
The content access permissions need to be rebuilt. Rebuild permissions.
I rebuild the permissions as it wants but when I try to enable access control on a vocabulary from /admin/config/people/taxonomy_access I get sent to /admin/config/people/taxonomy_access/role/[uid]/edit with the following errors:
Notice: Undefined index: access in _menu_translate() (line 778 of /var/www/html/jcldocs/includes/menu.inc).
Notice: Undefined index: access in menu_get_item() (line 464 of /var/www/html/jcldocs/includes/menu.inc).
Notice: Undefined index: access in menu_execute_active_handler() (line 499 of /var/www/html/jcldocs/includes/menu.inc).
Comments
Comment #1
xjmCould you provide a backtrace for these two notices? There is no indication they are even being caused by TAC.
This message is normal.
This sounds like a problem with a corrupted menu. Try clearing your menu cache to see if it eliminates these notices. A backtrace would also be helpful.
Comment #2
darkooo commentedI have exactly the same problem on Ubuntu 11.10 and postgresql 9.1.
It's only appear when I activate the module, so I think the problem is in the module (I also tried to clear the cache and reinstalling it, not working).
and when i go here:
admin/config/people/taxonomy_access
I have the following errors:
Backtrace:
Comment #3
xjmExcellent, thank you for the backtraces. A couple of followup questions based on the information there:
Comment #4
darkooo commentedPHP Version 5.3.6-13ubuntu3.1
When i am here: admin/config/people/taxonomy_access
I can see the page with Roles (anonymous, authenticated, administrator...) and Operations (edit access rules for anonymous and authenticated role, then enable access control for administrator role)
Then when i click on one of the Operations displayed, I got the error
With the back trace I gave you before.
I'am user 1 (so no problem of permissions)
I had the error only the first time I install the module. Now when I try to reinstall it with back trace activated, no errors :S. Don't know why. I also tried to delete the two tables taxonomy_access in my data base, and reactivate the module, but even after that the error disappear, don't know why. If it comes back, I will post it.
Thanks.
Comment #5
xjmAlright, I've found what might be a bug in
hook_menu()that relates to the menu data above. Please try the following:admin/modules.admin/modules/uninstall.admin/config/development/performance.admin/modulesand see if the errors still occur.Comment #6
darkooo commentedThanks a lot xjm, it's working now :)
Comment #7
xjmExcellent. #5 committed in:
http://drupalcode.org/project/taxonomy_access.git/commit/348c1b3
Comment #8
xjm