• I am getting an error when going to the cart page after adding a product

    Warning: preg_match(): Unknown modifier ‘2’ in /home/content/p3pnexwpnas06_data02/08/2296508/html/wp-content/plugins/woocommerce/includes/shipping/local-pickup/class-wc-shipping-local-pickup.php on line 144

    line 144 is
    if ( preg_match( $pattern, $postcode ) ) {

    full file

    [ Code redacted, the file is woocommerce/includes/shipping/local-pickup/class-wc-shipping-local-pickup.php ]

    Please can anyone help me with this

    https://www.ads-software.com/plugins/woocommerce/

Viewing 8 replies - 1 through 8 (of 8 total)
  • Please post the url to your site.

    I am having the same problem, can someone please help?

    Warning: preg_match(): Unknown modifier ‘2’ in /home3/chekesha/public_html/myblogv2/wp-includes/class-wp.php on line 204

    Warning: preg_match(): Unknown modifier ‘2’ in /home3/chekesha/public_html/myblogv2/wp-includes/class-wp.php on line 205

    https://libertyandjusticeforall.org/myblogv2/current-news/

    It basically appears when I click on any of the page links, and it also appears in my admin page.

    thanks!!

    @robert Brown
    Are you hosted with wordpress.com or self-hosted?

    Hi lorro,

    I am hosted with hostgator

    thanks

    Did this work for you until recently, or did it never work for you. It looks like your theme does not advertise WooCommerce comaptibility

    I should turn off your cache plugin until this is fixed to be sure that you are seeing the result of any actions and not a previously rendered page.

    Try resetting permalinks. At Admin page > Settings > Permalinks, click “Save Changes” even though there are none.

    Try temporarily deactivating all plugins except WooCommerce to be able to rule out a conflict with another plugin.

    If the problem persists, try with a default theme to be able to rule out a theme issue. Ensure you have the latest version of your theme.

    Hi lorro,

    Sorry, I am new to this and it appears I have made a mistake and overlooked that this topic was related to a specific plugin, which I am not currently using. Obviously this would mean WooCommmerce is not the issue. Thanks for you time.

    If you do have any suggestions however. . . ??

    Cheers,

    Most of my last post is generic debug methods so still relevant. The objective is to identify the component that is causing the errors.

    Thanks you, I will give those a try and report back, cheers,

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘Warning: preg_match(): Unknown modifier '2'’ is closed to new replies.