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

in Download Manager Free

Viewing 10 posts - 1 through 10 (of 10 total)
Apr 24, 2023 at 10:28 am
#186166
Participant
Maurice Maurer
OP

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?

Apr 24, 2023 at 10:38 am
#186167
Keymaster
Shahjada
Staff

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

Apr 24, 2023 at 10:44 am
#186168
Participant
Maurice Maurer
OP
This reply has been marked as private.
Apr 24, 2023 at 10:44 am
#186169
Participant
Maurice Maurer
OP

Did you get my private message?

Apr 24, 2023 at 11:10 am
#186171
Keymaster
Shahjada
Staff

Yes. Checking in a while

Apr 24, 2023 at 5:37 pm
#186179
Keymaster
Shahjada
Staff

May I try deactivating other plugins?

Apr 25, 2023 at 5:52 am
#186194
Participant
Maurice Maurer
OP

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?

Apr 25, 2023 at 5:59 am
#186195
Keymaster
Shahjada
Staff

Checking

Apr 25, 2023 at 6:39 am
#186196
Keymaster
Shahjada
Staff

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.

Apr 25, 2023 at 9:27 am
#186202
Participant
Maurice Maurer
OP

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.