- Nov 21, 2024
- 173
- 17
- 41
good day dear Friends
- hello dear experts
the issue: no access to admin-page: "Sorry, you are not allowed to access this page" - what could fix this?
i am facing a very interesting issue: logged in, but WordPress says:
"no access to admin-page: "Sorry, you are not allowed to access this page"
well - what could fix this funny issue?
note: i ve had a issue with the creating of salt .. but this is fixed now
see here: https://forums.anandtech.com/thread...password_hash-cannot-generate-a-salt.2632690/ for full infos on the hard issues that i had on the server.
so i have come a long way - but at the moment i cannot access the WordPress-admin - area:
but yes: i am now really close to the finish line now – ive 've finally overcome the most difficult problem (password_hash) which is a real pain.
Now i just need to clear the WordPress layer - therefore i have done some steps.
Well - what i have tried - i did a whole lot - to get things nailed down - but untill now i have no luck i cannt access the Admin-Area!?
i tried to run serveral SQL-Commands: ( i will try to describe the steps below )
1 User Level to set new
hmm - i guess that i delete first and step the new data:
well i a next step i think i could do the following:
2 Reset User Levels
that means that i could now delete and reset the following:
and subsequently i think it would be a option to
3 WordPress Recompute Capabilities
WordPress sometimes caches the roles.
Therefore, i think it would be necesary to reset the cache key:
but even after the whole steps- well i still struggle with the error - what causes WordPress to recreate the role system.
belive me at the moment i face the issue:
🔹 Still "Access Denied"
or
🔹 Are you now able to access the backend?
so at the moment i can log in - as a user that has the "admin capabilities":
( one that has got but then i get: -.while attempting to access the admin -page with www.mypage.com/wp-admin.php
the system throws an ugly error message: “Sorry, you are not allowed to access this page.”
hmm - well this means:my Login is correct
but besides this: WordPress does not recognize me as an administrator
➡So the problem is no longer on the server ,(note ive had that in earlier times - as i have described above) but within WordPress, specifically with the user's metadata.
how to fix this permanently now – directly in the database.
questions that arise:
could it have to do with the admin-role?! That said i think it could be a multi-stage process that i have to run through:
a week ago i struggled with the issue that the wp did not creat hash - at the login: now it works - with (after the ) following changes
see the link: https://forums.anandtech.com/thread...password_hash-cannot-generate-a-salt.2632690/
Any ideas - what can solve the issue with the error that the system throws:
but at the moment i do not have any access to the admin-area will continue to work tomorrow -a nd i will keep you informed
look forward to hear from you
thanks for any and all tipp
greetings
the issue: no access to admin-page: "Sorry, you are not allowed to access this page" - what could fix this?
i am facing a very interesting issue: logged in, but WordPress says:
"no access to admin-page: "Sorry, you are not allowed to access this page"
well - what could fix this funny issue?
note: i ve had a issue with the creating of salt .. but this is fixed now
see here: https://forums.anandtech.com/thread...password_hash-cannot-generate-a-salt.2632690/ for full infos on the hard issues that i had on the server.
so i have come a long way - but at the moment i cannot access the WordPress-admin - area:
but yes: i am now really close to the finish line now – ive 've finally overcome the most difficult problem (password_hash) which is a real pain.
Now i just need to clear the WordPress layer - therefore i have done some steps.
Well - what i have tried - i did a whole lot - to get things nailed down - but untill now i have no luck i cannt access the Admin-Area!?
i tried to run serveral SQL-Commands: ( i will try to describe the steps below )
1 User Level to set new
hmm - i guess that i delete first and step the new data:
Code:
DELETE FROM database1.wp_usermeta
WHERE user_id = 3 AND meta_key = 'wp_user_level';
INSERT INTO kampa1.wp_usermeta (user_id, meta_key, meta_value)
VALUES (3, 'wp_user_level', '10');
well i a next step i think i could do the following:
2 Reset User Levels
that means that i could now delete and reset the following:
Code:
DELETE FROM database1.wp_usermeta
WHERE user_id = 3 AND meta_key = 'wp_user_level';
INSERT INTO kampa1.wp_usermeta (user_id, meta_key, meta_value)
VALUES (3, 'wp_user_level', '10');
and subsequently i think it would be a option to
3 WordPress Recompute Capabilities
WordPress sometimes caches the roles.
Therefore, i think it would be necesary to reset the cache key:
Code:
DELETE FROM kampa1.wp_options
WHERE option_name = 'wp_user_roles';
but even after the whole steps- well i still struggle with the error - what causes WordPress to recreate the role system.
belive me at the moment i face the issue:
🔹 Still "Access Denied"
or
🔹 Are you now able to access the backend?
so at the moment i can log in - as a user that has the "admin capabilities":
( one that has got but then i get: -.while attempting to access the admin -page with www.mypage.com/wp-admin.php
the system throws an ugly error message: “Sorry, you are not allowed to access this page.”
hmm - well this means:my Login is correct
but besides this: WordPress does not recognize me as an administrator
➡So the problem is no longer on the server ,(note ive had that in earlier times - as i have described above) but within WordPress, specifically with the user's metadata.
how to fix this permanently now – directly in the database.
questions that arise:
could it have to do with the admin-role?! That said i think it could be a multi-stage process that i have to run through:
a week ago i struggled with the issue that the wp did not creat hash - at the login: now it works - with (after the ) following changes
see the link: https://forums.anandtech.com/thread...password_hash-cannot-generate-a-salt.2632690/
Code:
ARGON HASH OUTPUT: [$argon2id$v=19$m=65536,t=4,p=1$K4TeU6SzVTtPOkr7TCkTnw$7D4pQ0m/JT71ihkoyk+bpcq1oJldk7P7wr6+UHQXrkQ]
phpinfo() relevant excerpts
PHP-Version: 8.4.14
open_basedir:
disable_functions:
session.entropy_file:
session.entropy_length:
Any ideas - what can solve the issue with the error that the system throws:
but at the moment i do not have any access to the admin-area will continue to work tomorrow -a nd i will keep you informed
look forward to hear from you
thanks for any and all tipp
greetings
Last edited:
