Support » Plugin: onOffice for WP-Websites » Warning : preg_match(): Unknown modifier ‘d’ in…

  • Resolved sl1n


    Good morning,

    I just updated the plugin to the newest version and I received the following warning on the front end:

    : preg_match(): Unknown modifier ‘d’ in

    This is the line of concern:

    preg_match(‘/^(‘ . preg_quote($pageName) .’)\/([0-9]+)(-([^$]+))?\/?$/’, $uri, $matches);

    Apparently the pattern delimiters need to be escaped.

    I bypassed the warning by inserting the following into the wp-config.php file:

    ini_set(‘error_reporting’, E_ALL );
    define(‘WP_DEBUG’, false);
    define(‘WP_DEBUG_DISPLAY’, false);

    Thanks in advance.

Viewing 5 replies - 1 through 5 (of 5 total)
Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Warning : preg_match(): Unknown modifier ‘d’ in…’ is closed to new replies.