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

  • Resolved sl1n

    (@sl1n)


    Good morning,

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

    Warning
    : preg_match(): Unknown modifier ‘d’ in
    /homepages/30/d834969130/htdocs/clickandbuilds/Freiraum4ImmobilienundFinanzierung/wp-content/plugins/onoffice-for-wp-websites/plugin/Utility/Redirector.php

    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(‘display_errors’,’Off’);
    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.