Re(4): [Radiant] site setup problem: relation pages does not exist

2009-07-02 Thread Jan M.J. Storms
I am on 0.8.0 and chose the 'styled blog' option.

There are a few things I have noticed that do not work.

1) I can make child pages both to the home page and to child pages
of the home page, but only the child pages to the home page are listed.
When I click the + to expand the children of some other page I get a 404
not found error;

2) links of the type :slug need the /nld subdirectory prepended;

3) r:link / works (i don't know if that is true in all cases), but
r:date format=/articles/%Y/%m/ / also needs the /nld subdirectory
prepended.

So some things are easily fixed, but (1) is not, at least not for me.

If it works in some places and in others it doesn't, maybe with the '--
prefix /nld' added to 'thin start', the solution could be to apply, as
you point out, relative_url_root in all cases where Radiant constructs an url.

Jan

David Cato scripsit dd. Wed, 1 Jul 2009 22:41:41 -0700 (internet: @278)

Jan M.J. Storms wrote ...

 I added a couple of parameters to the thin startup command:

 --environment production --prefix /nld

 I can now see the home page and the admin pages work... partially. That
 is due to radiant being installed in subdirectory /nld. I searched the
 mailing list for answers and found some old posts that are a bit
 difficult for a newbie like me.

 Is there some easy setting for this, or am I really out of luck here?

A while back I tried installing a Radiant app in a subdirectory, as
you're doing here, and ran into problems. While I don't recall if there
were any database errors involved, I did manage to locate the relevant
production log and there are a lot of 404s due to bad URL paths as a
result of the relative_url_root value not being applied in all cases.

I ran across some discussion, that I can't find right now, that said (or
maybe only suggested) that a subdirectory installation of Radiant
wouldn't work. So, being lazy and unwilling to spend more time trying to
make the subdirectory install work, I gave in and redeployed in the root
directory of a subdomain instead.

I was using 0.7.1 at the time so the situation may have changed with
0.8. I haven't tried deploying 0.8 in a subdirectory and am not in a
position to do so at this time.

You mentioned in your original post that you have another Radiant site
running fine. Is it also installed in a subdirectory or is it in the
root directory?

--
David Cato
o...@crunchyfrog.net

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


Re: [Radiant] site setup problem: relation pages does not exist

2009-07-02 Thread Sean Cribbs

On version 0.8, put this in the initializer block in config/environment.rb:

config.action_controller.relative_url_root = '/nld'

You may need to do something different for 0.7.x and earlier.

Sean

Jan M.J. Storms wrote:

I am on 0.8.0 and chose the 'styled blog' option.

There are a few things I have noticed that do not work.

1) I can make child pages both to the home page and to child pages
of the home page, but only the child pages to the home page are listed.
When I click the + to expand the children of some other page I get a 404
not found error;

2) links of the type :slug need the /nld subdirectory prepended;

3) r:link / works (i don't know if that is true in all cases), but
r:date format=/articles/%Y/%m/ / also needs the /nld subdirectory
prepended.

So some things are easily fixed, but (1) is not, at least not for me.

If it works in some places and in others it doesn't, maybe with the '--
prefix /nld' added to 'thin start', the solution could be to apply, as
you point out, relative_url_root in all cases where Radiant constructs an url.

Jan

David Cato scripsit dd. Wed, 1 Jul 2009 22:41:41 -0700 (internet: @278)

  

Jan M.J. Storms wrote ...



I added a couple of parameters to the thin startup command:

--environment production --prefix /nld

I can now see the home page and the admin pages work... partially. That
is due to radiant being installed in subdirectory /nld. I searched the
mailing list for answers and found some old posts that are a bit
difficult for a newbie like me.

Is there some easy setting for this, or am I really out of luck here?
  

A while back I tried installing a Radiant app in a subdirectory, as
you're doing here, and ran into problems. While I don't recall if there
were any database errors involved, I did manage to locate the relevant
production log and there are a lot of 404s due to bad URL paths as a
result of the relative_url_root value not being applied in all cases.

I ran across some discussion, that I can't find right now, that said (or
maybe only suggested) that a subdirectory installation of Radiant
wouldn't work. So, being lazy and unwilling to spend more time trying to
make the subdirectory install work, I gave in and redeployed in the root
directory of a subdomain instead.

I was using 0.7.1 at the time so the situation may have changed with
0.8. I haven't tried deploying 0.8 in a subdirectory and am not in a
position to do so at this time.

You mentioned in your original post that you have another Radiant site
running fine. Is it also installed in a subdirectory or is it in the
root directory?

--
David Cato
o...@crunchyfrog.net



___
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


Re(2): [Radiant] site setup problem: relation pages does not exist

2009-07-02 Thread Jan M.J. Storms
I put the line in as suggested and restarted the server.

I see the same problems (1-2-3). When I leave off '--prefix /nld' from
'thin start' even more wrong urls.

