solved defaulting to www

soaringeagle
@soaringeagle
11 years ago
3,304 posts
i know it probably was a setting during install
but my site now defaults to greentechnologyforums.com and id prefer it to default to www.greentechnologyforums.com
is there a way to change this after install (keep in mind that my real domains www.dreadlockssite.com and will switch to that once i go live)
(
just wondering where youd set the www vs non www preference for jrbaseurl (or whatever the smarty code is that populates the install directory info)



--
soaringeagle
head dreadhead at dreadlocks site
glider pilot student and member/volunteer coordinator with freedoms wings international soaring for people with disabilities

updated by @soaringeagle: 07/09/16 09:21:02AM
douglas
@douglas
11 years ago
2,804 posts
You'll want to modify your data/config/config.php file and add the www to the $_conf['jrCore_base_url'] setting.

Hope this helps! :)


--

Douglas Hackney
Jamroom Team - Designer/Developer/Support
FAQ-Docs-Help Videos

updated by @douglas: 12/29/14 09:23:54AM
soaringeagle
@soaringeagle
11 years ago
3,304 posts
awesome thnx


--
soaringeagle
head dreadhead at dreadlocks site
glider pilot student and member/volunteer coordinator with freedoms wings international soaring for people with disabilities

updated by @soaringeagle: 12/29/14 09:23:54AM
soaringeagle
@soaringeagle
11 years ago
3,304 posts
ive worked with enough php scripts that i should have been able to figure that out haha but for some reason was thinking it would be something in the database...
thats what happens when its been over a year since i had to configure any php shops or anything


--
soaringeagle
head dreadhead at dreadlocks site
glider pilot student and member/volunteer coordinator with freedoms wings international soaring for people with disabilities

updated by @soaringeagle: 12/29/14 09:23:54AM
soaringeagle
@soaringeagle
11 years ago
3,304 posts
yikes after changing that to www it loged me out and now when i try to login i get
a system level error was encountered trying to validate the form values: error:

im assumming its a cookies domain setting
ill search for it but in case i cant find it if u know whats causing this please let me know


--
soaringeagle
head dreadhead at dreadlocks site
glider pilot student and member/volunteer coordinator with freedoms wings international soaring for people with disabilities

updated by @soaringeagle: 12/29/14 09:23:54AM
soaringeagle
@soaringeagle
11 years ago
3,304 posts
ok the only thing im able to find is cookies in the database under jruser_cookies
i cleared browser cache and cookies ofcourse im hesitant to drop the cookies tables without being sure thats what i should do
but that is the only thing i can possibly find that could be causing this errior


--
soaringeagle
head dreadhead at dreadlocks site
glider pilot student and member/volunteer coordinator with freedoms wings international soaring for people with disabilities

updated by @soaringeagle: 12/29/14 09:23:54AM
soaringeagle
@soaringeagle
11 years ago
3,304 posts
cant create accounts either everything says cannot validate form data...going to poke around in the databsse see if i cant figure iyt out since cant find any configuration issues


--
soaringeagle
head dreadhead at dreadlocks site
glider pilot student and member/volunteer coordinator with freedoms wings international soaring for people with disabilities

updated by @soaringeagle: 12/29/14 09:23:54AM
soaringeagle
@soaringeagle
11 years ago
3,304 posts
im lost guys i reset it to not use the www and am able to login
i cant find anything in the database to explain it on a hunch i looked through the core config the router config router php (i barely can grask the php code but from the impression i got...pure brilliance)
i looked at varius htAccess files for clues


i think it must be the cookes tables however i think it was somethi9ng like jr_user_url or something every table in there had the non www url i tried a repair tables etc hoping it would poick up the config changes


so..my only theories are its the cookies or that jr_user_url thats interfering with form processing

wait 1 more theory i wonder if i open the page with the system integrity test change the config then run the test without reloading and being logged out?


--
soaringeagle
head dreadhead at dreadlocks site
glider pilot student and member/volunteer coordinator with freedoms wings international soaring for people with disabilities

