WordPress.org

Ready to get started?Download WordPress

Forums

Warning: preg_match() [function.preg-match]: Errors (15 posts)

  1. methystic
    Member
    Posted 3 years ago #

    My Dashboard currently shows repeated errors where content should be under the headings:

    Plugins
    Wordpress Development Blog
    Other WordPress News

    Warning: preg_match() [function.preg-match]: Compilation failed: unknown option bit(s) set at offset 0 in /usr/home/kilicent/public_html/wp-includes/class-simplepie.php on line 11043

    and a single error on the Contact Us page:
    Warning: preg_replace() [function.preg-replace]: Compilation failed: unknown option bit(s) set at offset 0 in /usr/home/kilicent/public_html/wp-includes/shortcodes.php on line 228

    which disappears when the contact form from FS Contact is removed.

    I've reinstalled WordPress, disabled all plugins new & old, reactivated, reverted the theme to no avail. I had a forwarder on the domain whilst I was messing with the new configurations, but have since removed this - I also put permalinks on default state because of other suggestions, but not really seeing how that is the problem.

    I did a Web search but only found references with Chinese text - I'm unfortunately not a Chinese speaker.

    Any ideas?
    Much appreciated
    Deborah

    site is: http://www.kilicentre.org

  2. What version of PHP are you using?

    Did you try a totally fresh download of WordPress?

  3. methystic
    Member
    Posted 3 years ago #

    Hey

    Using PHP version 5.3.4. Didn't do a totally fresh install just Automatic re-install via Updates. Apprehensive to do a complete fresh install if there is a work around or a fixable conflict.

    TIA
    Deborah

  4. Delete WP-includes and WP-admin and copy them back up from a fresh download. You won't lose any data :)

  5. rhyous
    Member
    Posted 3 years ago #

    My hosting server is getting this too. It was just upgraded to PHP 5.3.4 last night.

  6. rhyous
    Member
    Posted 3 years ago #

    I also get these on the admin page.

    Warning: preg_match_all() [function.preg-match-all]: Compilation failed: unknown option bit(s) set at offset 0 in /usr/home/rhyous/public_html/wp-includes/compat.php on line 102

    Warning: array_slice() expects parameter 1 to be array, null given in /usr/home/rhyous/public_html/wp-includes/compat.php on line 103

    Warning: implode() [function.implode]: Invalid arguments passed in /usr/home/rhyous/public_html/wp-includes/compat.php on line 104

  7. rhyous
    Member
    Posted 3 years ago #

    Looks like my errors are due to plugins:

    Contact Form 7
    Display Last Post(s)

    Maybe others.

  8. rhyous
    Member
    Posted 3 years ago #

    Also the errors on the admin page are their even with all plugins disabled!

  9. rhyous
    Member
    Posted 3 years ago #

    Delete WP-includes and WP-admin and copy them back up from a fresh download. You won't lose any data :)

    That did not work.

  10. rhyous
    Member
    Posted 3 years ago #

    Reverted PHP to 5.3.3 and the errors are gone.

    There must be a change in PHP 5.3.4 that WordPress doesn't handle.

    Are there bugs submitted on this already?

  11. methystic
    Member
    Posted 3 years ago #

    Worked for me, thank you so much!

    Best
    Deborah

  12. Can you try 5.3.5? There's a bugfix to the .4 version...

  13. Andrew Nacin
    Lead Developer
    Posted 3 years ago #

    PHP 5.3.5 is an unrelated security fix.

    PHP 5.3.4 included an update to the PECL library: "Upgraded bundled PCRE to version 8.10." http://php.net/ChangeLog-5.php#5.3.4. This appears to be the culprit.

    I'd downgrade to 5.3.3 for now. I sent a note upstream to see if they know anything.

    Cross-referencing http://bugs.php.net/bug.php?id=53605.

  14. Andrew Nacin
    Lead Developer
    Posted 3 years ago #

    Which version of PCRE are you using? Is this the unbundled version? See what phpinfo() says about it.

  15. vbengeult
    Member
    Posted 3 years ago #

    I'm suddenly getting these kinds of errors too. Running WP 3.1.1 -- it happens on my local server but not on GoDaddy.

    Using PHP 5.3.6
    PCRE version is
    Installed versions: 8.12(3)(11:52:32 AM 04/03/2011)(bzip2 cxx recursion-limit unicode zlib -static-libs)

    There doesn't seem to be any action on the bugs.php.net. Downgrading to PHP 5.3.3 is not an option. Any suggestions? Thanks in advance.

    ------------------

    My Dashboard currently shows repeated errors where content should be under the headings:
    Plugins
    Wordpress Development Blog
    Other WordPress News

    Warning: preg_match() [function.preg-match]: Compilation failed: unknown option bit(s) set at offset 0 in .../wp-includes/class-simplepie.php on line 11043

    and a single error on the Contact Us page:
    Warning: preg_replace() [function.preg-replace]: Compilation failed: unknown option bit(s) set at offset 0 in .../wp-includes/shortcodes.php on line 228

Topic Closed

This topic has been closed to new replies.

About this Topic