LMS Development Company – Expert Moodle Developers › Forums › MooWoodle › Warning: Undefined variable $customer_orders
- This topic has 6 replies, 2 voices, and was last updated 1 year, 11 months ago by
dualcube.
-
AuthorPosts
-
February 1, 2024 at 10:48 am #21106
Jason De Mamiel
ParticipantHi
I am getting this error when you click on “My Courses”
Warning: Undefined variable $customer_orders in /home/sextoyau/mytest.au/child/wp-content/plugins/moowoodle/classes/class-moowoodle-endpoints.php on line 70
Fatal error: Uncaught TypeError: count(): Argument #1 ($value) must be of type Countable|array, null given in /home/sextoyau/mytest.au/child/wp-content/plugins/moowoodle/classes/class-moowoodle-endpoints.php:70 Stack trace: #0 /home/sextoyau/mytest.au/child/wp-includes/class-wp-hook.php(324): MooWoodle_Endpoints->woocommerce_account_my_courses_endpoint() #1 /home/sextoyau/mytest.au/child/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters() #2 /home/sextoyau/mytest.au/child/wp-includes/plugin.php(517): WP_Hook->do_action() #3 /home/sextoyau/mytest.au/child/wp-content/plugins/woocommerce/includes/wc-template-functions.php(3239): do_action() #4 /home/sextoyau/mytest.au/child/wp-includes/class-wp-hook.php(324): woocommerce_account_content() #5 /home/sextoyau/mytest.au/child/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters() #6 /home/sextoyau/mytest.au/child/wp-includes/plugin.php(517): WP_Hook->do_action() #7 /home/sextoyau/mytest.au/child/wp-content/plugins/woocommerce/templates/myaccount/my-account.php(34): do_action() #8 /home/sextoyau/mytest.au/child/wp-content/plugins/woocommerce/includes/wc-core-functions.php(345): include(‘/home/sextoyau/…’) #9 /home/sextoyau/mytest.au/child/wp-content/plugins/woocommerce/includes/shortcodes/class-wc-shortcode-my-account.php(123): wc_get_template() #10 /home/sextoyau/mytest.au/child/wp-content/plugins/woocommerce/includes/shortcodes/class-wc-shortcode-my-account.php(72): WC_Shortcode_My_Account::my_account() #11 /home/sextoyau/mytest.au/child/wp-content/plugins/woocommerce/includes/class-wc-shortcodes.php(72): WC_Shortcode_My_Account::output() #12 /home/sextoyau/mytest.au/child/wp-content/plugins/woocommerce/includes/class-wc-shortcodes.php(115): WC_Shortcodes::shortcode_wrapper() #13 /home/sextoyau/mytest.au/child/wp-includes/shortcodes.php(433): WC_Shortcodes::my_account() #14 [internal function]: do_shortcode_tag() #15 /home/sextoyau/mytest.au/child/wp-includes/shortcodes.php(273): preg_replace_callback() #16 /home/sextoyau/mytest.au/child/wp-includes/class-wp-hook.php(324): do_shortcode() #17 /home/sextoyau/mytest.au/child/wp-includes/plugin.php(205): WP_Hook->apply_filters() #18 /home/sextoyau/mytest.au/child/wp-includes/post-template.php(256): apply_filters() #19 /home/sextoyau/mytest.au/child/wp-content/themes/customify/template-parts/content-page.php(20): the_content() #20 /home/sextoyau/mytest.au/child/wp-includes/template.php(792): require(‘/home/sextoyau/…’) #21 /home/sextoyau/mytest.au/child/wp-includes/template.php(725): load_template() #22 /home/sextoyau/mytest.au/child/wp-includes/general-template.php(206): locate_template() #23 /home/sextoyau/mytest.au/child/wp-content/themes/customify/page.php(23): get_template_part() #24 /home/sextoyau/mytest.au/child/wp-includes/template-loader.php(106): include(‘/home/sextoyau/…’) #25 /home/sextoyau/mytest.au/child/wp-blog-header.php(19): require_once(‘/home/sextoyau/…’) #26 /home/sextoyau/mytest.au/child/index.php(17): require(‘/home/sextoyau/…’) #27 {main} thrown in /home/sextoyau/mytest.au/child/wp-content/plugins/moowoodle/classes/class-moowoodle-endpoints.php on line 70
February 1, 2024 at 12:52 pm #21107dualcube
Keymaster@Jason De Mamiel, as shared over the mail, we have already fixed this issue.
Please download the plugin from here and install this on your site : https://www.transfernow.net/dl/202402015x9Csmx4
Once you will install this , the issue should be fixed.
Please do keep us posted.
February 1, 2024 at 1:15 pm #21108Jason De Mamiel
ParticipantThanks, the link to Moodle doesn’t work. Just keeps taking you back to dashboard page when you click on the “VIEW” under course link.
February 1, 2024 at 1:17 pm #21109Jason De Mamiel
ParticipantWhen I run the Moowoodle Test Connection I get a tick for everyone of these:
Connecting to Moodle :
Course Category Sync :
Course Data Sync :
Course Sync :
User Creation :
User Data Sync :
User Data Update :
User Enrolment :
User Unenrolment :
All Test :February 1, 2024 at 3:10 pm #21110dualcube
KeymasterJason, as you can see we didn’t face any such issue on our end https://www.loom.com/share/fdeb2273ce214796be637090fac81bae
Now as you are still facing this, please do create temporary admin access and share the admin, ftp access.
While sharing the access, don’t forget to mark the reply as private.
February 1, 2024 at 4:01 pm #21111Jason De Mamiel
ParticipantThis reply has been marked as private.February 1, 2024 at 5:30 pm #21112dualcube
KeymasterThis reply has been marked as private. -
AuthorPosts
- You must be logged in to reply to this topic.