Người dùng này không có chủ đề yêu thích nào.
Chủ đề diễn đàn yêu thích
Chủ đề diễn đàn đã tạo
| Trạng thái |
Chủ đề
|
Người hỗ trợ | Ý kiến | Bài viết | Mới nhất |
|---|---|---|---|---|---|
|
WPML Not working
1
2
Được bắt đầu bởi: abm-ashabulH
trong: English Support
Problem: wp-content/plugins/masterstudy-lms-learning-management-system/_core/lms/classes/page_routes.php . init() method, add an early return for AJAX requests to prevent route/page generation and rewrite flushing during admin-ajax. Replace: public function init() {with: public function init() {<br />if (wp_doing_ajax()) {<br />// WPML - No routes/pages generation and no rewrite flushing during admin-ajax.<br />return;<br />}3. Optionally, to reduce the frequency of flush_rewrite_rules, modify it to run only once by replacing: flush_rewrite_rules(true); in two places with: update_option('stm_lms_routes_needs_flush', 1, false);and add at the end of the file: add_action('admin_init', function () {<br />if (get_option('stm_lms_routes_needs_flush')) {<br />delete_option('stm_lms_routes_needs_flush');<br />flush_rewrite_rules(true);<br />}<br />});This solution is a workaround. A long-term fix should come from the MasterStudy LMS team. We will contact them to discuss this issue, but you can also reach out to them to expedite the process. Please note that this solution might be irrelevant if it's outdated or not applicable to your case. 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 the issue persists, please open a new support ticket at WPML support forum. |
|
0 | 20 | 3 weeks, 4 days trước | |
|
WPML Not working
Được bắt đầu bởi: abm-ashabulH trong: English Support |
|
0 | 7 | 4 weeks trước |