• Resolved theengeneer

    (@theengeneer)


    Hello,

    I would like to specify certain things in order to be a bit more clear about the issue.

    Basically, I created a few custom fields for the checkout form.
    If you would like to see, you can always add an item to the cart
    and see the form : https://servicesenlignechum.ca/boutique/

    In order to do so, I installed WooCommerce with these plugins :
    – Checkout Field Editor for WooCommerce (Version 2.9.8 | Par ThemeHiGH)
    – WooCommerce Custom Fields (Version 2.1.3 | Par RightPress)
    – Advanced Order Export For WooCommerce (Version 2.0.1 | Par AlgolPlus)

    After exporting a few orders reports to test it, I realized
    I couldn’t include the custom fields I created. I search over the Web and I
    kept seeing that I needed to get the plugin :

    WooCommerce Customer / Order CSV Export
    https://docs.woocommerce.com/document/ordercustomer-csv-export-developer-documentation/

    After reading the documentation, I installed the plugin and setup my reports with
    my custom fields. Now, when I click on export, my website just freezes and keeps loading indefinitely (503 and 504 Error). I tried searching for the cause of this on the Web, added a subdomain to test it out because I couldn’t afford to have my live website down. I even created a dev domain to test it out.

    I couldn’t find any answers so I contacted the host and they explained to me that MySQL database was corrupted, I needed to adjust some parameters (increase memory, check PHP version etc.)

    All to say that it seems that the export functionality requires a lot of ressources on my hosting. After discussing with my boss and the recommandation of the host, I am gonna migrate all my sites to a HybridCloud.

    Is it normal that the plugin to export reports takes so much ressources on my hosting or am I doing something wrong ?

    Even if I try to export a report for ONE day, it crashes my website.

    Any help, suggestion or if you could point me in the right direction to learn on how to use the plugin would be greatly appreciated.

    Regards,

    T.

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

    (@algolplus)

    hi

    What plugin do you use currently ?
    I’m not author of “WooCommerce Customer / Order CSV Export”.

    If you have problem with my plugin “Advanced Order Export For WooCommerce” – please, share the screenshots or exact error messages(probably, your hosting can provide it).

    thanks, alex

    • This reply was modified 7 years, 4 months ago by algol.plus.
    • This reply was modified 7 years, 4 months ago by algol.plus.
    Thread Starter theengeneer

    (@theengeneer)

    Hello Alex,

    I’m using your plugin “Advanced Order Export For WooCommerce” to generate my report. Every time I click the button “EXPORT”, the SQL requests sent to the database crashes my website, leaving the Front End with a 504 Error (Timeout). I’ve been in touch with my hosting for the last 7 days. We checked all the parameters of the hosting in order to fix the issue. I even went to migrate to a new hosting which offered better performances and stability.

    I managed to visualize the SQL Request sent by the plugin when I press “Export” and here is the result (I apologies for the length of this response) :
    —————————————————————————————
    # User@Host: devservicesenlig_dev_user[devservicesenlig_dev_user] @ localhost []
    # Thread_id: 351 Schema: devservicesenlig_dev1 QC_hit: No
    # Query_time: 934.750202 Lock_time: 0.001023 Rows_sent: 0 Rows_examined: 0
    # Rows_affected: 0
    SET timestamp=1549474550;
    SELECT ID AS order_id FROM wp_posts AS orders
    LEFT JOIN wp_postmeta AS ordermeta_cf_1 ON ordermeta_cf_1.post_id = orders.ID AND ordermeta_cf_1.meta_key=’Payer first name’ LEFT JOIN wp_postmeta AS ordermeta_cf_2 ON ordermeta_cf_2.post_id = orders.ID AND ordermeta_cf_2.meta_key=’Payer last name’ LEFT JOIN wp_postmeta AS ordermeta_cf_3 ON ordermeta_cf_3.post_id = orders.ID AND ordermeta_cf_3.meta_key=’_billing_address_1′ LEFT JOIN wp_postmeta AS ordermeta_cf_4 ON ordermeta_cf_4.post_id = orders.ID AND ordermeta_cf_4.meta_key=’_billing_address_2′ LEFT JOIN wp_postmeta AS ordermeta_cf_5 ON ordermeta_cf_5.post_id = orders.ID AND ordermeta_cf_5.meta_key=’_billing_city’ LEFT JOIN wp_postmeta AS ordermeta_cf_6 ON ordermeta_cf_6.post_id = orders.ID AND ordermeta_cf_6.meta_key=’_billing_company’ LEFT JOIN wp_postmeta AS ordermeta_cf_7 ON ordermeta_cf_7.post_id = orders.ID AND ordermeta_cf_7.meta_key=’_billing_country’ LEFT JOIN wp_postmeta AS ordermeta_cf_8 ON ordermeta_cf_8.post_id = orders.ID AND ordermeta_cf_8.meta_key=’_billing_email’ LEFT JOIN wp_postmeta AS ordermeta_cf_9 ON ordermeta_cf_9.post_id = orders.ID AND ordermeta_cf_9.meta_key=’_billing_phone’ LEFT JOIN wp_postmeta AS ordermeta_cf_10 ON ordermeta_cf_10.post_id = orders.ID AND ordermeta_cf_10.meta_key=’confirm_email’ LEFT JOIN wp_postmeta AS ordermeta_cf_11 ON ordermeta_cf_11.post_id = orders.ID AND ordermeta_cf_11.meta_key=’miam_autorisation_info_perso’ LEFT JOIN wp_postmeta AS ordermeta_cf_12 ON ordermeta_cf_12.post_id = orders.ID AND ordermeta_cf_12.meta_key=’miam_college_royal’ LEFT JOIN wp_postmeta AS ordermeta_cf_13 ON ordermeta_cf_13.post_id = orders.ID AND ordermeta_cf_13.meta_key=’miam_fonction’ LEFT JOIN wp_postmeta AS ordermeta_cf_14 ON ordermeta_cf_14.post_id = orders.ID AND ordermeta_cf_14.meta_key=’miam_lieu_apprentissage’ LEFT JOIN wp_postmeta AS ordermeta_cf_15 ON ordermeta_cf_15.post_id = orders.ID AND ordermeta_cf_15.meta_key=’miam_matricule’ LEFT JOIN wp_postmeta AS ordermeta_cf_16 ON ordermeta_cf_16.post_id = orders.ID AND ordermeta_cf_16.meta_key=’miam_niveau_programme’ LEFT JOIN wp_postmeta AS ordermeta_cf_17 ON ordermeta_cf_17.post_id = orders.ID AND ordermeta_cf_17.meta_key=’miam_nom_programme’ LEFT JOIN wp_postmeta AS ordermeta_cf_18 ON ordermeta_cf_18.post_id = orders.ID AND ordermeta_cf_18.meta_key=’miam_recevoir_info’ LEFT JOIN wp_postmeta AS ordermeta_cf_19 ON ordermeta_cf_19.post_id = orders.ID AND ordermeta_cf_19.meta_key=’miam_service’ LEFT JOIN wp_postmeta AS ordermeta_cf_20 ON ordermeta_cf_20.post_id = orders.ID AND ordermeta_cf_20.meta_key=’miam_sofeduq’
    WHERE orders.post_type in ( ‘shop_order’) AND 1 AND orders.post_date>=’2019-01-15 00:00:00′ AND orders.post_date<=’2019-02-04 23:59:59′ AND orders.post_status NOT in (‘auto-draft’,’trash’) AND ( ordermeta_cf_1.meta_value IN (’empty’) ) AND ( ordermeta_cf_2.meta_value IN (’empty’) ) AND ( ordermeta_cf_3.meta_value IN (’empty’) ) AND ( ordermeta_cf_4.meta_value IN (’empty’) ) AND ( ordermeta_cf_5.meta_value IN (’empty’) ) AND ( ordermeta_cf_6.meta_value IN (’empty’) ) AND ( ordermeta_cf_7.meta_value IN (’empty’) ) AND ( ordermeta_cf_8.meta_value IN (’empty’) ) AND ( ordermeta_cf_9.meta_value IN (’empty’) ) AND ( ordermeta_cf_10.meta_value IN (’empty’) ) AND ( ordermeta_cf_11.meta_value IN (’empty’) ) AND ( ordermeta_cf_12.meta_value IN (’empty’) ) AND ( ordermeta_cf_13.meta_value IN (’empty’) ) AND ( ordermeta_cf_14.meta_value IN (’empty’) ) AND ( ordermeta_cf_15.meta_value IN (’empty’) ) AND ( ordermeta_cf_16.meta_value IN (’empty’) ) AND ( ordermeta_cf_17.meta_value IN (’empty’) ) AND ( ordermeta_cf_18.meta_value IN (’empty’) ) AND ( ordermeta_cf_19.meta_value IN (’empty’) ) AND ( ordermeta_cf_20.meta_value IN (’empty’) ) AND orders.ID IN (SELECT DISTINCT order_items.order_id FROM wp_woocommerce_order_items as order_items
    LEFT JOIN wp_woocommerce_order_itemmeta AS orderitemmeta_product ON orderitemmeta_product.order_item_id = order_items.order_item_id
    WHERE order_item_type=’line_item’ AND (orderitemmeta_product.meta_key IN (‘_variation_id’, ‘_product_id’) AND orderitemmeta_product.meta_value<>’0′ AND orderitemmeta_product.meta_value IN (‘4691’)) );
    —————————————————————————————
    I tried exporting the report for a few days, for only ONE day, I’m still experiencing the same issue.

    Thank you in advance for any help you can give me.

    Regards,

    T.

    Plugin Author algol.plus

    (@algolplus)

    Hi

    How many orders do you have in database ?

    Please, remove all filters, except date range. Will Preview work ok?

    Thanks, Alex

    Thread Starter theengeneer

    (@theengeneer)

    Hello Alex,

    I followed your advice, I cleared all the filters, pressed Export and it works perfectly.
    Thanks for the help.

    T.

    Plugin Author algol.plus

    (@algolplus)

    you’re welcome.

    When you set many filters – the plugin generates complex (and heavy!) SQL

Viewing 5 replies - 1 through 5 (of 5 total)

The topic ‘Advanced Order Export’ is closed to new replies.