WordPress.org

Ready to get started?Download WordPress

Forums

Dave's WordPress Live Search
Warning: preg_match() (7 posts)

  1. umarglobal
    Member
    Posted 2 years ago #

    Great Plugin, Thanks for the hard work. Just letting you know that when setting an exception rule in Settings->Live Search->Advanced Tab, I get the following PHP Warning

    Warning: preg_match() [function.preg-match]: Compilation failed: nothing to repeat at offset 1 in path-to-site\wp-content\plugins\daves-wordpress-live-search\DavesWordPressLiveSearch.php on line 353
    
    Warning: preg_match() [function.preg-match]: Compilation failed: nothing to repeat at offset 1 in C:\xampp\htdocs\sas\wp-content\plugins\daves-wordpress-live-search\DavesWordPressLiveSearch.php on line 353

    Im trying to place an exception rule for a post. So i am place the following in the exceptions text area "?p=82"

    Hope this makes sense.

    http://wordpress.org/extend/plugins/daves-wordpress-live-search/

  2. Dave Ross
    Member
    Plugin Author

    Posted 2 years ago #

    Interesting. Could you post your exception rules?

  3. umarglobal
    Member
    Posted 2 years ago #

    Rule is simply

    ?p=101

  4. Dave Ross
    Member
    Plugin Author

    Posted 2 years ago #

    Ah, found a bug in how it handled exception rules when permalinks are turned off.

    Could you try the development version at http://downloads.wordpress.org/plugin/daves-wordpress-live-search.zip and see if that clears this issue up for you?

    Thanks

  5. andreu
    Member
    Posted 2 years ago #

    Hi. I also have the same problem as umarglobal with the current plugin version and also with the dev version you posted. I also get this two different PHP errors:

    Warning: preg_match() [function.preg-match]: Compilation failed: nothing to repeat at offset 1 in /usr/home/domain.com/web/wp-content/plugins/daves-wordpress-live-search/DavesWordPressLiveSearch.php on line 353
    
    Warning: preg_match() [function.preg-match]: Compilation failed: nothing to repeat at offset 1 in /usr/home/domain.com/web/wp-content/plugins/daves-wordpress-live-search/DavesWordPressLiveSearch.php on line 353

    Do you know any alternative to exclude posts or pages? I've tried different exception rules without good results. I also have two questions that maybe can help us to solve the problem:

    - Does the permalink structure affect to this exception rules?
    - Does the subdomain can affect this exception rules? My WordPress is installed in a subdomain.

    Thank you for the amazing work you've done. I've just sent you a Spanish translation for the plugin that I've made :-)

  6. andreu
    Member
    Posted 2 years ago #

    Finally I could solve the problem and filter some pages using the Search Everything plugin. It's a good plugin to combine with yours ;)

  7. gn.ozdemir
    Member
    Posted 1 year ago #

    Worked for me too. Thanks. :)

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic