Support » Plugin: WooCommerce Video Product Tab » Fatal error: Uncaught Error: [] operator not supported for strings

  • parides

    (@parides)


    I have a problem with the plugin after updating to the latest version of woocommerce 3.4.5 and wordpress 4.9.8 where there was a video the tab works perfectly. where it was not present from the following error:

    Fatal error: Uncaught Error: [] operator not supported for strings in
    /web/htdocs/www.arcdiguerrieriraffaele.it/home/wp-content/plugins/woocommerce-video-product-tab/woocommerce-video-tab.php:223 Stack trace: #0
    /web/htdocs/www.arcdiguerrieriraffaele.it/home/wp-includes/class-wp-hook.php(286):
    WooCommerce_Video_Product_Tab->product_write_panel() #1
    /web/htdocs/www.arcdiguerrieriraffaele.it/home/wp-includes/class-wp-hook.php(310): WP_Hook->apply_filters(”, Array) #2 /web/htdocs/www.arcdiguerrieriraffaele.it/home/wp-
    includes/plugin.php(515): WP_Hook->do_action(Array) #3
    /web/htdocs/www.arcdiguerrieriraffaele.it/home/wp-content/plugins/woocommerce/includes/wc-
    deprecated-functions.php(33): do_action_ref_array(‘woocommerce_pro…’, Array) #4
    /web/htdocs/www.arcdiguerrieriraffaele.it/home/wp-
    content/plugins/woocommerce/includes/admin/meta-boxes/views/html-product-data-panel.php(47):
    wc_do_deprecated_action(‘woocommerce_pro…’, Array, ‘2.6’, ‘Use woocommerce…’) #5
    /web/htdocs/www.arcdiguerrieriraffaele.it/home/wp-content/plu in
    /web/htdocs/www.arcdiguerrieriraffaele.it/home/wp-content/plugins/woocommerce-video-product-tab/woocommerce-video-

    is it possible to update the plugin or to know what to modify to make it work again?

    Thank you.

Viewing 2 replies - 1 through 2 (of 2 total)
  • I had this same problem and was forced to disable the plugin, as it was causing major issues with the wysiwyg editor.

    FIXED: I had the same problem, easy fix:

    Locate your plug-in folder (FTP) and inside the, “woocommerce-video-product-tab” folder, edit the, “woocommerce-video-tab.php” file. You might need to download it, edit it locally and then reload it to your server.

    Go to line 223. There you will see:

    $tab_data[]

    Add this line above that line of code:

    $tab_data = array();

    Save the file, reload it to where you got it and enjoy.

    If you’re wondering, $tab_data is defined as a string earlier, this resets it to an array and make it usable again.

    • This reply was modified 1 month, 3 weeks ago by  pdsxerox.
    • This reply was modified 1 month, 3 weeks ago by  t-p.
Viewing 2 replies - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.