Re: [Radiant] Re: Problem deleting page in 0.8.1 - Problem found, not solved

2009-09-23 Thread Nate

Jason Garber wrote:

Nate,
I have no problem deleting a page with an attachment and I'm running 
0.8.1 with the latest page_attachments extension as well.  Do you have 
any other extensions that might be interfering?  If it's broken for 
you, I'm glad to fix it (it's my fault), but I need to be able to 
replicate it.


Thanks for your help Jason, but it turns out that it wasn't the 
Page_attachments extension that was the problem, it was the Reorder 
extension. I don't know all the technical details, but essentially what 
was happening was that when the user confirmed deletion of the page, 
there was some sort of mismatch between the will_paginate gem and the 
reorder extension which was weirding out the acts_as_list.


This really makes me wish I knew know more about hacking on rails than I 
do. I did do a little digging and it looks like these guys had a similar 
problem with acts_as_list 
(http://railsforum.com/viewtopic.php?id=18685). I don't have the chops 
to go mucking about in the reorder extension, but I thought that might 
help somebody who does.


I also checked this out on a barebones installation of Radiant 0.8.1 
with the 1e9598 commit of Reorder and the b0dbe1 commit on the 'radiant' 
branch of Page_attachments.




~Nate
___
Radiant mailing list
Post:   Radiant@radiantcms.org
Search: http://radiantcms.org/mailing-list/search/
Site:   http://lists.radiantcms.org/mailman/listinfo/radiant


Re: [Radiant] Re: Problem deleting page in 0.8.1

2009-09-22 Thread Jason Garber

Nate,
I have no problem deleting a page with an attachment and I'm running  
0.8.1 with the latest page_attachments extension as well.  Do you have  
any other extensions that might be interfering?  If it's broken for  
you, I'm glad to fix it (it's my fault), but I need to be able to  
replicate it.


Jason

On Sep 21, 2009, at 11:54 PM, Nate wrote:


Nate wrote:
I cannot delete pages in 0.8.1. When I click on the remove link I  
get the deletion confirmation page, but when I click delete I get  
an application error. I am trying to open a much too large  
production log (200Mb!) to find out exactly what went wrong.



OK. After a little digging, I found that the page couldn't be  
deleted if it had an image attached to it. So I had to delete the  
images attached before deleting the page.


Here is a pastie of the error: http://pastie.org/625506

I am using Radiant 0.8.1 and the latest commit (b0dbe1b0) of the  
page_attachments extension.



~Nate
___
Radiant mailing list
Post:   Radiant@radiantcms.org
Search: http://radiantcms.org/mailing-list/search/
Site:   http://lists.radiantcms.org/mailman/listinfo/radiant


___
Radiant mailing list
Post:   Radiant@radiantcms.org
Search: http://radiantcms.org/mailing-list/search/
Site:   http://lists.radiantcms.org/mailman/listinfo/radiant