Cookies issue in admin dashboard login [resolved]

I can’t log in to my admin for says cookies is blocked

URL is Saveworldpets.ga/wp-admin

What about now? :slight_smile:

1 Like

still the same thing

Hi @QuinnRoyalty

  • Access your Functions.php file with file manager (files.000webhost.com)
  • Add the following code to the bottom of the functions.php file:

setcookie(TEST_COOKIE, ‘WP Cookie check’, 0, COOKIEPATH, COOKIE_DOMAIN);
if ( SITECOOKIEPATH != COOKIEPATH ) setcookie(TEST_COOKIE, ‘WP Cookie check’, 0, SITECOOKIEPATH, COOKIE_DOMAIN);
Upload/Save your Functions.php file

2 Likes

I added it, now it’s showing error 500

1 Like

May be some problem with the code. Add following to your .htaccess file and try again.

php_value display_errors 1

1 Like

Parse error: syntax error, unexpected ‘Cookie’ (T_STRING), expecting ‘,’ or ‘)’ in /storage/ssd5/763/2058763/public_html/wp-content/themes/explore/functions.php on line 176

Can you post line 176 in functions.php file?

1 Like

I should count the lines??

No, just remove the code i gave you. I’ll try to find another solution.

1 Like

@QuinnRoyalty

Now check whether you can log in.

Additionally, are you using domain mapping feature?

1 Like

I logged in, how did you do it please?

Is your problem fixed now?

yeah it is, thanks so much