• Resolved chiang

    (@chiang)


    Dear ,

    I hope this message finds you well. I am writing to inform you of an error that I encountered while using your plugin on my website, which is currently running on PHP 8.0.

    The error message that I received is as follows:

    error message:
    
    
    2023/03/15 03:01:13 [error] 209#209: *394280 FastCGI sent in stderr: "PHP message: PHP Fatal error: Uncaught Error: Attempt to assign property "course_number" on bool in /www/cubelishcomtw_151/public/wp-content/plugins/masterstudy-lms-learning-management-system/_core/lms/classes/subscriptions.php:264
    Stack trace:
    #0 /www/cubelishcomtw_151/public/wp-content/plugins/masterstudy-lms-learning-management-system/_core/lms/classes/subscriptions.php(502): STM_LMS_Subscriptions::user_subscriptions(true, 8095)
    #1 /www/cubelishcomtw_151/public/wp-content/plugins/masterstudy-lms-learning-management-system/_core/lms/classes/subscriptions.php(496): STM_LMS_Subscriptions::remove_overquoted(8095)
    #2 /www/cubelishcomtw_151/public/wp-content/plugins/masterstudy-lms-learning-management-system/_core/lms/classes/subscriptions.php(587): STM_LMS_Subscriptions::check_user_subscription_courses(8095, NULL)
    #3 /www/cubelishcomtw_151/public/wp-includes/class-wp-hook.php(308): STM_LMS_Subscriptions::before_subscription_change('2', 8095, Array, NULL)
    #4 /www/cubelishcomtw_151/public/wp-includes" while reading response header from upstream, client: 1.171.219.10, server: cubelish.com.tw, request: "POST /wp-admin/admin-ajax.php HTTP/1.1", upstream: "fastcgi://unix:/var/run/php8.0-fpm-cubelishcomtw.sock:", host: "cubelish.com.tw:44832", referrer: "https://cubelish.com.tw/wp-admin/post.php?post=59410&action=edit"

    Based on my understanding, it appears that there was an issue with the assignment of the “course_number” property on a boolean value, which caused a fatal error. The error occurred when I was trying to edit a user on the WordPress backend.

    Currently, when a woocommerce subscription triggers a renewal order, the order status changes from “active” to “on hold,” which causes the subscription to not be renewed in the future. The woocommerce error log displays the following information:

    02-14-2023 @ 00:34:30 - scheduled action 205313 (subscription payment) failed to finish processing due to the following error: Uncaught Error: Attempt to assign property "course_number" on bool in /www/cubelishcomtw_151/public/wp-content/plugins/masterstudy-lms-learning-management-system/_core/lms/classes/subscriptions.php:264
    Stack trace:
    #0 /www/cubelishcomtw_151/public/wp-content/plugins/masterstudy-lms-learning-management-system/_core/lms/classes/subscriptions.php(502): STM_LMS_Subscriptions::user_subscriptions(true, 6873)
    #1 /www/cubelishcomtw_151/public/wp-content/plugins/masterstudy-lms-learning-management-system/_core/lms/classes/subscriptions.php(496)....
    .....
    ....
    

    I would greatly appreciate it if you could take a look at this error and provide me with any insights or potential solutions. Please let me know if there is any additional information that I can provide to help you diagnose the issue.

    Thank you very much for your attention to this matter.

    Best regards,
    Chiang

Viewing 1 replies (of 1 total)
  • Plugin Support EricStylemixThemes

    (@ericstylemixthemes)

    Hello @chiang,

    Thank you for reaching out and for your report!

    The MasterStudy LMS is compatible with Paid Membership Pro plugin to create membership plans.

    If you are using different plugin for membership subscriptions let us know so we could recreate the problem in our testing environments.

    Kind regards

Viewing 1 replies (of 1 total)

The topic ‘PHP Fatal error’ is closed to new replies.