• Resolved victorcalderon

    (@victorcalderon)


    stm_lms_get_reviews is not working so the reviews are not loading receiving 404 error not found.

    vue-resource.min.js?ver=2.2:7 GET https://www.droneguru.es/Escuela_de_Pilotos/wp-admin/admin-ajax.php?action=stm_lms_get_reviews&nonce=1076fec0fb&offset=0&post_id=5789 404
    (anonymous)	@	vue-resource.min.js?ver=2.2:7
    o	@	vue-resource.min.js?ver=2.2:7
    S	@	vue-resource.min.js?ver=2.2:7
    I	@	vue-resource.min.js?ver=2.2:7
    r	@	vue-resource.min.js?ver=2.2:7
    N	@	vue-resource.min.js?ver=2.2:7
    N.<computed>	@	vue-resource.min.js?ver=2.2:7
    getReviews	@	reviews.js?ver=239520:1
    click	@	VM101:3
    He	@	vue.min.js?ver=2.2:6
    n	@	vue.min.js?ver=2.2:6
    Yr.o._wrapper	@	vue.min.js?ver=2.2:6

    The page I need help with: [log in to see the link]

Viewing 6 replies - 1 through 6 (of 6 total)
  • Thread Starter victorcalderon

    (@victorcalderon)

    The javascript file is located at wp-content\plugins\masterstudy-lms-learning-management-system\assets\js

    methods: {
            getReviews: function getReviews() {
              var vm = this;
              var url = stm_lms_ajaxurl + '?action=stm_lms_get_reviews&nonce=' + stm_lms_nonces['stm_lms_get_reviews'] + '&offset=' + vm.offset + '&post_id=' + stm_lms_post_id;
              vm.loading = true;
              this.$http.get(url).then(function (response) {
                response.body['posts'].forEach(function (review) {
                  vm.reviews.push(review);
                });
                vm.total = response.body['total'];
                vm.loading = false;
                vm.offset++;
              });
            }

    Hi @victorcalderon

    Please try to deactivate all 3rd party plugins and check with the default WordPress theme and let us know how it goes for you.

    regards

    Thread Starter victorcalderon

    (@victorcalderon)

    The problem persists after deactivating all 3rd party plugins / default theme.

    Plugin Support EricStylemixThemes

    (@ericstylemixthemes)

    Hello @victorcalderon

    Unfortunately, we are not able to recreate this bug in our testing environment. We disabled all third-party plugins and set the default WordPress theme (Twenty Twenty-One). Then we created a test course and wrote a test review on behalf of the student (Screenshot 1).

    When we open the course page and click on the reviews tab, they are loading properly (Screenshot 2).

    Make sure that, your system settings match to plugin’s system requirements:

    https://docs.stylemixthemes.com/masterstudy-lms/getting-started-1/system-requirements

    Best wishes

    Thread Starter victorcalderon

    (@victorcalderon)

    The problem is related to hosting in ajax request, after contacting the hosting support services this error 404 is fixed on logged users showing the courses reviews. The new error that appears is 403 forbidden for non logged users. The problem could be solved if the following code is commented:

    public static function get_reviews() {

    /*check_ajax_referer(‘stm_lms_get_reviews’, ‘nonce’);*/

    located at line 128 wp-content/plugins/masterstudy-lms-learning-management-system/lms/classes

    Please can you let me know how to fix this issue without edit the core code of the plugin. Edit plugin code is not recommended but I don′t know other way to fix the 403 forbidden issue.

    Hi @victorcalderon

    The two most likely causes of the 403 Forbidden Error on WordPress are:

    1 – Corrupt .htaccess file
    2 – Incorrect file permissions

    It’s also possible that you’re seeing the error because of an issue with a plugin that you’re using at your site.

    Please try to follow this link -> https://kinsta.com/blog/403-forbidden-error/

    regards

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Uncaught (in promise) stm_lms_get_reviews not working error 404 not found’ is closed to new replies.