Skip Navigation

[Resolved] Error filling up error logs

This support ticket is created 4 years, 2 months ago. There's a good chance that you are reading advice that it now obsolete.

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

Sun Mon Tue Wed Thu Fri Sat
- 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 -
- 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 -

Supporter timezone: Asia/Hong_Kong (GMT+08:00)

Tagged: 

This topic contains 8 replies, has 3 voices.

Last updated by Luo Yang 4 years, 2 months ago.

Assisted by: Luo Yang.

Author
Posts
#1821703

Here is the error I keep seeing:

Warning: Invalid argument supplied for foreach() in /wp-content/plugins/cred-commerce/plugins/woocommerce/CRED_Woocommerce.php on line 219

I'm not sure if it's breaking anything, but I thought I should make you aware.

#1822535

Nigel
Supporter

Languages: English (English ) Spanish (Español )

Timezone: Europe/London (GMT+00:00)

Hi Richard

Do you have any more details, in particular do you know what actions are being taken when these warnings are generated?

Seeing the warning in isolation doesn't reveal very much.

Is there some other process on your site that creates new orders without going through the normal cart process?

Does the workflow you set up using Toolset Forms with commerce work as expected?

#1823355

I don't have a WooCommerce form setup right now, so it must be the WooCommerce Views triggering it, right?

#1824477

Hello,

The debug logs you provided above is from "Toolset Forms Commerce" plugin, please find and edit the post/user form with "Forms Commerce" settings, in section "Toolset Forms Commerce", option "Checkout process", choose "Clear the cart and include only the selected product"

#1825439
Screenshot_1.png

I don't think I have any WooCommerce Toolset forms, so I'm not sure how to change that setting....

#1825537

The problem is abnormal, please check these:

1) In case it is a compatibility problem, please deactivate all other plugins, and switch to wordpress default theme 2020, deactivate all custom PHP snippets, and test again

2) If the problem still persists, please provide database dump file(ZIP file) of your website, you can put the package files in your own google drive disk, share the link only, also point out the problem page URL, how to trigger the PHP error debug logs in front-end or admin side, I need to test and debug it in my localhost, thanks
https://toolset.com/faq/provide-supporters-copy-site/

#1825585

I have a site setup for testing already, dev.teachingselfgovernment.com. I'll share the login info for an administrator account, just send me a new secure form.

I did disable all plugins except Elementor Pro, Error Log Monitor, WooCommerce, and Toolset. I only left WooCommerce on because WooCommerce Blocks requires it. I left Elementor on so the site looks normal, and the Error Log Monitor so I can easily monitor the logs.

I'm not sure what I would have to do to trigger that error again though.

#1825661

Private message box enabled again, and if there are detail steps for "how to trigger the PHP error debug logs in front-end or admin side", that will be helpful, thanks

#1826779

I have checked all post forms and user forms in your website, there isn't "Toolset Forms Commerce" setting in it, if you don't need it, you can deactivate "Toolset Forms Commerce" plugin.

And before you reinstall WooCommerce plugin, you can backup your website database first, all Toolset and Woocommerce setting should in your website database, it is safe to delete the plugin files.