Warning: strpos() and Warning: Warning: preg_split()

This topic has 5 replies, 3 voices, and was last updated 10 years, 1 months ago ago by Eva Kemp

  • Avatar: diocesan
    Ryan
    Participant
    October 15, 2014 at 18:55

    I am getting the following errors after updating Legenda to the latest version (I also updated Woocommerce to the current version – 2.2.6):

    Warning: strpos() expects parameter 1 to be string, array given in /home/****/public_html/testshop/wp-includes/shortcodes.php on line 196

    Warning: preg_split() expects parameter 2 to be string, array given in /home/****/public_html/testshop/wp-includes/formatting.php on line 227

    Warning: Invalid argument supplied for foreach() in /home/****/public_html/testshop/wp-includes/formatting.php on line 229

    Warning: implode() [function.implode]: Invalid arguments passed in /home/****/public_html/testshop/wp-includes/formatting.php on line 279

    It appears on the category pages like this one:

    https://diocesan.com/testshop/product-category/greeting-cards/

    I have disabled all of the plugins with the exception of Woocommerce and the error remains. So, I know it is not an issue with one of the plugins.

    Thank you for your help with this! 🙂

    4 Answers
    Avatar: Robert Hall
    Robert Hall
    Support staff
    October 15, 2014 at 20:01

    Hello,

    Please provide us with wp-admin and FTP credentials in Private Content.

    Regards,
    Robert Hall.

    Avatar: Eva
    Eva Kemp
    Support staff
    October 15, 2014 at 20:02

    Hello,

    To correct all categories you need go to Products > Categories > open category and re-save it. Errors will disappear. The problem is related to changes made in category header editor.

    Thank you.
    Regards,
    Eva Kemp.

    Avatar: diocesan
    Ryan
    Participant
    October 15, 2014 at 20:31

    Thank you, Eva! I did that and the error no longer shows up! 🙂

    Avatar: Eva
    Eva Kemp
    Support staff
    October 16, 2014 at 14:40

    Hello,

    You’re welcome.

    Regards,
    Eva Kemp.

  • Viewing 5 results - 1 through 5 (of 5 total)

The issue related to '‘Warning: strpos() and Warning: Warning: preg_split()’' has been successfully resolved, and the topic is now closed for further responses

8theme customization service
We're using our own and third-party cookies to improve your experience and our website. Keep on browsing to accept our cookie policy.