[Resolved] Access denied error when trying to edit pag
This thread is resolved. Here is a description of the problem and solution.
Problem: The client was experiencing an "access denied" message when trying to edit pages on a staging site after moving their servers to Azure. The issue occurred with any type of content related to languages and was present even when changing the language in the backend. The error 'TypeError: l(...).sortable is not a function' was also encountered.
Solution: We first asked the client to confirm if the problem was with translated content only and to provide more details about the content types affected. We also requested debug information for further investigation. Upon reviewing the situation, we found that deactivating the "WP File Manager" plugin resolved the "access denied" issue. We then advised the client that the 'TypeError' issue was likely caused by other third-party plugins and recommended updating all outdated plugins to resolve the problem. We confirmed that this error was unrelated to WPML.
Please note that this solution might be irrelevant due to being outdated or not applicable to your case. If you're still facing issues, we encourage you to open a new support ticket. We also highly recommend checking related known issues, verifying the version of the permanent fix, and confirming that you have installed the latest versions of themes and plugins. If further assistance is needed, please contact us through the WPML support forum.
This is the technical support forum for WPML - the multilingual WordPress plugin.
Everyone can read, but only WPML clients can post here. WPML team is replying on the forum 6 days per week, 22 hours per day.
Hello.
We are currently moving the servers to be Azure based for our website.
We have set up a staging site for testing purposes and have since run into some issues.
When we try to edit pages we get an "access denied" message. See the image.
We have identified WPML as the issue because deactivating it helped.
I have already set up a domain for the staging site in our WPML sites and have applied the relevant key to the pluging.
1. It arises whenever I want to edit any page regardless of whether it actually has any active translations or not.
2. The issue seems to happen with any type of content that is related to languages.
This includes just changing language in the backend of the wordpress site.
See the image "language 2" for what i mean when I say changing language in the backend.
3. On the LIVE version of the site that functions I mostly edit using the regular wordpress editor rather than the WPML editor.
On the staging site where the error arises, I don't get to edit at all so I can use neither.
4. When creating new content (new pages) I get this error instead. See picture (language 1)
5. When we try to edit a page we can get from the "Access denied" screen to the actual error message from the language 1 picture by getting rid of the "=da" part of the link. So the language related part.
See "language link" picture for more info.
PS. I have now added the debug information to the support ticket.
For the record, the error I can copy in language 1 is this.
TypeError: l(...).sortable is not a function
at Object.init (hidden link)
at Object.add_postbox_toggles (hidden link)
at hidden link
at hidden link
at hidden link
at hidden link
at Object.dispatch (hidden link)
at Object.initializeMetaBoxes (hidden link)
at hidden link
at Ur (hidden link)
I will need to closely examine your website. Therefore, I will require temporary access (WP-Admin and FTP) to a test site where the problem has been replicated, if possible. This will enable me to provide better assistance and determine if any configurations need to be modified.
Please note that it is important to have a backup for security purposes and to prevent any potential data loss. You can use the UpdraftPlus plugin (https://wordpress.org/plugins/updraftplus/) to fulfill your backup requirements.
Your upcoming reply will be treated with confidentiality and will only be visible to you and me.
✙ To resolve the issue, I may need your consent to deactivate and reactivate plugins and the theme, as well as make configuration changes on the site if necessary. This emphasizes the significance of having a backup.
Upon reviewing your debug information, I have observed that the PHP limit for your "WP Memory Limit" is lower than the recommended 256MB or the required 128MB, as mentioned in the documentation found at: https://wpml.org/home/minimum-requirements/. To resolve this, I kindly request that you contact your hosting provider and request an increase in the PHP value for you.
Indeed, that seems to have fixed the "access denied" issue.
The last remaining issue is the error that now shows up after actually accessing the pages.
Do you think this one has anything to do with WPML?
Some of the people here are of the opinion it is unrelated and we need to work it out through the PHP somehow.
If it is, indeed, unrelated then your work here is done as you have no real reason to help us with the rest.
Thank you very much.
TypeError: l(...).sortable is not a function
at Object.init (hidden link)
at Object.add_postbox_toggles (hidden link)
at hidden link
at hidden link
at hidden link
at hidden link
at Object.dispatch (hidden link)
at Object.initializeMetaBoxes (hidden link)
at hidden link
at Ur (hidden link)