Title: Site Cookie Path Error
Last modified: August 23, 2020

---

# Site Cookie Path Error

 *  [Alex](https://wordpress.org/support/users/expofield/)
 * (@expofield)
 * [5 years, 9 months ago](https://wordpress.org/support/topic/site-cookie-path-error/)
 * Hey, guys!
    Hope you’re doing well!
 * I’ve changed the admin URL manually, but obviously, this code:
 * > define( ‘ADMIN_COOKIE_PATH’, SITECOOKIEPATH . WP_ADMIN_DIR);
 * doesn’t work properly.
 * Followed by many notices in the error log file such as:
 * > PHP Warning: Use of undefined constant SITECOOKIEPATH – assumed ‘SITECOOKIEPATH’(
   this will throw an Error in a future version of PHP)

Viewing 1 replies (of 1 total)

 *  Moderator [bcworkz](https://wordpress.org/support/users/bcworkz/)
 * (@bcworkz)
 * [5 years, 9 months ago](https://wordpress.org/support/topic/site-cookie-path-error/#post-13333195)
 * Do you have a multisite installation? SITECOOKIEPATH is only defined for multisite.
   Where did you add your code? The constant may not have yet been defined even 
   if you do use multisite.
 * Are you sure WP_ADMIN_DIR is relative to a site path? I’d expect it to be a full
   absolute path, so you cannot prepend a site path to it. You’d have to extract
   the part that’s relative to the site path before prepending another path.

Viewing 1 replies (of 1 total)

The topic ‘Site Cookie Path Error’ is closed to new replies.

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 1 reply
 * 2 participants
 * Last reply from: [bcworkz](https://wordpress.org/support/users/bcworkz/)
 * Last activity: [5 years, 9 months ago](https://wordpress.org/support/topic/site-cookie-path-error/#post-13333195)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
