Oh no! Where's the JavaScript?
Your Web browser does not have JavaScript enabled or does not support JavaScript. Please enable JavaScript on your Web browser to properly view this Web site, or upgrade to a Web browser that does support JavaScript.
Sign In
Not a member yet? Click here to register.

Use of undefined constant COOKIE_DOMAIN - assumed 'COOKIE_DOMAIN'

I have been tons of these errors in the error log since the upgrade to 9.03.00 and didn't go away with 9.03.20.

Authenticate.inc
/infusions/forum/index.php?forum_id=12&sort=subject&viewforum
Line: 462
4 minutes ago

Severity : Run-time notices
Use of undefined constant COOKIE_DOMAIN - assumed 'COOKIE_DOMAIN'


if i remove COOKIE_DOMAIN from: Authenticate::_setCookie(COOKIE_LASTVISIT, $lastvisit, time() + 3600, COOKIE_PATH, COOKIE_DOMAIN, FALSE, TRUE);

it goes away but I am not sure if I need to do that. Any idea?
You have the definitions made here,
https://github.com/php-fusion/PHP-Fusion/blob/Andromeda/includes/classes/PHPFusion/Authenticate.inc#L20-L34

Are you running one or multiple domains? , First part is for multiple.
Also take a look in your site_host table under settings it should be your domain, like here for example www.php-fusion.co.uk
No slashes or anything else but www.domain.com
Thank you Falk!

I had missed the www. in front of the site name in site_host and I had another entry (same as site_host) in Domain Servers. Removed it from Domain servers, added the www. in site host and error stopped appearing.
Thanks again.
Thread Information
Author
Replies
3 posts
Views
263 times
Last Post
Last updated on 6 months ago
You can view all discussion threads in this forum.
You cannot set up a bounty in this discussion thread.
You can start a new discussion thread in this forum.
You cannot reply in this discussion thread.
You cannot start on a poll in this forum.
You cannot upload attachments in this forum.
You can download attachments in this forum.
You cannot up or down-vote on the post in this discussion thread.
Users who participated in discussion: Falk, amigamia