• Resolved viking92

    (@viking92)


    Hi there,
    I´m about to set up a online shop. I worked a lot in the past years with the free version of the WPtouch plugin.

    Now, as soon as I turn the plugin on – I recieve following warning ONLY on my mobile devices and ONLY when the Plugin is turned on and I’m sorting all the products into categories. As long as I don’t run it with the single categories in it I don’t recive any kind of errors. In the browser on my laptop everything appears the way it`s supposed to be.

    ________

    ** WARNING: explode()expects parameter 2 to be string, array given in /www/htdocs/w017a426/wildwest-merch.com/wp-content/plugins/woocommere/includes/class-wc-query.php on line 448 **

    ________

    Line 445 -451 look like this :
    
    }
    
    // Get order + orderby args from string.
    $orderby_value = explode( '-', $orderby_value );
    $orderby       = esc_attr( $orderby_value[0] );
    $order         = ! empty( $orderby_value[1] ) ? $orderby_value[1] : $order;
    }

    _________

    Anyone an idea what could cause the issue? Thanks in advance for any kind of help!

    The page I need help with: [log in to see the link]

Viewing 4 replies - 1 through 4 (of 4 total)
  • Thread Starter viking92

    (@viking92)

    I`m still stuck with this issue. Im thankful for any kind of help or tipp.

    Plugin Contributor WPtouch

    (@wptouch)

    Hi @viking92,

    Please note that the free version of WPtouch does not include any themes that include official support for WooCommerce. At this time, only the MobileStore theme, which is a Pro-only theme includes support for WooCommerce.

    We can’t guarantee full WooCommerce functionality in any of the other themes. So I would recommend that you consider using WPtouch Pro/MobileStore for your WooCommerce-powered website.

    If the warning message is not causing any functionality issues, you can hide it by hiding PHP notices in WordPress’s frontend by adding the code below to your installation’s wp-config.php file, somewhere before the “Happy Blogging!” line.

    error_reporting(0);
    @ini_set(‘display_errors’, 0);

    Regards,

    Emilio Rivera
    WPtouch Support

    Thread Starter viking92

    (@viking92)

    Hi Emilio,
    thanks for your response ! The issue is not causing any functionality issues I was just weirded out why all the sudden that array error showed up and why I can only see it on mobile devises. I double checked my php files and couldnt see any obvious reason that couldve caused that error.

    I solved the problem first with adding the code into my wp-config.php file – what seemed worked fine – but decided now to create new pages in my store and use the woocommerce shortcuts to show my choosen product categories. Just in case that the main issue behind the error could cause some issues.

    Thanks again for your help !

    Plugin Contributor WPtouch

    (@wptouch)

    Glad to know you were able to find a workaround that works for you! Thanks for the follow-up.

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

The topic ‘Warning: explode() expects parameter 2 – after installing WPtouch Plugin’ is closed to new replies.