Page 1 of 1

Detail Links When Viewing Recordings On List Tab Disappeared

PostPosted: Sun Aug 14, 2011 11:19 am
by cyberws
Hello Community,

I finally upgraded from a lower version of Xataface to the latest build (1.3 RC 6). In one of my database projects when viewing a list of entries in a table all fields have become unlinked from the details page. This means I can no longer click on a say first name for record number 12 and have it load the details page. What the heck happened?

I have searched the documents and forum and don't see what is causing this issue. I have tried noLinkFromListView set to 0, custom building the link in the table.php class function, and several other items. I am at a loss and hoping someone can help me out with this strange behavior. It is happening on ALL tables in this project. All the links have just disappeared when viewing a list of records.

FYI to shannah> If you visit http://xataface.com/documentation and click on either of the links in the "Reference" section you get a 404 error.

Thanks!

Respectfully,

Jeremy

Re: Detail Links When Viewing Recordings On List Tab Disappeared

PostPosted: Mon Aug 15, 2011 11:56 am
by shannah
Ensure that the user that you are logged in as is granted the "link" permission. This permission didn't exist in some older versions (<1.2 i think). Likely you've defined your own roles explicitly. You just need to add the 'link' permission to these roles.

-Steve

Re: Detail Links When Viewing Recordings On List Tab Disappeared

PostPosted: Mon Aug 15, 2011 12:13 pm
by cyberws
Thanks for the reply. We haven't been using any login/auth data. Other database projects still work that don't use that any auth settings either. We have things either on Internal databases or locked by static IPs, which works for our needs.

Respectfully,

Jeremy

Re: Detail Links When Viewing Recordings On List Tab Disappeared

PostPosted: Mon Aug 15, 2011 12:24 pm
by shannah
So you haven't implemented any getPermissions() or getRoles() methods..

That is very strange then. No reason why you should have any limits. Perhaps try deleting all of the files in the templates_c directory in case some cached files are stale.

Re: Detail Links When Viewing Recordings On List Tab Disappeared

PostPosted: Mon Aug 15, 2011 12:31 pm
by cyberws
Correct I have never used the getPermissions() or getRoles() methods for any Xataface projects. I was baffled why all projects work but one. I have tried clearing the templates_c folder, but no joy.

Edited: I restarted Apache and it worked finally. I am not sure why this one specific project (newer) wouldn't work why other ones did, however I guess something was cached.

Thanks!

Respectfully,

Jeremy

Re: Detail Links When Viewing Recordings On List Tab Disappeared

PostPosted: Mon Aug 15, 2011 12:36 pm
by shannah
It is possible that the set of available permissions was cached using e.g. APC and restarting the web server refreshed the APC cache. Are you using APC?

-Steve

Re: Detail Links When Viewing Recordings On List Tab Disappeared

PostPosted: Mon Aug 15, 2011 12:40 pm
by cyberws
Yes APC is used on all our web servers. I would have guessed that if the others stopped working too, but one won't work while dozens of others continued to worked fine. Strange.

Respectfully,

Jeremy