• Perhaps I’m doing it wrong, or maybe it’s a bug.

    I can’t get any folders to be excluded.

    No matter what input I try, I get:

    Warning: preg_match(): Unknown modifier ‘/’ in /site_root/public_html/wp-content/plugins/organize-media-library/lib/class-organizemedialibrary.php on line 200

    I’ve tried the following for a folder called “avatar-cache” located in /wp-content/uploads/avatar-cache:

    /avatar-cache
    \/avatar-cache
    [/avatar-cache]
    [\/avatar-cache]
    ~/avatar-cache~
    ~\/avatar-cache~

    The modifier that is reported as unknown changes based on my input, but the error and line number remain consistent.

    I do notice after hitting “Make Folder & Save Changes”, the “\” character is always stripped from my last input.

    When I submit:

    \/avatar-cache

    The admin page reloads with the preg_match warning, and the exclude value shown is always (“\” stripped):

    /avatar-cache

    That most certainly seems to be the issue.

    I’ll try disabling my plugins and the usual routine, but I can’t think of any right now that affect admin form inputs….let alone stripping values from admin form inputs. I’ll check back and perhaps you have some ideas as well.

Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Exclude Folders – preg_match() unknown modifier’ is closed to new replies.