• Resolved Matt Pramschufer

    (@mattpramschufer)


    I just installed, when I goto try to export I get a 500 error and the logs say

    [04-May-2022 18:19:17] WARNING: [pool www] child 10910 said into stderr: “NOTICE: PHP message: PHP Fatal error: Uncaught Error: Call to a member function to_Array() on array in /var/www/xxx.com/wp-content/plugins/woo-order-export-lite/classes/formats/abstract-class-woe-formatter-plain-format.php:181”

Viewing 11 replies - 1 through 11 (of 11 total)
  • Plugin Author algol.plus

    (@algolplus)

    Hello

    Could you please switch to Storefront theme (default for WooCommerce) ?

    Some users reported this bug, but we don’t know exact reason still.

    Thread Starter Matt Pramschufer

    (@mattpramschufer)

    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.

    Plugin Author algol.plus

    (@algolplus)

    Same hosting? Php version?

    Thread Starter Matt Pramschufer

    (@mattpramschufer)

    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.

    Plugin Author algol.plus

    (@algolplus)

    Please run DevTools and use network monitoring to compare Ajax requests on two websites.

    Thread Starter Matt Pramschufer

    (@mattpramschufer)

    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

    Plugin Author algol.plus

    (@algolplus)

    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 3 months, 1 week ago by algol.plus.
    Thread Starter Matt Pramschufer

    (@mattpramschufer)

    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!

    Plugin Author algol.plus

    (@algolplus)

    How exactly it breaks our data?
    Sanitize $_POST ?

    Thread Starter Matt Pramschufer

    (@mattpramschufer)

    Yes that is exactly what it was doing!

    Plugin Author algol.plus

    (@algolplus)

    Thank you for detailed reply.

Viewing 11 replies - 1 through 11 (of 11 total)
  • You must be logged in to reply to this topic.