8635 comments found.
I’m running Masterstudy LMS + WPML and hit a critical error that broke user registration and various AJAX calls (including front-end account/authorization flows). I don’t have ongoing support, but I thought you would like to know, given how severely it breaks things:
The symptom was:
All of these were failing: Front-end registration, editing anything with Elementor, making any changes to settings to Masterstudy in the background, and some AJAX requests failing.
Debug log showing: PHP Fatal error: Uncaught Error: Call to a member function get_object_id() on null in /wp-content/plugins/sitepress-multilingual-cms/inc/template-functions.php:383 Stack trace: #0 /wp-includes/class-wp-hook.php(341): wpml_object_id_filter(‘40306’, ‘post’) #1 /wp-includes/plugin.php(205): WP_Hook->apply_filters(‘40306’, Array) #2 /wp-content/plugins/masterstudy-lms-learning-management-system/_core/lms/helpers.php(1198): apply_filters(‘wpml_object_id’, ‘40306’, ‘post’) #3 /wp-content/plugins/masterstudy-lms-learning-management-system/_core/lms/helpers.php(1216): ms_plugin_user_account_url(‘edit-course’) #4 /wp-admin/admin-ajax.php(22): require_once(’/wp-load.php’)
So apply_filters( ‘wpml_object_id’, ... ) is being called from Masterstudy while WPML’s $sitepress object is still null, causing the fatal.
Files and functions involved File: /wp-content/plugins/masterstudy-lms-learning-management-system/_core/lms/helpers.php
Functions I had to patch:
ms_plugin_user_account_url() (primary) ms_plugin_authorization() (secondary)
Change #1 – ms_plugin_user_account_url() Original:
function ms_plugin_user_account_url( $sub_page = ’’ ) { $settings = get_option( ‘stm_lms_settings’, array() ); $account_page_id = apply_filters( ‘wpml_object_id’, $settings[‘user_url’] ?? null, ‘post’ ); }
if ( empty( $account_page_id ) || ! did_action( 'init' ) ) {
return home_url( '/' );
}
$user_account_url = get_the_permalink( $account_page_id );
if ( ! empty( $sub_page ) ) {
$user_account_url .= "$sub_page/";
}
return $user_account_url;
Patched it to this:
function ms_plugin_user_account_url( $sub_page = ’’ ) { $settings = get_option( ‘stm_lms_settings’, array() ); $account_page_id = isset( $settings[‘user_url’] ) ? $settings[‘user_url’] : null; }
// Check if WPML is initialized before calling the filter
if ( ! empty( $account_page_id ) && function_exists( 'wpml_object_id' ) ) {
$wpml_account_page_id = apply_filters( 'wpml_object_id', $account_page_id, 'post', true );
if ( ! empty( $wpml_account_page_id ) ) {
$account_page_id = $wpml_account_page_id;
}
}
if ( empty( $account_page_id ) || ! did_action( 'init' ) ) {
return home_url( '/' );
}
$user_account_url = get_the_permalink( $account_page_id );
if ( ! empty( $sub_page ) ) {
$user_account_url .= "$sub_page/";
}
return $user_account_url;
Key points:
Guard with function_exists( ‘wpml_object_id’ ) before calling the filter
Use the 4th parameter true so WPML returns the original ID if no translation exists
Avoid calling WPML at all if user_url is empty
Change #2 – ms_plugin_authorization() Original:
function ms_plugin_authorization() { if ( ! is_user_logged_in() ) { $settings = get_option( ‘stm_lms_settings’, array() ); $settings[‘instructor_registration_page’] = $settings[‘instructor_registration_page’] ?? false; $page_id = get_the_ID(); $current_id = apply_filters( ‘wpml_object_id’, $page_id, ‘post’ ); $wpml_pages = array( apply_filters( ‘wpml_object_id’, intval( $settings[‘user_url’] ), ‘post’ ), apply_filters( ‘wpml_object_id’, intval( $settings[‘instructor_url_profile’] ), ‘post’ ), apply_filters( ‘wpml_object_id’, intval( $settings[‘student_url_profile’] ), ‘post’ ), ); $pages = array( intval( $settings[‘user_url’] ), intval( $settings[‘instructor_url_profile’] ), intval( $settings[‘student_url_profile’] ), ); if ( $settings[‘instructor_registration_page’] ) { $wpml_pages[] = apply_filters( ‘wpml_object_id’, intval( $settings[‘instructor_registration_page’] ), ‘post’ ); $pages[] = intval( $settings[‘instructor_registration_page’] ); } }
if ( in_array( $current_id, $wpml_pages, true ) || in_array( $page_id, $pages, true ) ) {
return;
}
}
STM_LMS_Templates::show_lms_template(
'components/authorization/main',
array(
'modal' => true,
'type' => 'login',
)
);
Patched it to:
function ms_plugin_authorization() { if ( ! is_user_logged_in() ) { $settings = get_option( ‘stm_lms_settings’, array() ); $settings[‘instructor_registration_page’] = $settings[‘instructor_registration_page’] ?? false; $page_id = get_the_ID(); }
// Safely handle current page WPML translation
$current_id = $page_id;
if ( function_exists( 'wpml_object_id' ) ) {
$wpml_current_id = apply_filters( 'wpml_object_id', $page_id, 'post', true );
if ( ! empty( $wpml_current_id ) ) {
$current_id = $wpml_current_id;
}
}
}
// Initialize arrays
$wpml_pages = array();
$pages = array();
// Helper function to safely add page to arrays
$add_page_safely = function( $page_id_value ) use ( &$wpml_pages, &$pages ) {
if ( empty( $page_id_value ) ) {
return;
}
};
$page_id_int = intval( $page_id_value );
$pages[] = $page_id_int;
if ( function_exists( 'wpml_object_id' ) ) {
$wpml_page_id = apply_filters( 'wpml_object_id', $page_id_int, 'post', true );
if ( ! empty( $wpml_page_id ) ) {
$wpml_pages[] = $wpml_page_id;
}
} else {
$wpml_pages[] = $page_id_int;
}
// Add all configured pages
$add_page_safely( $settings['user_url'] ?? null );
$add_page_safely( $settings['instructor_url_profile'] ?? null );
$add_page_safely( $settings['student_url_profile'] ?? null );
if ( ! empty( $settings['instructor_registration_page'] ) ) {
$add_page_safely( $settings['instructor_registration_page'] );
}
if ( in_array( $current_id, $wpml_pages, true ) || in_array( $page_id, $pages, true ) ) {
return;
}
STM_LMS_Templates::show_lms_template(
'components/authorization/main',
array(
'modal' => true,
'type' => 'login',
)
);
Again, the main changes are:
Guard all wpml_object_id calls with function_exists( ‘wpml_object_id’ ) Use the 4th parameter true Avoid calling the filter when setting values are empty Don’t assume WPML is always initialized when these functions run (especially during AJAX)
Result After these two patches, the fatal get_object_id() on null error stopped, AJAX calls stopped 500’ing, and user registration/auth flows started working again.
It would be great if Masterstudy could:
Incorporate these guards into the plugin code Audit other apply_filters( ‘wpml_object_id’, ...) usages for the same pattern
I’m happy to provide more logs or details if needed.
Hello there!
Thank you so much for the detailed report and for sharing your fix.
We’ve confirmed that in some cases wpml_object_id was being called before WPML was fully initialized, which could cause fatal errors exactly as you described.
We’re already updating these functions in the MasterStudy LMS plugin to add proper checks around WPML and handle empty IDs safely.
The fix will be included in the next updates. In the meantime, your workaround is valid, and we really appreciate you taking the time to document it so carefully.
Best regards,
We have few domains that we have installed masterstudy theme. Currently those domains are not in use. But the licesne are assigned to the same. The only option is to deactivate the theme from the domains which are not in use and not practical. The license is stuck in old domains. Since the support period is over we are not able to open the ticket as well.
Hello there!
Thank you for reaching us out!
I see that you have multiple licenses associated with your account. To assist you further, could you please specify exactly which domains need to be deactivated? Once you provide the list of URLs, I will be able to free up those keys for you. For future reference, I recommend deactivating the license directly from the website dashboard before taking a site offline, as described in our documentation here: https://docs.stylemixthemes.com/masterstudy-theme-documentation/installation-and-activation/license-key-deactivation
Additionally, I would like to kindly remind you that according to Envato’s licensing policy, one regular license is valid for only one single end product. Therefore, if you plan to use the theme on multiple websites simultaneously, a separate license must be purchased for each new domain.
Best regards,
hi. i’ve bought the theme used in a domain. Now i’m moving my entire website to a new platform so i dont need this theme on that but i may use the masterstudy theme for some other domain in future. I deactivated the theme in wordpress, and theme is not there but plugins are still there so i’m confused then reinstalled the theme (because i doubt may be i’ve not deactivated correctly). But the site is back to how it looks. In the theme dashboard it shows theme is not activated and a button activate via envato. Don’t know whether the theme is active in that domain or not. Please help me to confirm that and if the theme is deactivated can i use the theme in some other domain. Please clarify. Thanks
Hello there!
Thank you for reaching us out!
To ensure you can use the theme on another domain in the future, simply removing the theme or switching it off in the WordPress menu is not enough. You must properly deactivate the license key in the theme settings to unlink it from the current site. Since the dashboard currently asks you to activate, please first activate the license again to re-establish the connection with our server following this guide: https://docs.stylemixthemes.com/masterstudy-theme-documentation/installation-and-activation/theme-activation
Once the license is active, you should immediately proceed to deactivate it using the specific button in the dashboard, which will officially free up your key. You can find the steps for this here: https://docs.stylemixthemes.com/masterstudy-theme-documentation/installation-and-activation/license-key-deactivation .
After completing this process, you can safely delete the theme and plugins, and your license will be ready for use on a new domain.
Best regards,
Thank you I have one more inquiry. I offer on-site training programs at the institution, not online, and each course has a limited number of seats. Is there an option in the settings to enable a maximum number of students who can register for each course?
Hello there!
Thank you for the inquiry!
Unfortunately, at the moment, there is no built-in function to limit the number of seats or students for a course. However, we have already received similar requests regarding this feature. You can vote for its addition and leave your specific feedback at https://stylemixthemes.cnflx.io/boards/masterstudy-lms/16202 . Please note that the more votes a request receives, the faster our product managers will investigate this possibility for future updates.
Best regards,
Can we assign multiple instructors to the same course with a group of students or cohorts?
Hello there!
Thank you for reaching us out!
We have a special Multi-instructor addon for this purpose, but currently, it allows you to add only one co-instructor to a course. You can find more details about how this addon works in our documentation at https://docs.stylemixthemes.com/masterstudy-theme-documentation/masterstudy-lms-pro-addons/masterstudy-theme-manual-multi-instructor
We have already received requests regarding this functionality, so if you need this feature, I highly recommend voting for it and leaving your feedback at https://stylemixthemes.cnflx.io/boards/masterstudy-lms/23671 . The more votes a request receives, the faster our product managers will investigate and potentially implement this possibility.
Best regards,
Hello, How to enable the co instructor to see and check the progress of the student quizzes? I checked the documendation but couldn’t find it. Thanks for your help
Hello there!
Thank you for reaching us out!
Currently, the Co-instructor has limited functionality. They can only add/edit/delete lessons and participate in Discussions. Unfortunately, at the moment, there is no option for Co-instructors to check student progress.
However, we are always striving to improve our product. We would be happy if you could submit a request to extend the addon’s functionality here: https://stylemixthemes.cnflx.io/boards/masterstudy-lmsBest regards,
Hello, I purchased the Master study theme and configured all the settings. I also activated the Enterprise Courses add-on. After that, I created a course and set a corporate price for it.
Now, when I log in with a regular user account to test purchasing the course, it asks me to create a group. However, when I click “Create Group,” nothing happens. I also went to the user dashboard → Groups → Create Group, but I still can’t create a group from there either., Ive sent ticket but no answer there that why iam sending here
Hello there!
Thank you for reaching us out!
I have checked your website and noticed that you are currently using a very old version of the theme. Could you please try updating the theme and its plugins to the latest version? You can follow the instructions here: https://docs.stylemixthemes.com/masterstudy-theme-documentation/getting-started/how-to-update-masterstudyAfter the update, please check the case again. If the issue persists, please let me know.
Best regards,
Thank you I have one more inquiry. I offer on-site training programs at the institution, not online, and each course has a limited number of seats. Is there an option in the settings to enable a maximum number of students who can register for each course?
Bonjour, I have a problem, Since the last update, the course page is completely crushed. it is no more the 3 columns layout (program, course, discussion). the columns disappeared and all texts and titles are in the same page in an ugly way. i uninstalled masterstudy theme, and installed another theme, it works fine.
it is like masterstudy theme is not compatible with the masterstudy LMS plugin anymore.
does someone else have this issue ? do you know how can i solve it ?
Thank you
Hello there!
Thank you for reaching us out!
Unfortunately, it is difficult for us to comment on this specific behavior as we are unable to reproduce it on our end.
Could you please provide screenshots illustrating the problem? Additionally, if there are any errors visible in the browser console, please include screenshots of those as well so we can investigate the issue further.
Best regards,
is there screeshot and screen recording restriction feature available in your mobile app? DRM security available?
Your black friday ads are appalling. You can’t even close the pop up, meaning no ability to work within the LMS setting. Get a grip, we already bought the damn thing, give us the small ad at the top and leave it at that, or create properly-functioning popups.
Hello there!
I apologize for the inconvenience.
We have checked this on our side, and no issues were found; the popup should close normally. Most likely, there is a third-party plugin or customization on your site that is returning a JavaScript error, which is preventing the popup from closing.
Could you please try temporarily deactivating third-party plugins to identify the cause of this conflict?
Please let us know how it goes!
Best regards,
Hello, I very apprecitate your theme, congratulations for your awesome work! my question is: It is possible to offer free courses but user must pay to download the certificate after course completion. Is this possible with the Pro version?
Hope reading you soon, all my regards.
Hello there!
Thank you so much for such kind words! We’re really happy that you’re enjoying the theme!
And if you have a spare minute, we would be incredibly grateful if you could share your experience and leave a quick 5-star rating here: https://wordpress.org/plugins/masterstudy-lms-learning-management-system/#reviewsRegarding your question: unfortunately, at the moment MasterStudy doesn’t have a built-in option to offer free courses while charging separately only for the certificate after completion.
But we recieved similiar request about it. You can vote for the feature and leave your comments here: https://stylemixthemes.cnflx.io/ideas/23774 The more votes it gets, the faster our product managers will investigate this opportunity.
Thank you once again for your support, and please let me know if there’s anything else I can help with!
Best regards,
One more issue. In the quiz for single choice question the gap between the question and the answer options is so much. How to reduce it? Though I tried custom CSS it is not working. Thanks for your help https://tinyurl.com/276pgzn4
Hello there!
Thank you for reaching us out!
This unusually large gap between the question and the answer options almost always appears because of styles conflict coming from another plugin, custom code, or an outdated file. To fix it quickly, please first make sure the theme and all bundled Stylemix plugins are fully updated to the latest versions. Then temporarily deactivate all third-party plugins aтв customizations.
As an additional quick test, you can also switch to a default WordPress theme (like Twenty Twenty-One or Hello Elementor) for just a moment and see if the spacing becomes normal there.
Also, you can check if there are any errors in you Console Panel.
Try these steps and let me know how it goes!
Best regards,
Thanks. I tried still the issue persists
Thank you for trying and for the update.
In this case the fastest and most reliable way to get it fully resolved is to let our technical team take a quick look directly on your site.
Could you please submit a ticket through our official support form here: https://themeforest.net/user/stylemixthemesand add a detailed description of the problem, attach the screenshot you already sent me, and most importantly provide admin access.
Our team will check the case for you
Best regards,
My theme support has expired. I am using the latest version. So when I trying to do the course settings page in course builder. I getting error message : An Error Occured, something went wrong and not able to access it. All the menu items show the same message except settings main. Let me know what to do. Thanks
Here is the screenshot https://tinyurl.com/25frjvao
Hello there!
Thank you for reaching out.
Please make sure that all theme-related plugins are updated to their latest versions (you can check and update them directly in Appearance → Install Plugins).
After that, try temporarily deactivating all third-party plugins (except the ones that came with the theme) and customizations to see if the issue disappears . Please let me know if these steps resolve the problem, and I’ll be happy to assist further if needed.
Best regards,
Thanks. I did it . Same issue. Here is the system status. https://tinyurl.com/2yvp7uw5
Hi so you use your own LMS, no plugin? Does it allow other course creators to make their own courses? Can it manage of that activity like tutor LMS? Thanks.
Hello there!
MasterStudy theme is fully built on our own MasterStudy LMS (free) and MasterStudy LMS Pro plugins.
These plugins allow both administrators and instructors to create, publish, and manage their own courses with a complete set of features.
You can check the full list of capabilities on our official page: https://stylemixthemes.com/masterstudy/If you have any specific questions about the features, just let me know. I’ll be happy to help!
Best regards,
there is huge compatibilty problem – in woocommerce my account page – if you try to change or update shipping or billing address you will get huge compatibilty error messages – just try yourself author
I have a problem with a license I purchased three years ago. Support is no longer available, but I want to use my license on another website (deactivate the current one to activate it on the new one). The old website no longer exists, but I can’t deactivate the license from the old site to activate it on the new one. What can I do?
I’ve tried contacting you through your Stylemix website, but since there’s no support available, I can’t create a ticket.
Thank you.
How to resolve compatibilty problem with woocommerce “Update your theme to the latest version. If no update is available contact your theme author asking about compatibility with the current WooCommerce version”
Hello there!
Those are simple warnings of the WooCommerce plugin and they don’t affect the proper work of your website. Whenever the WooCommerce authors release the new version, the plugin templates become outdated in the theme even the new version of the theme was released a day before. We can’t control the releases of the plugin, as WooCommerce can be updated twice a week.
The new version of the theme will contain the updated templates of WooCommerce.
Best regards,
My ticket #Z101314 still not answer after 3 days
The list of Package Subsctiption (Membership Pro) not shown in Toggle Button in Course Catalogue
I found bug, when the course is available for Subscription using Membership Pro, if user in position not login, the list of Package is not shown when I click toggle Buy in course catalogue.
But when user login, the list of Package is shown. Please fix this, I need even the user not login, the list mus be shown, because I using Woocommerce Checkout and guest checkout.
Thanks
Hello there!
Thank you for following up on your ticket #Z101314 regarding the issue with the Package Subscription list not showing in the Toggle Button in the Course Catalogue.
I can see that one of our agents has already responded to your ticket — please check it for the latest update. Additionally, the fix for this issue, where the list of packages wasn’t visible for non-logged-in users, has been included in the latest update. I recommend making a backup of your site and then updating the theme and its plugins to the latest versions. After that, please retest the case to confirm it’s resolved.
If you still encounter issues, feel free to let me know!
Best regards,
The “Get course” drop-down showing PMP levels has disappeared for non-members since the last update. Site visitors are left stranded when wanting to buy a course/subscription. Login pop-up is not showing either when you click the button “Get course”. I’m using Masterstudy Pro with Paid Membership Pro and WooCommerce Subscriptions. Theme are plugins are updated to recent version.
thanks for the fix!
Hello there!
Thank you for reporting the issue with the “Get course” drop-down.
Just to clarify — if I’ve understood correctly, is this issue no longer relevant? If so, I’d appreciate your confirmation. If it persists, please let me know any additional details (e.g., screenshots or steps to reproduce), and I’ll assist further!
Best regards,
Hi there,
I’m trying to setup the theme, but when I want to edit a course, I’m getting redirected to a 404 page. I cannot seem to edit courses, or add video’s or other content other than the decriptions. Can you please help me out?
Best regards
oh and there are no third party plugins active. It’s a clean install.
Hello there!
Thank you for reaching out about the issue with editing courses in the theme — I’m sorry you’re experiencing this! It sounds like the redirection to a 404 page might be related to permalink settings.
Please try resaving your permalinks: go to Settings > Permalinks in your WordPress dashboard, ensure the “Post name” permalink structure is selected, and click “Save Changes.” This should help resolve the issue with editing courses, adding videos, or other content beyond descriptions.
If the problem persists, let me know, and I’ll assist further!
Best regards,