• Resolved davidchong

    (@davidchong)


    I am getting the following warning on the page where I place the shortcode (runningeventscalendar.com):-

    Warning: preg_match(): Delimiter must not be alphanumeric or backslash in /home/runniled/public_html/wp-content/plugins/inline-google-spreadsheet-viewer/inline-gdocs-viewer.php on line 322

    I assume it is referring this section in plugin:-

    private function getDocId ($key) {
    $m = array();
    preg_match($this->gdoc_url_regex, $key, $m);
    if (!empty($m[1])) {
    $id = $m[1];
    } else {
    $id = sanitize_title_with_dashes($key);
    }
    if (‘mysql’ === $this->getDocTypeByKey($key)) {
    $id = hash(‘md5’, $key);
    }
    return $id;

    What do i need to change to fix this error? Thanks

    https://ww.wp.xz.cn/plugins/inline-google-spreadsheet-viewer/

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Meitar

    (@meitar)

    No clue. preg_match here is referencing $this->gdoc_url_regex, which is defined on line 23. As you can see, that line’s regex does not use an alphanumeric character or backslash as its delimiter, so I’m not sure what it’s complaining about. I’ve also never seen this be an issue before, so I wonder if perhaps you’re running a forked/modified version of the plugin somehow…?

    Thread Starter davidchong

    (@davidchong)

    Re installed the plug in. It works fine now. Thanks for your time

    Thread Starter davidchong

    (@davidchong)

    resolved

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

The topic ‘preg_match warning’ is closed to new replies.