• Resolved beogeek

    (@beogeek)


    Hi,

    I’ve exported the order data from the old server and trying to import it to the new server. The plugin handles 609 orders then it fails and the loading bar just loads forever. There is a total of 1009 orders that need to be migrated, and the plugin does handle 609 but then fails.

    I checked the console in chrome and it does show the following error.

    Failed to load resource: the server responded with a status of 500 () /wp-admin/admin-ajax.php?import_page=woocommerce_wf_order_csv&step=3&merge=1:1

    I’ve tried the following

    – Cleared transients and cache
    – Exported from 609 and tried importing the remaining products, still same issue, file size is only 8Mb in size.
    – Increased memory_limit to 512MB
    – Increased post_max_size 128MB
    – Increased upload_max_filesize 128MB
    – Set max_execution_time to 600
    – Checked the exported file can’t see any blank cells or issues that could cause it to hang.

    There are only 400 product orders that need to be updated that are missing line items but haven’t issues, not sure what else to try.

    Thanks for your time and look forward to hearing a possible solution.

    Cheers
    Milos

Viewing 6 replies - 1 through 6 (of 6 total)
  • Thread Starter beogeek

    (@beogeek)

    Forgot to mention, once I refresh the page I get the following message

    “Merge Orders
    The link you followed has expired.
    Please try again.”

    Then I click “Please try again”

    Which is followed by the following message

    “Merge Orders
    Sorry, there has been an error.
    File is empty. Please upload something more substantial. This error could also be caused by uploads being disabled in your php.ini file or by post_max_size being defined as smaller than upload_max_filesize in php.ini.

    Error with handle_upload!”

    Plugin Author WebToffee

    (@webtoffee)

    Hi @beogeek,

    Could you please share with us the screenshot of the browser console screen when the import is getting stuck and the fatal error log(Woocommerce>status>logs>fatal-error). Also please try disabling all the plugins on your site except Woocommerce and try importing the orders using the plugin.

    If the issue still persists you may please share it with us by uploading to Google Drive or any similar service and sharing the link. Or else you may please send it to us via support.

    Thread Starter beogeek

    (@beogeek)

    Hi @webtoffee

    Here’s the fatal error log

    2020-09-23T06:47:55+00:00 CRITICAL Uncaught Error: Call to a member function is_type() on bool in /home/k2p3s0m3bx93/public_html/storetodoorja.com/wp-content/plugins/woocommerce/includes/class-wc-coupon.php:864
    Stack trace:
    #0 /home/k2p3s0m3bx93/public_html/storetodoorja.com/wp-content/plugins/woocommerce/includes/class-wc-discounts.php(327): WC_Coupon->is_valid_for_product(false, Object(WC_Order_Item_Product))
    #1 /home/k2p3s0m3bx93/public_html/storetodoorja.com/wp-content/plugins/woocommerce/includes/class-wc-discounts.php(260): WC_Discounts->get_items_to_apply_coupon(Object(WC_Coupon))
    #2 /home/k2p3s0m3bx93/public_html/storetodoorja.com/wp-content/plugins/woocommerce/includes/abstracts/abstract-wc-order.php(1130): WC_Discounts->apply_coupon(Object(WC_Coupon))
    #3 /home/k2p3s0m3bx93/public_html/storetodoorja.com/wp-content/plugins/order-import-export-for-woocommerce/includes/importer/class-wf-orderimpexpcsv-order-import.php(755): WC_Abstract_Order->apply_coupon(‘test’)
    #4 /home/k2p3s0m3bx93/public_html/storetodoorja.com/wp-content/plugins/orde in /home/k2p3s0m3bx93/public_html/storetodoorja.com/wp-content/plugins/woocommerce/includes/class-wc-coupon.php on line 864

    • This reply was modified 4 years, 5 months ago by beogeek.
    Thread Starter beogeek

    (@beogeek)

    Ok, after investigating the logs, I could see it was generating the fatal error in relation to a ‘test’ coupon in woo. I checked the coupon out and deleted it as one of the admins was creating them during testing. Not sure why the coupon caused the plugin to fail at importing, but after removing the ‘test’ coupon the plugin successfully imported all exported orders.

    Excellent, thank you for the help and pointing me in the right direction to resolve the issue.

    • This reply was modified 4 years, 5 months ago by beogeek.
    Plugin Author WebToffee

    (@webtoffee)

    Hi @beogeek,

    Glad to know that everything is working fine for you now.

    Thread Starter beogeek

    (@beogeek)

    @webtoffee would have taken a lot longer without the pointer and direction so thank you once again ??

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Import fails after 609’ is closed to new replies.