WordPress.org

Ready to get started?Download WordPress

Forums

WassUp Real Time Analytics
[Plugin: WassUp] PHP Warning: preg_match() (12 posts)

  1. Wasee
    Member
    Posted 3 years ago #

    Just upgraded to 1.8 and started getting these error

    [24-Nov-2010 09:57:07] PHP Warning: preg_match() [function.preg-match]: Compilation failed: nothing to repeat at offset 0 in /home/xxx/public_html/wp-content/plugins/wassup/wassup.php on line 3970
    [24-Nov-2010 09:57:07] PHP Warning: preg_match() [function.preg-match]: Compilation failed: nothing to repeat at offset 0 in /home/xxx/public_html/wp-content/plugins/wassup/wassup.php on line 3974

    http://wordpress.org/extend/plugins/wassup/

  2. helened
    Member
    Plugin Contributor

    Posted 3 years ago #

    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'.

  3. Wasee
    Member
    Posted 3 years ago #

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

  4. ashbryant
    Member
    Posted 3 years ago #

    I too am having this issue.

  5. ashbryant
    Member
    Posted 3 years ago #

    @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?

  6. helened
    Member
    Plugin Contributor

    Posted 3 years ago #

    @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.

  7. ashbryant
    Member
    Posted 3 years ago #

    @helened I have tried that with no joy.

  8. cingcong
    Member
    Posted 3 years ago #

    I am trying to fix and found a solution - at least until helened fix it later. I posted it at : http://cingcong.com/blogs/blog/2010/12/06/how-to-fix-wassup-error-preg-match-1-8-1-wp-3-0-13-02/

  9. AboutWeb
    Member
    Posted 3 years ago #

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

  10. Dodo67
    Member
    Posted 3 years ago #

    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',
                  '209\.29\.25\.180',
                  'aerhaethjsry\.com',
                  'aimtrust\.com',
                  'american\-insurance\-companies\.com',
                  'amipregnantquizzes\.com',
                  'all\-lasik\-centers\.com',
                  'allmymovies\.biz',
                  'baby\-kleidung\.runashop\.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
      '*sales\.net',

      so change it to

      '.*sales\.net',

      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)

    Dodo

  11. ashbryant
    Member
    Posted 3 years ago #

    Hi
    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 http://wordpress.org/support/topic/plugin-wassup-wassup-18-almost-broken#post-1909005

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

  12. camu
    Member
    Posted 3 years ago #

    You may want to take a look at this alternative plugin :)

    http://wordpress.org/extend/plugins/wp-slimstat/

    Camu

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags