HTML Logo by World Wide Web Consortium (www.w3.org). Click to learn more about our commitment to accessibility and standards.

Moving forward with Composr

ocPortal has been relaunched as Composr CMS, which is now in beta. ocPortal 9 will be superseded by Composr 10.

Head over to compo.sr for our new site, and to our migration roadmap. Existing ocPortal member accounts have been mirrored.


RESOLVED - Error regarding cookie domain during install

Login / Search

 [ Join | More ]
 Add topic 
Posted
Rating:
#63346 (In Topic #13722)
Avatar

Fan in action

Keep getting Error regarding cookie domain during install

I have been trying for 3 hours to get this cms installed but keep getting errors.
The error I am getting is:

The cookie domain must either be blank or correspond to some or all of the domain in the base URL (which is www.jlcweb.ca). It must also start with a dot, so a valid example is .www.jlcweb.ca.

The base URL is in fact: www.jlcweb.ca/ocPortal and the data entered into the "Cookie domain" field is exactly the same yet I keep getting this error. I don't know why the error message is saying that the base URL is www.jlcweb.ca and does not include the "/ocPortal" in the path. I tried leaving the "/ocPortal" out of the path of the base URL but still get the same error.

Very very frustrating. Anyone else ever had this problem or can anyone suggest the cause and a resolve?

Thanks

Back to the top
 
Posted
Rating:
#63347
Avatar

Just as it says on the end of that error, use ".www.jlcweb.ca". Or just leave it blank.

English is an ambiguous language sometimes but we're saying the "domain in the base URL" is "www.jlcweb.ca", not the "base URL" is "www.jlcweb.ca". And it must then be given a dot in front of it.


Become a fan of ocPortal on Facebook or add me as a friend. Add me on on Twitter.
Was I helpful?
  • If not, please let us know how we can do better (please try and propose any bigger ideas in such a way that they are fundable and scalable).
  • If so, please let others know about ocPortal whenever you see the opportunity.
  • If my reply is too Vulcan or expressed too much in business-strategy terms, and not particularly personal, I apologise. As a company & project maintainer, time is very limited to me, so usually when I write a reply I try and make it generic advice to all readers. I'm also naturally a joined-up thinker, so I always express my thoughts in combined business and technical terms. I recognise not everyone likes that, don't let my Vulcan-thinking stop you enjoying ocPortal on fun personal projects.
  • If my response can inspire a community tutorial, that's a great way of giving back to the project as a user.
Back to the top
 
Posted
Rating:
#63349
Avatar

Fan in action

Actually I tried using ".www.jlcweb.ca" and I also tried leaving it blank but I get the same error in both cases. I have installed it in a folder called ocPortal on the root.

Thanks
Back to the top
 
Posted
Rating:
#63350
Avatar

Definitely exactly the same error?
And definitely blank (no blank spaces in there for example)?


Become a fan of ocPortal on Facebook or add me as a friend. Add me on on Twitter.
Was I helpful?
  • If not, please let us know how we can do better (please try and propose any bigger ideas in such a way that they are fundable and scalable).
  • If so, please let others know about ocPortal whenever you see the opportunity.
  • If my reply is too Vulcan or expressed too much in business-strategy terms, and not particularly personal, I apologise. As a company & project maintainer, time is very limited to me, so usually when I write a reply I try and make it generic advice to all readers. I'm also naturally a joined-up thinker, so I always express my thoughts in combined business and technical terms. I recognise not everyone likes that, don't let my Vulcan-thinking stop you enjoying ocPortal on fun personal projects.
  • If my response can inspire a community tutorial, that's a great way of giving back to the project as a user.
Back to the top
 
Posted
Rating:
#63354
Avatar

Fan in action

Exactly the same error and no blank spaces. Would it have something to do with the fact that it is in a folder on the root?
Back to the top
 
Posted
Rating:
#63360
Avatar

Fan in action

