On 3-May-07, at 11:16 PM, murrah boswell wrote: > > ----- Original Message ----- > From: "Shawn Estes" <shawn.estes at gmail.com> > Subject: Re: [Scoop-help] NewBee Question > > Okay, I reset site_url so now the activation emails have the > correct url: > > http://192.168.1.229/scoop/activate/zRwSaevU > > but when I click on it, I get an error and the url has been > converted to: > > http://192.168.1.229//scoopuser/fiona/prefs?firstlogin=1 > > and I get the error: > > "The requested URL //scoopuser/fiona/prefs was not found on this > server." > > When I go to http://192.168.1.229/scoop though, I see that the user > fiona is logged in and I see in mysql that she has been added to > the users table, so obviuosly it activated her account but I don't > know if "...192.168.1.229//scoopuser..." is supposed to be > "...192.168.1.229/scoop/scoopuser..." or "...192.168.1.229/ > scoopuser...". What you're seeing there is a bug in one of scoop's boxes. Most scoop sites have a blank rootdir (the site is on the domain, not a subdirectory of a domain) so don't see it. Fortunately, it's easy to fix. Go to the boxes admin tool and load the box named 'activate'. Look for the following code: (it'll be nearly at the bottom of the box and will probably wrap over 3 lines) my $url = $S->{UI}->{VARS}->{site_url} . "/" . $S->{UI}->{VARS}-> {rootdir} . "user/$urlnick/prefs?firstlogin=1"; Change that to: my $url = $S->{UI}->{VARS}->{site_url} . $S->{UI}->{VARS}-> {rootdir} . "/" . "user/$urlnick/prefs?firstlogin=1"; (Move the "/" from between site_url and rootdir to after rootdir; make sure there is one period between each item.) Basically what happened there is that site_url must not have a slash after it and rootdir must not end in a slash but if present must start with one. The slash is added when the rest of the URL is built, so it belongs *after* the rootdir. The main reason site_url and rootdir are separate instead of having just one site control is because internal links don't need to specify the full URL. The full URL including domain is only used in emails and such things. > I turned off 'show_prefs_on_first_login' at Site Controls > > General, but still got the same error. > > Is there some other setting at Site Controls > General that will > take care of this error? If so, which one, I mean WOW, there are > some options there to figure out. Don't forget the Scoop Admin Guide: http://scoop.kuro5hin.org/guide/ There's a lot to go through. It'll eventually start to make sense once you get a feel for the shape of it; until then the multitude of bits can be a little overwhelming :-) -janra