WPIntell

Source evidence

Internal server error

Cool Integration for LearnPress & WooCommerce · support · 2021-10-03T04:33:00+00:00

neutralsentiment
highseverity
0.69relevance
9replies
Evidence linked to opportunitycommercial context

Proof Health

Open evidence

Commercial opportunities need traceable source links before they are treated as build-worthy.

10 / 35 rows with source links

28.6% of this page's analysis has direct source links.

0 build-decision rows missing links

0 rows here require auditable proof before promotion.

25 rows with no attached evidence

0 rows have source counts but still need direct links.

Conversation

support
lemeilleur77 resolved
Hi, After validating the payment: – payment is accepted – the order in Woocommerce is visible and in completed status – after validation of the payment, the page remains the same with the message “internal server error” – Woocommerce does not send the order confirmation email – the course is attributed to the one who registers – if the student buys several products (courses), only the 1st on the list will be allocated to the account. It seems have issue on this line (i saw i debug.log) $ret = $LPUser->enroll( $WPCourse->ID, $WPLPOrder->id, true );` Thanks Hi, Do you required to create an account on checkout? Could you please share your debug.log and any url site to check it? Thanks! Hi, Thank you for your answer. It is proposed to create an account in checkout page or to connect with the exiting account. It worked before like this with this configuration. But I can change that and make test. I already sent you an email few days ago with debug files. Thanks ! We are also getting the same. When an existing, logged in user buys something, instead of progressing to the successful payment page, the user stays on the payment screen, but with a banner at the top saying “internal server error”. The actual payment and purchase are successful, but because it isn’t clear to the user, they end up trying again and spending a whole heap of money that then needs to be manually refunded. It appears to only happen with existing logged in users, not new users. Logs below: [Sun Oct 24 23:28:18.986663 2021] [proxy_fcgi:error] [pid 5915:tid 139736190498560] [client XXX.XXX.XXX.XXX:XXXXX] AH01071: Got error 'PHP message: PHP Fatal error: Uncaught Error: Call to undefined method LP_User::enroll() in /home/XXXX/learn.gumnutmagic.com/wp-content/plugins/manca-lp-wc-integration/admin/enrollment-sync.php:60\nStack trace:\n#0 /home/XXXX/learn.gumnutmagic.com/wp-includes/class-wp-hook.php(305): lpwci_lp_enroll_on_wc_payment_complete(5338)\n#1 /home/XXXX/learn.gumnutmagic.com/wp-includes/class-wp-hook.php(327): WP_Hook->apply_filters('', Array)\n#2 /home/XXXX/learn.gumnutmagic.com/wp-includes/plugin.php(470): WP_Hook->do_action(Array)\n#3 /home/XXXX/learn.gumnutmagic.com/wp-content/plugins/woocommerce/includes/class-wc-order.php(364): do_action('woocommerce_ord...', 5338, Object(Automattic\\WooCommerce\\Admin\\Overrides\\Order))\n Cheers! Just commenting out line 60 of enrollment-sync.php seems to fix the problem. Learnpress appears to have removed the $LPUser->enroll() function. For some reason the enrollment seems to still work without line 60. Hi ! @gumnutmagic I commented line 60 and now everything is working ! For new user or logged in users, they can get 2 course whithout any problem! Thanks you very much !!! Thanks also Matias for this plugin !!! —- Problem fixed —- Hi, we have the same issue. @matiasanca Do we need to force users to register a new account or log in if they already have one? If I comment out “line 60” will this cause any issue? Thanks, B Hi @lemeilleur77 , @gumnutmagic , @bedigital There is a new version of the plugin which solves the problem with LearnPress 4. Please update the plugin to version 1.1. Thanks for being patiente. Regards, Matías Anca I’m so sorry. There was a problem with my SVN uploading version 1.1. The new version 1.1.2 solves the problem. Regards, Matías Anca

Comments

9 shown
Matías Anca 2021-10-06T21:01:00+00:00

Hi, Do you required to create an account on checkout? Could you please share your debug.log and any url site to check it? Thanks!

lemeilleur77 2021-10-07T18:16:00+00:00

Hi, Thank you for your answer. It is proposed to create an account in checkout page or to connect with the exiting account. It worked before like this with this configuration. But I can change that and make test. I already sent you an email few days ago with debug files. Thanks !

gumnutmagic 2021-10-30T02:56:00+00:00

We are also getting the same. When an existing, logged in user buys something, instead of progressing to the successful payment page, the user stays on the payment screen, but with a banner at the top saying “internal server error”. The actual payment and purchase are successful, but because it isn’t clear to the user, they end up trying again and spending a whole heap of money that then needs to be manually refunded. It appears to only happen with existing logged in users, not new users. Logs below: [Sun Oct 24 23:28:18.986663 2021] [proxy_fcgi:error] [pid 5915:tid 139736190498560] [client XXX.XXX.XXX.XXX:XXXXX] AH01071: Got error 'PHP message: PHP Fatal error: Uncaught Error: Call to undefined method LP_User::enroll() in /home/XXXX/learn.gumnutmagic.com/wp-content/plugins/manca-lp-wc-integration/admin/enrollment-sync.php:60\nStack trace:\n#0 /home/XXXX/learn.gumnutmagic.com/wp-includes/class-wp-hook.php(305): lpwci_lp_enroll_on_wc_payment_complete(5338)\n#1 /home/XXXX/learn.gumnutmagic.com/wp-includes/class-wp-hook.php(327): WP_Hook->apply_filters('', Array)\n#2 /home/XXXX/learn.gumnutmagic.com/wp-includes/plugin.php(470): WP_Hook->do_action(Array)\n#3 /home/XXXX/learn.gumnutmagic.com/wp-content/plugins/woocommerce/includes/class-wc-order.php(364): do_action('woocommerce_ord...', 5338, Object(Automattic\\WooCommerce\\Admin\\Overrides\\Order))\n Cheers!

gumnutmagic 2021-10-31T05:49:00+00:00

Just commenting out line 60 of enrollment-sync.php seems to fix the problem. Learnpress appears to have removed the $LPUser->enroll() function. For some reason the enrollment seems to still work without line 60.

lemeilleur77 2021-11-04T11:05:00+00:00

Hi ! @gumnutmagic I commented line 60 and now everything is working ! For new user or logged in users, they can get 2 course whithout any problem! Thanks you very much !!!

lemeilleur77 2021-11-04T11:07:00+00:00

Thanks also Matias for this plugin !!! —- Problem fixed —-

bedigital 2021-11-07T15:29:00+00:00

Hi, we have the same issue. @matiasanca Do we need to force users to register a new account or log in if they already have one? If I comment out “line 60” will this cause any issue? Thanks, B

Matías Anca 2021-11-26T04:38:00+00:00

Hi @lemeilleur77 , @gumnutmagic , @bedigital There is a new version of the plugin which solves the problem with LearnPress 4. Please update the plugin to version 1.1. Thanks for being patiente. Regards, Matías Anca

Matías Anca 2021-11-28T04:56:00+00:00

I’m so sorry. There was a problem with my SVN uploading version 1.1. The new version 1.1.2 solves the problem. Regards, Matías Anca