Skip Navigation

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.

This topic contains 6 replies, has 2 voices.

Last updated by Kor 1 year, 4 months ago.

Assisted by: Kor.

Author Posts
March 4, 2024 at 10:02 am #15368538

trineR-6

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.

What can we do to fix this issue?

accesss.png
March 4, 2024 at 3:31 pm #15370723

Kor
WPML Supporter since 08/2022

Languages: English (English )

Timezone: Asia/Singapore (GMT+08:00)

Hello,

Thank you for contacting us. I have some inquiries:

1) Does this problem arise solely with translated content or does it also affect original translations?

2) Is this issue specific to certain content types (such as posts, pages, templates, etc)?

3) For the original content, do you utilize the WPML Translation Editor located in the right sidebar for translation purposes?

4) Are you able to replicate the issue with newly created test content, or does it exclusively manifest with existing content?

To help speed up the support process, I've enabled a private message for submitting the debug information for this support ticket. Please follow these initial debugging steps:
https://wpml.org/faq/provide-debug-information-faster-support/

March 5, 2024 at 8:07 am #15372855

trineR-6

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)

language link.png
language 1.png
language 2.png
March 5, 2024 at 9:51 am #15373462

Kor
WPML Supporter since 08/2022

Languages: English (English )

Timezone: Asia/Singapore (GMT+08:00)

Thanks for your reply.

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.

March 5, 2024 at 1:53 pm #15374828

Kor
WPML Supporter since 08/2022

Languages: English (English )

Timezone: Asia/Singapore (GMT+08:00)

Thanks for your reply.

When I deactivated the "WP File Manager" plugin, the issue is fixed. Could you check?

March 5, 2024 at 1:58 pm #15374846

trineR-6

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)

language 1.png
March 5, 2024 at 2:02 pm #15374870

Kor
WPML Supporter since 08/2022

Languages: English (English )

Timezone: Asia/Singapore (GMT+08:00)

Thanks for your reply.

It's probably caused by your other 3rd party plugins. Please update all outdated plugins and try again. Also, this is unrelated to WPML.