Hello
Could you please switch to Storefront theme (default for WooCommerce) ?
Some users reported this bug, but we don’t know exact reason still.
Umm, this site is a cone of another site which I installed with no problem. Same theme, plugins, etc. Except this one throws 500 error.
Same hosting? Php version?
Yeah I just confirmed, same hosting, php, apache. The error that keeps happening is now
[05-May-2022 12:52:34] WARNING: [pool www] child 14 said into stderr: “NOTICE: PHP message: PHP Fatal error: Uncaught Error: Call to a member function get_fetch_fields() on array in /var/www/xxx.com/wp-content/plugins/woo-order-export-lite/classes/core/class-wc-order-export-data-extractor.php:1733”
When I goto line 1733 and I error_log(var_export($labels,true)); the
[labels:WC_Order_Export_Labels:private] => Array is empty
Which is why that function can not be found.
Please run DevTools and use network monitoring to compare Ajax requests on two websites.
I think the problem lies in the setup field to export. On the site that does not work, it shows them coming in as undefined even after I update them and save settings. Take a look at https://s3.amazonaws.com/pramadillo/screencast_2022-05-05_09-50-36.mp4
Can you press Reset Settings ? Will you see correct data in Preview/Export ?
I still think it’s a conflict with another plugin,
which damages json data in our plugin when you press Save Settings
-
This reply was modified 4 years, 1 month ago by
algol.plus.
You are 100% correct, the reset settings worked to get the columns showing but there was a conflict with another custom plugin that was running. Thanks so much for the time to debug!
How exactly it breaks our data?
Sanitize $_POST ?
Yes that is exactly what it was doing!
Thank you for detailed reply.