Forum Replies Created

Viewing 2 replies - 1 through 2 (of 2 total)
  • elninio7

    (@elninio7)

    Hello everyone,

    during a whole month we were facing big troubles regarding overload of our server in a wordpress/woocommerce/sensei intsallation with 3 courses and 8000 members.

    We were trying everything we could but the CPU of the server was stuck at 100%.

    Today we finally found after troubleshooting for hours again that the whole problem was in a Sensei Core file regarding Enrollments.

    More specific the problem was (is) in the file class-sensei-course-enrolment.php and more specific at line 214

    return has_term( $term->term_id, Sensei_PostTypes::LEARNER_TAXONOMY_NAME, $this->course_id );

    and

    $is_enrolled_current = has_term( $term->term_id, Sensei_PostTypes::LEARNER_TAXONOMY_NAME, $this->course_id );

    The problem was solved by writing custom code to replace this line and after saving the file cpu from 100% is now at 2%.

    We were ready to buy a new dedicated server with much more money and more resources because we were thinking that the problem was in the server config and resources but finally the problem was at the Sensei Plugin (which belongs to the same company with WordPress).

    @sensei Team please be careful.

    Hello!!

    What is the code that should be inserted in the update field in order to init select2 ?

    Thanks!

Viewing 2 replies - 1 through 2 (of 2 total)