When clicking Download I get error “Function get_cart was called incorrectly”

Viewing 10 posts - 1 through 10 (of 10 total)
#186166

Maurice Maurer
Participant

Hey,
last week everything was still working. I have WPDM installed to protect downloads in my LearnDash courses that I sell via Woocommerce. Today when clicking Download I get the error message, it just keeps repeating on the entire page but I could not copy it out of there for some reason so I typed it:

“Notice: Function get_cart was called incorrectly. Get cart should not be called before the wp_loaded action. Backtrace: require(‘wp-blog-header.php’), require_once(‘wp-load.php’), require_once(‘wp-config.php’), require_once(wp-settings.php’), do_action(‘init’), WP_Hook->do_action, WP_Hook->apply_filters, WPDM\__\Apply->triggerDownload, include(‘/plugins/download-manager/src/wpdm-start-download.php’), WPDM\__\Messages:fullPage, include(‘plugins/download-manager/src/__/views/message.php’),wp_head,do_action(‘wp_head’),WP_Hook->do_action,WP_Hook->apply_filters,wp_enqueue_scripts,do_action(‘wp_enqueue_scripts’),QP_Hook->do_action,WP_Hook->apply_filters,WC_Payment_Gateway_WCPay->register_scripts_for_zero_order_total,WC_Cart->is_empty,WC_Cart->get_cart,wc_doing_it_wrong Please see Debugging in WordPress for more information. (This message was added in version 2.3) in …/functions.php on line 5835”

Somewhere hidden in all the Notices it says “Sorry, file not found!”

Does anyone have an idea how to fix this?

#186167

Shahjada
Keymaster

The error doesn’t look like from wpdm. Please give me temporary wp-admin login info to check it in details.

#186168

Maurice Maurer
Participant
This reply has been marked as private.
#186169

Maurice Maurer
Participant

Did you get my private message?

#186171

Shahjada
Keymaster

Yes. Checking in a while

#186179

Shahjada
Keymaster

May I try deactivating other plugins?

#186194

Maurice Maurer
Participant

Hey, sorry I was sleeping. In the meantime I actually deactivated ALL other plugins and the error still persists. However, I also have the same issue with the Download Monitor plugin. I even deleted all other plugins and switched to the 2020 theme.
Something seems seriously broken with my page, do you have any idea how to fix it?

#186195

Shahjada
Keymaster

Checking

#186196

Shahjada
Keymaster

When I was testing with this https://dge6opterg.onrocket.site/download/introduction-materials/, I found attached file is missing, there now I’ve attached a sample file and tested download, and it is working fine.

#186202

Maurice Maurer
Participant

Thank you so much, such a simple problem. Apparently, when I rolled back the backup it messed up the file links internally.

Viewing 10 posts - 1 through 10 (of 10 total)

The topic ‘When clicking Download I get error “Function get_cart was called incorrectly”’ is closed to new replies.