After adding paths to a role's allow/deny list, when clicking 'edit' all the paths I entered are gone.

I get the 'The path access configuration has been saved.' message but they aren't.

Comments

redben’s picture

I could not reproduce this bug ? could you give more details to the maintainer ? maybe the list of modules you are using ?

psynaptic’s picture

Status: Active » Closed (fixed)

Maybe the install file didn't get run and you don't have the database table?

Closing as it's old but feel free to reopen if you still have the same issue.

cossme’s picture

I had the same problem. For me it is a Windows Server based PHP/MySQL Problem. Line 121 in path_access.module doesn't work there (because it won't allow an empty value for an int to use the db defined default value).

Changing line 121
from

    db_query("INSERT INTO {path_access} (rid, pages, visibility) VALUES (%d, '', '')", $roleid);

to

    db_query("INSERT INTO {path_access} (rid, pages, visibility) VALUES (%d, '', 0)", $roleid);

for first time saving a value for a role fixes the problem.

Great module! Cheers,

cossme