Multisite bug
-
Tutor LMS activates and works correctly on a standard single-site WordPress installation in the exact same hosting environment.
However, when activated on a WordPress Multisite network, the admin area crashes with a fatal error.
What I have tested:1 Created a fresh WordPress Multisite installation (subdomain mode).
2 Installed Tutor LMS.
3 Activated Tutor LMS on a subsite.
4 Admin area immediately crashed.
5 Tested Network Activation as well.
6 Same result.
7 Installed Tutor LMS on a separate single-site WordPress installation using the same hosting environment, PHP version, database version and server.
8 Plugin activated successfully with no errors and no warnings in the logs.This leads me to believe the issue is specifically related to WordPress Multisite support. According to this thread :https://ww.wp.xz.cn/support/topic/multisite-support-410/ , it should support multisite.
Some of errors in error log:
WordPress database error:
Table 'vozo6565_wp337.wp6c_2_wp6c_users' doesn't exist
SELECT COUNT(*) as total_count
FROM wp6c_2_tutor_orders o
INNER JOIN wp6c_2_wp6c_users u ON o.user_id = u.ID
WHERE payment_status = 'unpaid' AND order_type = 'single_order'
PHP Fatal error:
Uncaught Exception:
Table 'vozo6565_wp337.wp6c_2_wp6c_users' doesn't exist
Location:
wp-content/plugins/tutor/helpers/QueryHelper.php:1134
WordPress database error:
Can't create table wp6c_2_tutor_coupon_usages
CONSTRAINT fk_tutor_coupon_usage_user_id
FOREIGN KEY (user_id)
REFERENCES wp6c_2_users(ID)
errno: 150 "Foreign key constraint is incorrectly formed"
WordPress database error:
Can't create table wp6c_2_tutor_carts
CONSTRAINT fk_tutor_cart_user_id
FOREIGN KEY (user_id)
REFERENCES wp6c_2_users(ID)
errno: 150 "Foreign key constraint is incorrectly formed"We would appreciate any guidance, as Tutor LMS is currently our preferred LMS solution for a multi-country project requiring up to 10 site licenses.
Thanks in advance!
You must be logged in to reply to this topic.