Hey there, Awesome Customers!

Just a heads up: We'll be taking a breather to celebrate International Workers' Day (May 1st and 2nd - Wednesday and Thursday) and Orthodox Easter from Good Friday (May 3rd) through Easter Monday (May 6th). So, from May 1st to May 6th, our team will be off enjoying some well-deserved downtime.

During this time, our customer support will be running on a smaller crew, but don't worry! We'll still be around to help with any urgent matters, though it might take us a bit longer than usual to get back to you.

We'll be back in action at full throttle on May 7th (Tuesday), ready to tackle your questions and requests with gusto!

In the meantime, you can explore our documentation for Amelia and wpDataTables. You'll find loads of helpful resources, including articles and handy video tutorials on YouTube (Amelia's YouTube Channel and wpDataTables' YouTube Channel). These gems might just have the answers you're looking for while we're kicking back.

Thanks a bunch for your understanding and support!

Catch you on the flip side!

Warm regards,

TMS

Okay
  Public Ticket #2463019
JS Conflict with Masterstudy LMS plugin
Closed

Comments

  •  1
    Esad Esgin started the conversation

    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

  •  1
    Esad Esgin replied

    Here is the error.

  •  1
    Esad Esgin replied

    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.

  • [deleted] replied

    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: 

    if (basename(get_permalink()) !== 'booking') {    wp_register_script('vue.js', $base . 'js/vue.min.js', array('jquery'), $v);}

    In both files  replace this line:

    wp_register_script('vue.js', $base . 'js/vue.min.js', array('jquery'), $v);

    and replace it with

    if (basename(get_permalink()) !== 'booking') {    wp_register_script('vue.js', $base . 'js/vue.min.js', array('jquery'), $v);}

    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!


  •  1
    Esad Esgin replied

    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

  • [deleted] replied

    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. 


  •  1
    Esad Esgin replied

    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

  • [deleted] replied

    Thanks, Esad!

    Have a nice day.