Jan

Sean Cribbs scripsit dd. Thu, 2 Jul 2009 09:01:49 -0400 (internet: @584)

On version 0.8, put this in the initializer block in config/environment.rb:

config.action_controller.relative_url_root = '/nld'

You may need to do something different for 0.7.x and earlier.

Sean

Jan M.J. Storms wrote:
 I am on 0.8.0 and chose the 'styled blog' option.

 There are a few things I have noticed that do not work.

 1) I can make child pages both to the home page and to child pages
 of the home page, but only the child pages to the home page are listed.
 When I click the + to expand the children of some other page I get a 404
 not found error;

 2) links of the type :slug need the /nld subdirectory prepended;

 3) r:link / works (i don't know if that is true in all cases), but
 r:date format=/articles/%Y/%m/ / also needs the /nld subdirectory
 prepended.

 So some things are easily fixed, but (1) is not, at least not for me.

 If it works in some places and in others it doesn't, maybe with the '--
 prefix /nld' added to 'thin start', the solution could be to apply, as
 you point out, relative_url_root in all cases where Radiant constructs
an url.

 Jan

 David Cato scripsit dd. Wed, 1 Jul 2009 22:41:41 -0700 (internet: @278)


 Jan M.J. Storms wrote ...


 I added a couple of parameters to the thin startup command:

 --environment production --prefix /nld

 I can now see the home page and the admin pages work... partially. That
 is due to radiant being installed in subdirectory /nld. I searched the
 mailing list for answers and found some old posts that are a bit
 difficult for a newbie like me.

 Is there some easy setting for this, or am I really out of luck here?

 A while back I tried installing a Radiant app in a subdirectory, as
 you're doing here, and ran into problems. While I don't recall if there
 were any database errors involved, I did manage to locate the relevant
 production log and there are a lot of 404s due to bad URL paths as a
 result of the relative_url_root value not being applied in all cases.

 I ran across some discussion, that I can't find right now, that said (or
 maybe only suggested) that a subdirectory installation of Radiant
 wouldn't work. So, being lazy and unwilling to spend more time trying to
 make the subdirectory install work, I gave in and redeployed in the root
 directory of a subdomain instead.

 I was using 0.7.1 at the time so the situation may have changed with
 0.8. I haven't tried deploying 0.8 in a subdirectory and am not in a
 position to do so at this time.

 You mentioned in your original post that you have another Radiant site
 running fine. Is it also installed in a subdirectory or is it in the
 root directory?

 --
 David Cato
 o...@crunchyfrog.net




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


Re(2): [Radiant] site setup problem: relation pages does not exist

2009-07-01 Thread Jan M.J. Storms
Thank you very much.

I added a couple of parameters to the thin startup command:

--environment production --prefix /nld

I can now see the home page and the admin pages work... partially. That
is due to radiant being installed in subdirectory /nld. I searched the
mailing list for answers and found some old posts that are a bit
difficult for a newbie like me.

Is there some easy setting for this, or am I really out of luck here?

Jan

Jim Gay scripsit dd. Tue, 30 Jun 2009 19:37:39 -0400 (internet: @1026)

If you've verified that the correct database does indeed have the
pages table, have you verified that the application is running in the
corresponding environment?
Meaning the production database is setup, but you're running the app
in development mode...

-Jim

Jim Gay
http://www.saturnflyer.com



On Jun 30, 2009, at 6:49 PM, Jan M.J. Storms wrote:

 I am running into a problem with the second radiant site I a setting
 up.
 (The first one runs fine.) The site is located at:

 http://jan1.storms.org/nld/

 The attempt to load the page gives this error:

 

 ActiveRecord::StatementInvalid in SiteController#show_page

 PGError: ERROR:  relation pages does not exist

 

 The rake bootstrap task executed without errors. When I check, the
 postgres db table 'pages' does exist. Apart from the url, there is
 little difference in the setup from the site that works.

 I would be very thankful for any ideas how I can fix this.

 Jan

 ___
 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

Vriendelijke groet,

Jan M.J. Storms, M.A.S.C.I.

-
 storms(ico)
   intelligente cultuurontwikkeling
 webstek: storms.org
-


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


Re: Re(2): [Radiant] site setup problem: relation pages does not exist

2009-07-01 Thread Jim Gay



On Jul 1, 2009, at 6:20 PM, Jan M.J. Storms wrote:


Thank you very much.

I added a couple of parameters to the thin startup command:

   --environment production --prefix /nld

I can now see the home page and the admin pages work... partially.  
That


How are they partially working? What parts work and what don't?

You might try getting some support from Thin developers too. Without  
knowing the actual problem, it's hard to diagnose.



is due to radiant being installed in subdirectory /nld. I searched the
mailing list for answers and found some old posts that are a bit
difficult for a newbie like me.

Is there some easy setting for this, or am I really out of luck here?

