I just installed the module and I am unable to use it because of some PostgreSQL errors. I'd appreciate any helps as I'd really like to use this module. Thanks!

pg_query() [<a href='function.pg-query'>function.pg-query</a>]: Query failed: ERROR: invalid input syntax for integer: &quot;&quot; in /var/www/includes/database.pgsql.inc on line 139.

query: INSERT INTO path_access (rid, pages, visibility) VALUES (1, &#039;&#039;, &#039;&#039;) in /var/www/sites/all/modules/contrib/path_access/path_access.module on line 121.

Comments

xurizaemon’s picture

Title: Errors in PostgreSQL - Not usable » SQL compatability issue: attempts to insert '' to INTEGER column on initial load of role acces edit form.
Status: Active » Needs work

This issue occurs when first editing a role's path access settings. When displaying the initial form, path access attempts to insert the role ID into the path_access table. Visibility is an INTEGER. MySQL masks this error by interpreting '' as 0 for INT columns.

In #1013732: Port Path Access to Drupal 7 I've simply replaced '' with 0 for the visibility column, which has the same end result and doesn't throw an SQL error.

xurizaemon’s picture

Status: Needs work » Needs review
StatusFileSize
new639 bytes

I'm using this module on D7 not D6, so I have not tested this patch.

tseven’s picture

Just applied the patch on my D6 install and everything seems fine.

Thank you.

I hope this fix makes it into the next update.

mrfelton’s picture

Status: Needs review » Fixed

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

rmcom’s picture

Issue summary: View changes
Status: Closed (fixed) » Patch (to be ported)

Proposing that this path should go into a final D6 release.

xurizaemon’s picture

Version: 6.x-1.0 » 6.x-1.x-dev
Status: Patch (to be ported) » Needs review

Setting version, status so this can be considered for 6.x release per previous request - seems like there's a patch already here. If you want this patch in, please act by reviewing it and updating the status accordingly.