updated by @soaringeagle: 12/29/14 09:23:54AM
paul
@paul
11 years ago
4,335 posts
Not sure about clearing the cookie table. I've never tried it so dunno if it would break things.
You could try emptying the /data/cache folder - I know that doesn't do any harm.
Also the jrCore_cache table if need be (I think I've done that before without any detrimental effect!!)


--
Paul Asher - JR Developer and System Import Specialist

updated by @paul: 12/29/14 09:23:54AM
soaringeagle
@soaringeagle
11 years ago
3,304 posts
ok thnx ill try and get back to u


--
soaringeagle
head dreadhead at dreadlocks site
glider pilot student and member/volunteer coordinator with freedoms wings international soaring for people with disabilities

updated by @soaringeagle: 12/29/14 09:23:54AM
soaringeagle
@soaringeagle
11 years ago
3,304 posts
nope neither worked to be safe i chsnged data cache to cachebak a nd created an empty cache folder tested it no go i then emptied that table tested it no go


any other suggestions?


--
soaringeagle
head dreadhead at dreadlocks site
glider pilot student and member/volunteer coordinator with freedoms wings international soaring for people with disabilities

updated by @soaringeagle: 12/29/14 09:23:54AM
soaringeagle
@soaringeagle
11 years ago
3,304 posts
im convinced now that its cookies as i changed it to www was logged out tried logging in and cant i switched back removing www clicked login and i was already logged in
so i never klogged out of the non www domain

the issue is that the cookies are subdomain specific ..

how are they working with the profile mapped domains or do they require a seperate login to those domains

but ofcorse theres the user_url thing that all have the non www version
and cantr see any way of bulk editing those urls im not a mysql expert but is there some sort of comand that could do a find and replace on the domains in that table


--
soaringeagle
head dreadhead at dreadlocks site
glider pilot student and member/volunteer coordinator with freedoms wings international soaring for people with disabilities

updated by @soaringeagle: 12/29/14 09:23:54AM
SteveX
SteveX
@ultrajam
11 years ago
2,584 posts
You don't need to rename your cache directories to cachebak. Just delete them.

It isn't a problem with cookies, but you could always try using a different browser if you are particularly worried about it.


--
¯\_(ツ)_/¯ Education, learning resources, TEL, AR/VR/MR, CC licensed content, panoramas, interactive narrative, sectional modules (like jrDocs), lunch at Uni of Bristol. Get in touch if you share my current interests or can suggest better :)

updated by @ultrajam: 12/29/14 09:23:54AM
soaringeagle
@soaringeagle
11 years ago
3,304 posts
ill try that

weirdness ie did alow me to login under www just not ff and i did a full cache clear..i didnt manualy delete cookies from the c=ookie folder or anything

but ie did login under www so ...hmm i never performed a logout in ff ending the session let me try that..


--
soaringeagle
head dreadhead at dreadlocks site
glider pilot student and member/volunteer coordinator with freedoms wings international soaring for people with disabilities

updated by @soaringeagle: 12/29/14 09:23:54AM
brian
@brian
11 years ago
10,149 posts
Is your .htaccess file setup properly to redirect non-www requests to www? Since you are using your domain with a www, any non-www requests MUST be 301 redirected to your www version or you will have issues.

Add this BELOW the "RewriteEngine On" line:

# HTTP
RewriteCond %{SERVER_PORT} ^80$
RewriteCond %{HTTP_HOST} ^yourdomain\.com [NC]
RewriteRule .? http://www.yourdomain.com%{REQUEST_URI} [R=301,L]

of course change "yourdomain" to your actual domain.

Then delete all files in data/cache/jrCore and data/cache/jrYourSkin

Log in and run an integrity check, then reset caches.

Hope this helps!


--
Brian Johnson
Founder and Lead Developer - Jamroom
https://www.jamroom.net

updated by @brian: 12/29/14 09:23:54AM
soaringeagle
@soaringeagle
11 years ago
3,304 posts
mark this solved i got it when clearing cache and cookies i didnt have offline data and site prefferences checked deleting those too for some reason fixed it ..


--
soaringeagle
head dreadhead at dreadlocks site
glider pilot student and member/volunteer coordinator with freedoms wings international soaring for people with disabilities

updated by @soaringeagle: 12/29/14 09:23:54AM

Tags