• Resolved wapwop

    (@wapwop)


    Used standard WP Product Export from the product page. Exported all. Export.

    Edited variation prices only. Didn’t touch anything else in the CSV file.

    Import CSV file.

    Ticked update existing products. All slugs remain in tact in CSV file, and confirmed “Meta: woosvi_slug” was imported as meta data.

    After import SVI images broke. No more per variation of product page. Can’t even edit in admin-products anymore. Going to SVI gallery in product edit just comes up with error screen:

    ?Fatal error: Uncaught Error: count(): Argument #1 ($value) must be of type Countable|array, string given
    in?/home/mywebsite/public_html/wp-content/plugins/smart-variations-images/admin/class-smart-variations-images-admin.php?on line?253

    Call stack:

    1. Smart_Variations_Images_Admin::getImagesAssignedWithVariations()
      wp-content/plugins/smart-variations-images/admin/class-smart-variations-images-admin.php:728
    2. Smart_Variations_Images_Admin::build_sviGallery()
      wp-content/plugins/smart-variations-images/admin/class-smart-variations-images-admin.php:539
    3. Smart_Variations_Images_Admin::build_sviTab()
      wp-content/plugins/smart-variations-images/admin/class-smart-variations-images-admin.php:455
    4. Smart_Variations_Images_Admin::images_settings()
      wp-includes/class-wp-hook.php:310
    5. WP_Hook::apply_filters()
      wp-includes/class-wp-hook.php:334
    6. WP_Hook::do_action()
      wp-includes/plugin.php:517
    7. do_action()
      wp-content/plugins/woocommerce/includes/admin/meta-boxes/views/html-product-data-panel.php:54
    8. include()
      wp-content/plugins/woocommerce/includes/admin/meta-boxes/class-wc-meta-box-product-data.php:33
    9. WC_Meta_Box_Product_Data::output()
      wp-admin/includes/template.php:1443
    10. do_meta_boxes()
      wp-admin/edit-form-advanced.php:688
    11. require()
      wp-admin/post.php:206

    Query Monitor

    • This topic was modified 1 year, 1 month ago by wapwop.
Viewing 10 replies - 1 through 10 (of 10 total)
  • Thread Starter wapwop

    (@wapwop)

    .

    • This reply was modified 1 year, 1 month ago by wapwop.
    Plugin Author David Rosendo

    (@drosendo)

    Hello,

    Can you access that file and replace:

    in /home/mywebsite/public_html/wp-content/plugins/smart-variations-images/admin/class-smart-variations-images-admin.php on line 253

    Change: $product_image_gallery = explode(‘,’, $attachment_ids);
    To: $product_image_gallery = $attachment_ids;

    Let me know.

    Thread Starter wapwop

    (@wapwop)

    thanks for the reply. it didn’t work, same error.

    however line 253 is

        if ( !empty($woosvi_slug) && count( $woosvi_slug ) > 0 ) {

    https://prnt.sc/fjuMLffSwfYj

    Plugin Author David Rosendo

    (@drosendo)

    Wierd,

    I will do some testing on my side. Get back to you soon.

    cheers,

    David

    Plugin Author David Rosendo

    (@drosendo)

    Hello @wapwop ,

    It’s seems that WooCommerce is overwriting the data and converting to string.
    Do you still have the CSV?
    I will release a fix so that you and anyone else can run the import again and now SVI will properly store the information and not WC.

    Cheers

    Plugin Author David Rosendo

    (@drosendo)

    Hello,

    I’ve provided a comprehensive guide on how to address this issue. Please refer to the following link for a detailed explanation: How to Fix the Issue.

    In the interim, I’m working on releasing a new version to prevent this issue from recurring in the future. Please note that while the upcoming version will prevent this problem, it won’t rectify the existing issue. To resolve the current issue, you’ll need to use the provided script in the guide.

    Thank you for your understanding and patience.

    Best regards,
    David

    Thread Starter wapwop

    (@wapwop)

    thank you! i did as directed and it’s now working correctly in admin, and product variation galleries have been restored correctly. good work!

    could i clarify that once the update is launched i’ll be able to import/export?

    Thread Starter wapwop

    (@wapwop)

    oh, i’ve only just noticed until now also but it seems when exporting with SVI, and including meta data, only the meta data for SVI was exported and included in the CSV file.

    when SVI plugin is disabled and products are exported with meta, all the other custom meta appears correctly.

    Plugin Author David Rosendo

    (@drosendo)

    Hi,

    Thank you for pointing this out. I’ve confirmed the issue with the SVI meta data export. I’ve created a fix, and it will be included in the next plugin update. Please update the SVI plugin once it’s available to address this.

    I appreciate your feedback and support. If you’re satisfied with the plugin and the support you’ve received, I’d be grateful if you could leave a review. Your positive words really help others understand the value of the plugin.

    Thanks for your patience and understanding.

    Best,
    David

    Thread Starter wapwop

    (@wapwop)

    thank you! really glad this got fixed and appreciate your efforts and speedy replies.

Viewing 10 replies - 1 through 10 (of 10 total)
  • The topic ‘Import/Export Broke SVI’ is closed to new replies.