• 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

    (@bcworkz)

    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.