Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [epf-dev] Error message: "undefined method `url' for nil:NilClass"

Hi Onno,
 
thanks for your fast reply.
 
I tried to recreate the wiki and to test with some demo-data (db:fixtures:load / create_oup_wiki) but I get the same error.
When I take a look at the database I can see that there are some entries in the tables pages (~1250) and wiki (4). The table pages_sites is empty.
 
I attached an excerpt of the production.log when the error occured. When trying to navigate through the wiki I get an entry like this everytime the page loads.
 
Did I understand right that an Ajax-Script tries to determine on which page it has been loaded and calls a Ruby-Script which should deliver meta data, comments? Is there any way to check the data which has been sent to that Ruby-Script? Maybe something is wrong the call. We're mostly using the old IE6 but I also got the same error in FF.
 
Thanks for your help!
 
Christian
 
 


Von: Onno van der Straaten [mailto:onno.van.der.straaten@xxxxxxxxx]
Gesendet: Freitag, 4. März 2011 10:22
An: Schach, Christian
Betreff: Re: [epf-dev] Error message: "undefined method `url' for nil:NilClass"

Hi Christian,
I suppose that didn't help you as I saw later that you already recreated the database.

If you want some help please send me some more log information when this errors occurs. You should be able to find more info it in log/production.log. I have installed EPF Wiki a couple of times on Ubuntu so this should work.
Best Regards,
Onno

On Thu, Mar 3, 2011 at 7:11 PM, Onno van der Straaten <onno.van.der.straaten@xxxxxxxxx> wrote:
Hi Christian,
It could be that the database is empty? Maybe you are using the wrong database? EPF Wiki uses a Ajax request to get meta data, status comments and so forth associated with the page. The Ajax request submits the url of the current page as a parameter and then EPF Wiki finds the meta data using this url. If it can't find 'each' page there must be something wrong with the database.

If this is a new installation the best thing to do is to remove data and try again:
  • Recreate the database using with rake db:drop db:create db:migrate.
  • Clean the wikis and bp directory in the public folder.
  • Recreate the wiki site
HTH,
Onno

Attachment: production.log
Description: production.log


Back to the top