#56755 closed defect (bug) (worksforme)
Error for theme customize or blank page for site editor in WordPress installed in subdirectory but accessed from root
Reported by: |
|
Owned by: | |
---|---|---|---|
Milestone: | Priority: | normal | |
Severity: | normal | Version: | |
Component: | Customize | Keywords: | |
Focuses: | Cc: |
Description
The background is that:
- WordPress 6.0.2.
- WordPress is installed in a subdirectory, e.g., https://www.example.com/wordpress .
- It's accessed from root, e.g., https://www.example.com/. The configuration used is "Method II" on page https://wordpress.org/support/article/giving-wordpress-its-own-directory/ .
- All admin pages and customized slugs can be correctly accessed from URLs via the root path.
The errors I have are:
- If using themes 2020 or 2021, using Customize under the Appearance menu, the page will finally say "You need a higher level of permission. Sorry, you are not allowed to customize this site.".
- If using theme 2022, using the "beta" Editor under the Appearance menu, the page is blank. When I opened F12 the developer tools screen, switched to network tab and refreshed the page, the following 3 requests are red:
/wp-json/wp/v2/blocks?context=edit&per_page=100&_locale=user /wp-json/wp/v2/settings?_locale=user /wp-json/wp/v2/templates/twentytwentytwo//home?context=edit&_locale=user
All of them were responded with the following message:{"code":"rest_cookie_invalid_nonce","message":"Cookie check failed","data":{"status":403}}
Refer to the attachments for the above messages.
Attachments (2)
Change History (4)
#1
@
3 years ago
- Resolution set to worksforme
- Status changed from new to closed
Hmm, the above was done in Microsoft Edge InPrivate window. Tried again by closing the private window and reopen one for the site, all seems to be working. And they also work from other browsers now. Not sure what has really changed, weird. Will close the ticket.
Note: See
TracTickets for help on using
tickets.
The message in problem 1.