Support » Plugin: WassUp Real Time Analytics » [Plugin: WassUp] PHP Warning: preg_match()

Viewing 11 replies - 1 through 11 (of 11 total)
  • Plugin Contributor helened


    Thanks for reporting this.

    This error has an easy fix that will be addressed in the next revision of WassUp.

    If you would like to fix it yourself, just edit ‘wassup.php’ in WordPress plugin editor, scroll down to line #3967 and remove the single (,) comma after 'yeastinfectionsymptomstreatments\.com'.

    Already edited but it didn’t work still getting errors.

    I too am having this issue.

    @wasee are You using MultiSite with domain mapping? I have just taken a look and that is (I think) the issue (well for me at least).

    @helened any chance of a fix?

    Plugin Contributor helened


    @wasee: If you have cache plugin installed, please turn off the cache or deactivate your cache plugin before making the fix to WassUp’s code. Then, when you restart your cache, make sure that your all cached content is fresh.

    @ashbryant: A bugfix update to WassUp 1.8 is already in the works. It may be a couple days before release, so please try the fix described above.

    @helened I have tried that with no joy.

    I am trying to fix and found a solution – at least until helened fix it later. I posted it at :

    @cingcong your fix didn’t worked. just broke the code.

    Hi all, I probably solved the problem. I must say my error is a bit different, I have version 1.8.1. This is what I have in error_log:
    PHP Warning: preg_match() [<a href='function.preg-match'>function.preg-match</a>]: Compilation failed: nothing to repeat at offset 1 in /home/xxx/public_html/wp-content/plugins/wassup/wassup.php on line 3954

    Anyway, this seems to solve the problem for me:

    1. open wassup.php and go to your error line (for me is 3954)
    2. move up some lines, there is a long list of spammers sites. In my version I see:
      $lines = array(    '123666123\.com',

      and so on.

    3. into this long list, find the lines where there is an asterisk (*) and add a dot before it.
      Example: at line #3928 there is


      so change it to


      IMPORTANT: The dot character must be immediatly before the asterisk

    In my code I found only two lines to change: #3890 and #3928
    That’s all!
    Hope this help.
    If you want more details you should read about Regular Expressions, for example on wikipedia or PHP regular expression (choose ‘Meta-characters’ chapter)


    Just incase anyone still needs help on this.

    I have tried the solutions above that seem to work for others, but not me.

    After hunting around and trying a lot of different solutions to this I found this

    Read the last post by s0fa, this works for me.

    You may want to take a look at this alternative plugin 🙂


Viewing 11 replies - 1 through 11 (of 11 total)
  • The topic ‘[Plugin: WassUp] PHP Warning: preg_match()’ is closed to new replies.