I am using Masterstudy LMS plugin in my website. I want to add booking features to my website and Amelia plugin fits my purposes very well. However, I can not use the backend pages of Amelia (just blank page) due to the below error. If I deactivate Masterstudy LMS plugin, I can use the pages. Obviously, this is not a true solution to me.
I need to know if this can be resolved quickly before purchasing Amelia. Thanks in advance!
S.prototype.$http=a.a,S.prototype.$http.defaults.headers.common={"X-Requested-With":"XMLHttpRequest"}," from amelia-booking.js under .../wp-content/plugins/ameliabooking/public/js/backend.
For front-end, you need to go to ../wp-content/plugins/masterstudy-lms-learning-management-system/lms/enqueue.php For bank-end ../wp-content/plugins/masterstudy-lms-learning-management-system/wp-custom-fields-theme-options/metaboxes/metabox.php
If the page where Amelia is, is named "Booking", the code you need to enter is:
Thanks for your response! I did the change for frontend and it worked. However, I can not find the code including "wp_register_script..." in the ../wp-content/plugins/masterstudy-lms-learning-management-system/wp-custom-fields-theme-options/metaboxes/metabox.php for backend. There is a very similar one starting with wp_enqueue_script in this page. So I changed it in the same way but it did not work. Besides that, I am not sure if this is the correct way for backend since I have not created backend pages and so I have not named them. They are default pages of Amelia plugin such as Dashboard, Calendar, etc.
Please go to ../wp-content/plugins/masterstudy-lms-learning-management-system/wp-custom-fields-theme-options/metaboxes/metabox.php and find this line of code:wp_enqueue_script('vue.js', $base . 'js/vue.min.js', array('jquery'), $v); Replace that line with this:if (substr(get_current_screen()->id, 0, 6) !== 'amelia') { wp_enqueue_script('vue.js', $base . 'js/vue.min.js', array('jquery'), $v); } And save the file.
So, for backend it is not wp_register but wp_enqueue
Please, in order to get full support you need to verify your license and open the ticket in Amelia Category with your purchase code. This is necessary since many are trying to misuse our support. This is the pre-purchase category reserved for those who didn't purchase the plugin yet. Thank you for your understanding.
Hi there,
I am using Masterstudy LMS plugin in my website. I want to add booking features to my website and Amelia plugin fits my purposes very well. However, I can not use the backend pages of Amelia (just blank page) due to the below error. If I deactivate Masterstudy LMS plugin, I can use the pages. Obviously, this is not a true solution to me.
I need to know if this can be resolved quickly before purchasing Amelia. Thanks in advance!
All the best,
Esad
Here is the error.
FYI, pages loaded when I removed "
S.prototype.$http=a.a,S.prototype.$http.defaults.headers.common={"X-Requested-With":"XMLHttpRequest"}," from amelia-booking.js under .../wp-content/plugins/ameliabooking/public/js/backend.
Hi Esad,
Thank you for your interest.
For front-end, you need to go to ../wp-content/plugins/masterstudy-lms-learning-management-system/lms/enqueue.php
For bank-end ../wp-content/plugins/masterstudy-lms-learning-management-system/wp-custom-fields-theme-options/metaboxes/metabox.php
If the page where Amelia is, is named "Booking", the code you need to enter is:
In both files replace this line:
and replace it with
So it is important that !== 'booking'
is the name of the page you have created.If the page name is "XYZ", that code will be !== 'XYZ'
Hope this helps!
Hi Nevena,
Thanks for your response! I did the change for frontend and it worked. However, I can not find the code including "wp_register_script..." in the ../wp-content/plugins/masterstudy-lms-learning-management-system/wp-custom-fields-theme-options/metaboxes/metabox.php for backend. There is a very similar one starting with wp_enqueue_script in this page. So I changed it in the same way but it did not work. Besides that, I am not sure if this is the correct way for backend since I have not created backend pages and so I have not named them. They are default pages of Amelia plugin such as Dashboard, Calendar, etc.
Please advise at your earliest convenience.
Best,
Esad
Hi,
Please go to ../wp-content/plugins/masterstudy-lms-learning-management-system/wp-custom-fields-theme-options/metaboxes/metabox.php and find this line of code:wp_enqueue_script('vue.js', $base . 'js/vue.min.js', array('jquery'), $v);
Replace that line with this:if (substr(get_current_screen()->id, 0, 6) !== 'amelia') {
wp_enqueue_script('vue.js', $base . 'js/vue.min.js', array('jquery'), $v);
}
And save the file.
So, for backend it is not wp_register but wp_enqueue
Please, in order to get full support you need to verify your license and open the ticket in Amelia Category with your purchase code. This is necessary since many are trying to misuse our support. This is the pre-purchase category reserved for those who didn't purchase the plugin yet. Thank you for your understanding.
Hi,
Thanks for your quick response! This new code worked and now I can access Amelia related pages at the backend.
Again, thank you for your help! I will purchase a license once I verified Amelia is working for me.
Best,
Esad
Thanks, Esad!
Have a nice day.