[
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 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
On Thu, Mar 3, 2011 at 5:20 PM, Schach, Christian
<Christian.Schach@xxxxxxxxxxxxxxx> wrote:
Hi everyone,
I installed the EPF wiki on a ubuntu machine. After creating a wiki I tried to open it but I always get an error-message. I can see the page of the wiki but at the position where the edit-options
normally are is just a loading-animation. The error-message is "undefined method `url' for nil:NilClass" (On line #3 of pages/_header.rhtml).
This happens on every page I try to open. To make sure that I did no mistake while installing the wiki I already reinstalled it.
------------------------------------------------------------------------------------------------------------------
Line #3 is the following:
<%= menulink_to 'View', @page.url %>
------------------------------------------------------------------------------------------------------------------
Other maybe useful information in the log-file:
Params
format
--- js
url
id
--- _wikis_R15_AV50_deliveryprocesses_Phasen_6A194A4_html
------------------------------------------------------------------------------------------------------------------
I assume that @page.url is an environment variable which is set to null but I don't know why.
The EPF wiki itself is installed in the root-path so it should be a problem with subdirectories which I found on the mailing-list.
Does anybody has an idea what that can be or how I can analyse it?
Thanks in advance!
Christian Schach
_______________________________________________
epf-dev mailing list
epf-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/epf-dev