Перейти к содержимому Перейти к боковой панели

Эта тема решена. Вот описание проблемы и ее решения.

Problem:
After moving your site from a local environment to a live server, you are encountering 405 (Method Not Allowed) errors in the console. These errors are affecting site functionality, including updating permalinks and localization issues for translations.
Solution:
We recommend updating your WPML to version 4.8.3, as this has resolved similar issues in our tests. You can find the latest version in your account under My Account → Downloads. For detailed instructions on updating WPML, please visit http://wpml.org/faq/install-wpml/. If the update isn't visible, click the Check for updates button under Plugins → Add New Plugin → Commercial.

If this solution does not apply to your case, or if it seems outdated, we highly recommend checking related known issues at https://wpml.org/known-issues/, verifying the version of the permanent fix, and confirming that you have installed the latest versions of themes and plugins. If issues persist, please open a new support ticket at WPML support forum.

Это форум технической поддержки WPML – плагина для многоязычной WordPress.

Доступно для чтения всем, но только клиенты, купившие WPML, могут оставлять сообщения. Сотрудники WPML отвечают на сообщения форума 6 дней в неделю, 22 часов в сутки.

Помечено: 

Эта тема содержит 19 ответов, имеет 0 voices.

Последнее обновление: Andrey 2 недели, 6 дней назад.

При содействии: Andrey.

Автор Сообщения
13 октября, 2025 в 2:13 пп #17480063

liliiaS

Предыстория вопроса:
I moved my site from a local environment to the main site at скрытая ссылка. After the move, I started experiencing issues with 405 errors in the console. This is affecting the site's functionality, including the inability to update permalinks and issues with localization for translations. I followed the usual process, moved the site using a method I always use, reconnected the key, but the error persists.

Симптомы:
405 (Method Not Allowed) errors are appearing in the console, preventing proper site functionality and updates to permalinks.

Вопросы:
How can I resolve the 405 error after moving my site?
Why is the site not functioning correctly after the move?
How can I fix the localization issues for translations?

13 октября, 2025 в 2:26 пп #17480175

Andrey
Сторонник WPML с 06/2013

Языки: Английский (English ) Русский (Русский )

Часовой пояс: Europe/Kyiv (GMT+02:00)

Thank you for contacting WPML support.

Could it be that your server is blocking the requests? Also, could you please share how you performed the migration?

A 405 means the server/WAF disallows POST. Check if the Firewall is not blocking the requests. I would also check/test the .htaccess file in the WordPress root with the default WP block:

# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>
# END WordPress

If you’ve moved the site to a new location, you should see a migration banner when you try to access WPML → Translation Management. Please follow the steps there to complete the migration to the new URL.

13 октября, 2025 в 3:02 пп #17480354

liliiaS

I have the default htaccess, just like you sent, there was a banner. I did everything as usual. If the vpm plugin is enabled, it doesn't matter what I do, whether I update permalinks or something else, I get a 405 error. As soon as I disable the plugin and update everything, it works correctly. Is it possible to understand where the error is coming from?

13 октября, 2025 в 3:09 пп #17480370

Andrey
Сторонник WPML с 06/2013

Языки: Английский (English ) Русский (Русский )

Часовой пояс: Europe/Kyiv (GMT+02:00)

If the vpm plugin is enabled, it doesn't matter what I do, whether I update permalinks or something else, I get a 405 error.

Did you mean the WPML plugin is activated?

Is it possible to understand where the error is coming from?

We’ll need to troubleshoot this further to understand what’s causing the issue.
Could you please share how you performed the migration?

I also recommend downloading fresh copies of the WPML plugin from under "My Account -> Downloads" on wpml.org and uploading them to your site.

13 октября, 2025 в 3:25 пп #17480446

liliiaS

Yes, when the wpml plugin is enabled, a conflict arises and these errors occur. When it is disabled, everything works correctly.

The migration was done using the wpvivid plugin, which I use all the time, and I have never had any conflicts with your plugin or any other. I can try to do the migration again, or reinstall all the plugins from scratch.

13 октября, 2025 в 3:26 пп #17480448

liliiaS

+ Where I am developing locally, a new error related to nonce has appeared.

GET скрытая ссылка 404 (Not Found)

13 октября, 2025 в 3:31 пп #17480464

Andrey
Сторонник WPML с 06/2013

Языки: Английский (English ) Русский (Русский )

Часовой пояс: Europe/Kyiv (GMT+02:00)

I recommend starting by replacing plugins first. Then, if possible, try migrating using the Duplicator plugin, which I use regularly because it transfers the entire site, including files and the database.

If there is an opportunity, try testing it on an alternative server.

Let me know how it goes.

13 октября, 2025 в 3:36 пп #17480503

liliiaS

I completely reinstalled WPML from the website and connected the key on the local server (which should be error-free). The error persists. I am attaching a screenshot.

Снимок экрана 2025-10-13 в 18.36.07.png
13 октября, 2025 в 3:39 пп #17480526

Andrey
Сторонник WPML с 06/2013

Языки: Английский (English ) Русский (Русский )

Часовой пояс: Europe/Kyiv (GMT+02:00)

Thank you for your feedback.

What are the results if you test this using a default WordPress theme?

13 октября, 2025 в 3:52 пп #17480586

liliiaS

I just switched to the default Twenty Twenty-Five theme, same error, nothing has changed.

14 октября, 2025 в 7:48 дп #17482194

Andrey
Сторонник WPML с 06/2013

Языки: Английский (English ) Русский (Русский )

Часовой пояс: Europe/Kyiv (GMT+02:00)

I need to request temporary access (wp-admin and FTP) to your site—preferably to a test site where the problem has been replicated if possible—in order to be of better help. When you log in to leave your next reply, you will find the needed fields below the comment area. The information you will enter is private, meaning only you and I can see and access it.

Please include the steps where the problem can be seen.

14 октября, 2025 в 12:11 пп #17483709

liliiaS

Can we talk on the phone or resolve this via text so that access is not granted?
I can provide all the necessary information. Let me explain the problem again.

Everything works on the local server, but the error shown in the screenshot above occurs. On the actual website, /wp-admin/admin-ajax.php 405 (Method Not Allowed) appears in the console, but if you just go to the URL, everything works correctly. Similarly, if you disable wpml, the website works correctly.

14 октября, 2025 в 12:54 пп #17484012

Andrey
Сторонник WPML с 06/2013

Языки: Английский (English ) Русский (Русский )

Часовой пояс: Europe/Kyiv (GMT+02:00)

We provide support through this support forum.

Yes, I understand the problem. I still believe it might be related to a server configuration issue — for example, the 405 (Method Not Allowed) error on wp-admin/admin-ajax.php.

Could you please try adding the following constant to your wp-config.php file and see if it helps?

define('WPML_DISABLE_PROXY', true);  
14 октября, 2025 в 1:04 пп #17484029

liliiaS

The site stopped working altogether when I inserted this line.
The site maa.proektor.org is currently unable to process this request.

14 октября, 2025 в 1:16 пп #17484128

Andrey
Сторонник WPML с 06/2013

Языки: Английский (English ) Русский (Русский )

Часовой пояс: Europe/Kyiv (GMT+02:00)

Thank you for your feedback.

Are there any entries in the debug.log file? To enable debugging, add these lines to your wp-config.php file:

define( 'WP_DEBUG', true );
define( 'WP_DEBUG_LOG', true );
define( 'WP_DEBUG_DISPLAY', false );

Then, reproduce the issue and review the debug.log file in the wp-content directory.