The error has to do with the fact that ocPortal was installed in a directory on the root.
It is installed in a directory called "ocPortal". If during the install I set the Base URL to "www.jlcweb,ca/ocPortal", (had to leave off the http part because this editor flags it as a broken link), and I set the Cookie domain to ".www.jlcweb,ca/ocPortal" I get the error saying that the cookie domain must use all or part of the Base URL which is "jlcweb.ca".

If I change the Base URL to "JLCweb.ca" without the "/ocPortal" and change the Cookie domain to ".www.jlcweb.ca" (again without the "/ocPortal" it seems to complete the install.

However, if I click on "Configure my ocPortal first" I get the following error:

Not Found

The requested URL /adminzone/index.php was not found on this server.

Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.

If I click on "Go to my new web site now" it goes to a page on the server that simply displays the domain name and the name of my hosting company.

It obviously cannot find ocPortal because the Base URL and the Cookie domain does not have the directory "ocPortal" in the path yet it if the directory is included in the path, it won't install at all.

I can't figure out why it will not accept the path with the directory included in it.
Back to the top
 
Posted
Rating:
#63368
Avatar

To be honest, I think you're getting very confused about the fields, I don't think it's a bug. I've run quite a few tests and looked over the code very carefully, and if the cookie domain is blank the cookie domain checks don't even get run. This code is also very old so it's been out there in use a while.
There is a very slight possibility of the code being corrupted or some weird caching bug on your server, but I don't think that's very likely at all.

There's a second very similar error about cookie paths which is something like "The cookie path must either be blank or correspond with some or all of the path in the base URL (which is Unknown Domain).". I think you probably had both an invalid cookie domain and an invalid cookie path, and when you left the cookie domain blank you saw the cookie path error and it looked similar so you probably thought it the same message.

If you just leave all the cookie settings as defaults (i.e. start the installer and don't change them at all) I'm sure it won't complain.

I think your main point of confusion is about the differences between URLs, domains, cookie domains, and paths.

A URL is like http://example.com/foo/

A domain is like example.com (i.e. it has no path or anything else – just the domain name)

A cookie domain is like a domain but is either blank or starts with a dot, like .example.com.
I know that's confusing – you can blame Netscape for that one though.

A path is like /foo/.


Become a fan of ocPortal on Facebook or add me as a friend. Add me on on Twitter.
Was I helpful?
  • If not, please let us know how we can do better (please try and propose any bigger ideas in such a way that they are fundable and scalable).
  • If so, please let others know about ocPortal whenever you see the opportunity.
  • If my reply is too Vulcan or expressed too much in business-strategy terms, and not particularly personal, I apologise. As a company & project maintainer, time is very limited to me, so usually when I write a reply I try and make it generic advice to all readers. I'm also naturally a joined-up thinker, so I always express my thoughts in combined business and technical terms. I recognise not everyone likes that, don't let my Vulcan-thinking stop you enjoying ocPortal on fun personal projects.
  • If my response can inspire a community tutorial, that's a great way of giving back to the project as a user.
Back to the top
 
Posted
Rating:
#63382
Avatar

Fan in action

I appreciate all the help Chris and I would really like to get this thing up and running because I really like the ability to have a forum already integrated. I really don't want to use some other portal and have to use a bridge to integrate some external forum software.

Actually, I tried leaving everything as it was, (default), but as mentioned in the post above, it appeared to install ok but when you try to go to "Configure my ocPortal first" it says the adminzone is not found on the server and if you try to go to the site itself, I can't find that either.

I don't suppose I could get someone there to install it for me? I'd be interested to see if the same problem is encountered.

Thanks again for your help and your patience.
Back to the top
 
Posted
Rating:
#63384
Avatar

Actually I think this is fairly simple – that will be a wrong base URL. The base URL DOES need a path on it if you are installing under a path. So that does need to be correct. But again the installer should auto-detect that correctly.
http://www.jlcweb.ca/ocPortal

If that still hasn't worked submit a ticket.

I just noticed the base URL you said you were entering contained a comma before "ca" instead of a dot, but I have fixed it above.


Become a fan of ocPortal on Facebook or add me as a friend. Add me on on Twitter.
Was I helpful?
  • If not, please let us know how we can do better (please try and propose any bigger ideas in such a way that they are fundable and scalable).
  • If so, please let others know about ocPortal whenever you see the opportunity.
  • If my reply is too Vulcan or expressed too much in business-strategy terms, and not particularly personal, I apologise. As a company & project maintainer, time is very limited to me, so usually when I write a reply I try and make it generic advice to all readers. I'm also naturally a joined-up thinker, so I always express my thoughts in combined business and technical terms. I recognise not everyone likes that, don't let my Vulcan-thinking stop you enjoying ocPortal on fun personal projects.
  • If my response can inspire a community tutorial, that's a great way of giving back to the project as a user.
Back to the top
 
Posted
Rating:
#63391
Avatar

Fan in action

Thanks Chris. The comma was just a typo in the post.
I already tried using "www.jlcweb.ca/ocPortal/" with and without the forward slash in the Base URL (including the http:// as well as using .www.jlcweb.ca/ocPortal/ in the Cookie domain and it will not accept it. It just keeps coming back saying that it should be jlcweb.ca.

I'll try it yet again though and let you know what happens.
Back to the top
 
Posted
Rating:
#63392
Avatar

This is all very confusing for me to follow to be honest. It should be so simple. Don't touch the default settings for the cookie domain or path at all, not a single change, and the same goes for the base URL.

If you do that, does it give an error, or work?

If it does not work, tell me what the default (auto-detected) base URL, cookie domain, and cookie path are and the exact error message.

Please please, don't change anything from the defaults, use the defaults, and if it doesn't work then let us know why.


Become a fan of ocPortal on Facebook or add me as a friend. Add me on on Twitter.
Was I helpful?
  • If not, please let us know how we can do better (please try and propose any bigger ideas in such a way that they are fundable and scalable).
  • If so, please let others know about ocPortal whenever you see the opportunity.
  • If my reply is too Vulcan or expressed too much in business-strategy terms, and not particularly personal, I apologise. As a company & project maintainer, time is very limited to me, so usually when I write a reply I try and make it generic advice to all readers. I'm also naturally a joined-up thinker, so I always express my thoughts in combined business and technical terms. I recognise not everyone likes that, don't let my Vulcan-thinking stop you enjoying ocPortal on fun personal projects.
  • If my response can inspire a community tutorial, that's a great way of giving back to the project as a user.
Back to the top
 
Posted
Rating:
#63393
Avatar

Oh, and you may need to delete the info.php file generated to get those defaults back, I forgot about that. Maybe your problem is you did it wrong once by changing the defaults, and since then have not got back to the defaults due to the info.php being used to re-choose the default settings.


Become a fan of ocPortal on Facebook or add me as a friend. Add me on on Twitter.
Was I helpful?
  • If not, please let us know how we can do better (please try and propose any bigger ideas in such a way that they are fundable and scalable).
  • If so, please let others know about ocPortal whenever you see the opportunity.
  • If my reply is too Vulcan or expressed too much in business-strategy terms, and not particularly personal, I apologise. As a company & project maintainer, time is very limited to me, so usually when I write a reply I try and make it generic advice to all readers. I'm also naturally a joined-up thinker, so I always express my thoughts in combined business and technical terms. I recognise not everyone likes that, don't let my Vulcan-thinking stop you enjoying ocPortal on fun personal projects.
  • If my response can inspire a community tutorial, that's a great way of giving back to the project as a user.
Back to the top
 
Posted
Rating:
#63394
Avatar

This is frustrating me quite a bit, because I think you're fixing one field, but then putting something wrong in another, and I don't like to see you end up in circles. All the error messages I've seen here are accurate - they refer to real problems in the values input. And, ocPortal should work them all out for you, so there should be no way the incorrect values should ever have been able to get there unless you change them (in which case it's key to change them to something also valid).
I tried to explain what goes in the fields above, but maybe I can be a bit clearer…

Base URL:

http://www.jlcweb.ca/ocPortal
CORRECT

http://www.jlcweb.ca
WRONG. If you have put the installer under /ocPortal, the base URL you specify has to be under that too. The base URL depends on where you have put the installer.

www.jlcweb.ca/ocPortal
WRONG. http:// is required.

http://www.jlcweb.ca/something
WRONG. The base URL has to match where you have put the installer.

Cookie domain:

.www.jlcweb.ca (blank)
CORRECT

.jlcweb.ca (blank)
CORRECT

 (blank)
CORRECT

jlcweb.ca (blank)
WRONG. No dot on the front.

.jlcweb.ca/ocPortal (blank)
WRONG. A domain never ever contains a path part.

.foo.com (blank)
WRONG. The domain has to match where you're installing to.


Become a fan of ocPortal on Facebook or add me as a friend. Add me on on Twitter.
Was I helpful?
  • If not, please let us know how we can do better (please try and propose any bigger ideas in such a way that they are fundable and scalable).
  • If so, please let others know about ocPortal whenever you see the opportunity.
  • If my reply is too Vulcan or expressed too much in business-strategy terms, and not particularly personal, I apologise. As a company & project maintainer, time is very limited to me, so usually when I write a reply I try and make it generic advice to all readers. I'm also naturally a joined-up thinker, so I always express my thoughts in combined business and technical terms. I recognise not everyone likes that, don't let my Vulcan-thinking stop you enjoying ocPortal on fun personal projects.
  • If my response can inspire a community tutorial, that's a great way of giving back to the project as a user.
Back to the top
 
Posted
Rating:
#63399
Avatar

Fan in action

Thanks again Chris. I understood what you were saying but perhaps I was not clear in my explanations.
I used all of the paths that you listed in your previous post with no luck. It goes through the process and says that it is successful but when you click on the link to "Configure my ocPortal first" it says the adminzone is not found on the server.

Anyway, what I did was to try to install it on one of my other sites on another server where I could install it in the root and not have to install it in a folder. Even there, the default FTP path was incorrect. It displayed the default as /www which is incorrect and it would not install. I changed it to the correct FTP path which is /www/www and it installed successfully.

I still have a long way to go to get the site set up but the one problem I have right off the top is that I chose not to force people to join and to allow all users access but when I browse to the web site it displays a login box that says join or log in. I'm trying to see where in the set up I can turn that off.

Thanks again for all your help and your extreme patience. It is REALLY appreciated.
Back to the top
 
Posted
Rating:
#63403
Avatar

"when you click on the link to "Configure my ocPortal first" it says the adminzone is not found on the server." - that would be a bad base URL. One possibility is case sensitivity. You can change the base URL manually after installing via editing info.php.

You need to grant Guests access to the site zone using the permission tree editor or by editing the zone.


Become a fan of ocPortal on Facebook or add me as a friend. Add me on on Twitter.
Was I helpful?
  • If not, please let us know how we can do better (please try and propose any bigger ideas in such a way that they are fundable and scalable).
  • If so, please let others know about ocPortal whenever you see the opportunity.
  • If my reply is too Vulcan or expressed too much in business-strategy terms, and not particularly personal, I apologise. As a company & project maintainer, time is very limited to me, so usually when I write a reply I try and make it generic advice to all readers. I'm also naturally a joined-up thinker, so I always express my thoughts in combined business and technical terms. I recognise not everyone likes that, don't let my Vulcan-thinking stop you enjoying ocPortal on fun personal projects.
  • If my response can inspire a community tutorial, that's a great way of giving back to the project as a user.
Back to the top
 
Posted
Rating:
#63408
Avatar

Fan in action

Thanks again Chris. I do really appreciate your help.
ocPortal is just loaded with features, (many more than I would use), and it'll take a little time to get familiar with it but I'm sure it will resolve my problem of not having to bridge an external forum program like vBulletin or phpBB. :)
Back to the top
 
1 guests and 0 members have just viewed this: None
Control functions:

Quick reply   Contract

Your name:
Your message: