ผู้ใช้นี้ไม่มีหัวข้อที่ชื่นชอบ.
หัวข้อฟอรัมที่ชื่นชอบ
หัวข้อฟอรัมที่สร้าง
| สถานะ |
หัวข้อ
|
ผู้สนับสนุน | เสียง | โพสต์ | ความใหม่ |
|---|---|---|---|---|---|
|
WPML Not working
1
2
เริ่มโดย: abm-ashabulH
ใน: 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 | 1 month, 1 week มาแล้ว | |
|
WPML Not working
เริ่มโดย: abm-ashabulH ใน: English Support |
|
0 | 7 | 1 month, 2 weeks มาแล้ว |