Please help. I've search everywhere and can't find an answer.

Drupal 7 - Omega Theme

It was running just great on our DEV server, but once we copied it to our production server and pointed the domain name nobody can log in.

All the site pages work fine. We're navigating the site perfectly. But trying to log in as an administrator produces "You are not authorized to access this page." Can't even change passwords.

We also have a CAS system that can log people in, but that isn't working either. Both login methods were working prior to the server migration.

Tried...
- Clearing caches
- Flushing DNS
- Checking database for missing users or permissions

What next?

Please help.
Thanks

Comments

aboutwd’s picture

OK, I found the solution to my login problem.

When we migrated the site to the new server, I forgot to change the $cookie_domain variable in the settings.php file. It was still pointing to our old server, blocking any admin login.

The file was found here: sites/default/settings.php
PHP variable name: $cookie_domain = 'example.com'; (line 340)

Hope this is helpful to someone.

kristofferwiklund’s picture

I had the same problem. And the same solution solved my problem.

Thanks!!

fkatsukawa’s picture

I had the same here too, problem solved, thanks!

mmarinescu’s picture

Thanks, this solved my "The theme registry is being rebuilt on every page request" error message that was appearing each time. On my Zen theme.

Patil_kunal27’s picture

Thanks your solution work for me

The file was found here: sites/default/settings.php
PHP variable name: $cookie_domain = 'example.com'; (line 340)

Kalanka’s picture

Frankly, I want to know what should we do with that $
cookie_domain

sagar sigdel’s picture

In Drupal 8.4 there is no $cookie_domain variable in setting.php file. I have a same problem 

 But trying to log in as an administrator Access Denied  "You are not authorized to access this page."

Can't even change passwords. Can some body please help me..

shrinivas_reddy’s picture

Thank a lot for your response.It is working for me

sagar sigdel’s picture

In Drupal 8.4 there is no $cookie_domain variable in setting.php file. I have a same problem 

 But trying to log in as an administrator Access Denied  "You are not authorized to access this page."

Can't even change passwords. Can some body please help me..

minsoehan’s picture

I have same problem in Drupal 8.5. I don't find solution yet. Yes, there is no $cookie_domain in settings.php file.

Please help...

severus lily’s picture

got any solution for this?

fgyangqing’s picture

three years later~