Jan

Jim Gay scripsit dd. Tue, 30 Jun 2009 19:37:39 -0400 (internet: @1026)


If you've verified that the correct database does indeed have the
pages table, have you verified that the application is running in the
corresponding environment?
Meaning the production database is setup, but you're running the app
in development mode...

-Jim

Jim Gay
http://www.saturnflyer.com



On Jun 30, 2009, at 6:49 PM, Jan M.J. Storms wrote:


I am running into a problem with the second radiant site I a setting
up.
(The first one runs fine.) The site is located at:

http://jan1.storms.org/nld/

The attempt to load the page gives this error:



ActiveRecord::StatementInvalid in SiteController#show_page

PGError: ERROR:  relation pages does not exist



The rake bootstrap task executed without errors. When I check, the
postgres db table 'pages' does exist. Apart from the url, there is
little difference in the setup from the site that works.

I would be very thankful for any ideas how I can fix this.

Jan

___
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


Vriendelijke groet,

Jan M.J. Storms, M.A.S.C.I.


-

storms(ico)
  intelligente cultuurontwikkeling
webstek: storms.org

-



___
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


Re: Re(2): [Radiant] site setup problem: relation pages does not exist

2009-07-01 Thread David Cato
Jan M.J. Storms wrote ...

 I added a couple of parameters to the thin startup command:
 
 --environment production --prefix /nld
 
 I can now see the home page and the admin pages work... partially. That
 is due to radiant being installed in subdirectory /nld. I searched the
 mailing list for answers and found some old posts that are a bit
 difficult for a newbie like me.
 
 Is there some easy setting for this, or am I really out of luck here?

A while back I tried installing a Radiant app in a subdirectory, as
you're doing here, and ran into problems. While I don't recall if there
were any database errors involved, I did manage to locate the relevant
production log and there are a lot of 404s due to bad URL paths as a
result of the relative_url_root value not being applied in all cases.

I ran across some discussion, that I can't find right now, that said (or
maybe only suggested) that a subdirectory installation of Radiant
wouldn't work. So, being lazy and unwilling to spend more time trying to
make the subdirectory install work, I gave in and redeployed in the root
directory of a subdomain instead.

I was using 0.7.1 at the time so the situation may have changed with
0.8. I haven't tried deploying 0.8 in a subdirectory and am not in a
position to do so at this time.

You mentioned in your original post that you have another Radiant site
running fine. Is it also installed in a subdirectory or is it in the
root directory?

-- 
David Cato
o...@crunchyfrog.net

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


[Radiant] site setup problem: relation pages does not exist

2009-06-30 Thread Jan M.J. Storms
I am running into a problem with the second radiant site I a setting up.
(The first one runs fine.) The site is located at:

http://jan1.storms.org/nld/

The attempt to load the page gives this error:



ActiveRecord::StatementInvalid in SiteController#show_page

PGError: ERROR:  relation pages does not exist



The rake bootstrap task executed without errors. When I check, the
postgres db table 'pages' does exist. Apart from the url, there is
little difference in the setup from the site that works.

I would be very thankful for any ideas how I can fix this.

Jan

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


Re: [Radiant] site setup problem: relation pages does not exist

2009-06-30 Thread Sean Cribbs
I'm no expert with Postresql, but could you tell us which version you 
have installed?  It's possible that if you have an older version, Rails 
2.3.2 might not be compatible with it (which Radiant uses internally).


Sean

Jan M.J. Storms wrote:

I am running into a problem with the second radiant site I a setting up.
(The first one runs fine.) The site is located at:

http://jan1.storms.org/nld/

The attempt to load the page gives this error:



ActiveRecord::StatementInvalid in SiteController#show_page

PGError: ERROR:  relation pages does not exist



The rake bootstrap task executed without errors. When I check, the
postgres db table 'pages' does exist. Apart from the url, there is
little difference in the setup from the site that works.

I would be very thankful for any ideas how I can fix this.

Jan

___
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


Re: [Radiant] site setup problem: relation pages does not exist

2009-06-30 Thread Jim Gay
If you've verified that the correct database does indeed have the  
pages table, have you verified that the application is running in the  
corresponding environment?
Meaning the production database is setup, but you're running the app  
in development mode...


-Jim

Jim Gay
http://www.saturnflyer.com



On Jun 30, 2009, at 6:49 PM, Jan M.J. Storms wrote:

I am running into a problem with the second radiant site I a setting  
up.

(The first one runs fine.) The site is located at:

http://jan1.storms.org/nld/

The attempt to load the page gives this error:



ActiveRecord::StatementInvalid in SiteController#show_page

PGError: ERROR:  relation pages does not exist



The rake bootstrap task executed without errors. When I check, the
postgres db table 'pages' does exist. Apart from the url, there is
little difference in the setup from the site that works.

I would be very thankful for any ideas how I can fix this.

Jan

___
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