Folks, First, thanks for 0.6.9, which looks good. But we're finding two errors: 1. r:find doesn't work 2. Any change to any page returns: "Page has been modified since it was last loaded. Changes cannot be saved without potentially losing data." I can't find any stacktraces or errors in our logs. I ran the upgrade instructions as documented, i.e., "sudo rake radiant:update" and "sudo rake production db:migrate" and neither returned any errors. The db migration echoed the changes it made to the schema w/out any errors. This is with Postgresql 8.2.3. Any help would be greatly appreciated. Cheers, Kendall Clark
on 19.08.2008 17:40
on 19.08.2008 18:06
Kendall, Around 0.6.2 or so, we added optimistic locking to all content models (page, snippet, layout) to prevent multiple users from overwriting each other's changes unknowingly. Make sure no one is logged into the admin interface, and then do this in the console: [Page, Snippet, Layout].each do |model| model.update_all(:lock_version => 1) end See if that clears things up. Can you provide an example of where <r:find> doesn't work? Sean
on 19.08.2008 18:11
On Tue, Aug 19, 2008 at 12:05 PM, Sean Cribbs <seancribbs@gmail.com> wrote: > > See if that clears things up. > Sure, but I'm a bit confused: what's the console? Can you provide an example of where <r:find> doesn't work? Sure, see http://clarkparsia.com/ or http://pellet.owldl.com/ -- the topnav of both sites looks like this: ... <li id="nav-3" <r:if_content part="projects"> class="selected" </r:if_content>> <a href="<r:find url="projects"><r:url/></r:find>" title="Our Projects" accesskey="s"><em>S</em>oftware & Services</a> </li> <li id="nav-4" <r:if_content part="papers"> class="selected" </r:if_content>> <a href="<r:find url="papers"><r:url/></r:find>" title="Our Papers" accesskey="p"><em>P</em>apers</a> </li> >From the / page, these all work fine...But from any child page of /, like /pages, the other links don't work at all. You can see it live on either site. Cheers, Kendall
on 19.08.2008 18:22
Open a terminal or SSH to your instance of Radiant, and the run 'script/console' from the prompt to get the "console". In those cases you gave, you probably need to provide a complete URL to the page you want to select, like so: <r:find url="/projects">... However, in the case you have shown, it would make more sense to just put '/projects' and '/papers' directly in the href attribute. Sean
on 19.08.2008 18:33
On Tue, Aug 19, 2008 at 12:05 PM, Sean Cribbs <seancribbs@gmail.com> wrote: > Kendall, > > Around 0.6.2 or so, we added optimistic locking to all content models (page, > snippet, layout) to prevent multiple users from overwriting each other's > changes unknowingly. Make sure no one is logged into the admin interface, > and then do this in the console: Is there any way to force logouts from either the console or command-line? The other problem we just discovered is that the logout from admin interface doesn't seem to work. The redirect fails and we're still logged in. Cheers, Kendall
on 19.08.2008 18:43
There's no way to force logouts unless you're still using the :active_record_store or :pstore for sessions. If the former, run rake db:sessions:clear from the command line. If the latter, remove everything in the tmp/sessions directory. Sean
on 19.08.2008 18:59
On Tue, Aug 19, 2008 at 12:42 PM, Sean Cribbs <seancribbs@gmail.com> wrote: > There's no way to force logouts unless you're still using the > :active_record_store or :pstore for sessions. If the former, run rake > db:sessions:clear from the command line. If the latter, remove everything > in the tmp/sessions directory. Thanks, Sean. We seem to have sorted everything out. One question: Maybe since we built our sites, around 0.5 version, there's some kind of alias feature added so that we can refer to pages via slug or name, etc, rather than via URL in r:find since, as you point out, that's just more typing than making links by hardcoding URLs. Cheers, Kendall