Not logged in. · Lost password · Register
Forum: General Help and Support Server Setup RSS
Warning: preg_replace() [function.preg-replace]: Compilation failed: unknown option bit(s) set at offset 0
Avatar
binijan #1
Member since Apr 2012 · 1 post
Group memberships: Members
Show profile · Link to this post
Subject: Warning: preg_replace() [function.preg-replace]: Compilation failed: unknown option bit(s) set at offset 0
Details
Recently a PHP update happened, since then dokuwiki is totally broken an unusable. All pages are filled with lines like this:

Warning: preg_replace() [function.preg-replace]: Compilation failed: unknown option bit(s) set at offset 0
This post was edited on 2012-04-26, 10:51 by binijan.
Avatar
turnermm (Moderator) #2
Member since Oct 2009 · 2331 posts
Group memberships: Global Moderators, Members
Show profile · Link to this post
I've googled this error and it started appearing about a year ago but very rarely.  One of the problems is that your error message isn't sufficiently detailed, so that we don't know where it is occurring.  The problem is very likely in a regular expression modifier, I suspect it has to do with utf-8 compatiblity.   It could be coming from a plugin.  So you could first try disabling your plugins and re-enabling them one by one.

But if you are using an outdated version of Dokuwiki, you should probably update to the the latest version and then install your plugins one at a time.

To be safe, you can either backup your wiki or copy your entire wiki to a new directory and do your experimenting in the new directory before making the changes permanent.  The easiest way to upgrade is to use the upgrade plugin:
   http://www.dokuwiki.org/plugin:upgrade
Myron Turner
fckgLite (&ckgedit): http://www.mturner.org/fckgLite/
github: https://github.com/turnermm
plugins, templates: http://www.mturner.org/devel
Close Smaller – Larger + Reply to this post:
Verification code: VeriCode Please enter the word from the image into the text field below. (Type the letters only, lower case is okay.)
Smileys: :-) ;-) :-D :-p :blush: :cool: :rolleyes: :huh: :-/ <_< :-( :'( :#: :scared: 8-( :nuts: :-O
Special characters:
Go to forum
Imprint
This board is powered by the Unclassified NewsBoard software, 20120620-dev, © 2003-2011 by Yves Goergen
Current time: 2014-04-24, 18:08:54 (UTC +02:00)