Join us in Montréal on September 18-20 for Dot All 2019, the official Craft developer conference!

Troubleshooting preg_​replace_​callback()” Errors

There is a known bug between some versions of PHP and the eAccelerator PHP extension that causes the following error:

preg_replace_callback(): Requires argument 2, '', to be a valid callback

If you are seeing this error when attempting to run Craft, you will need to disable the eAccelerator extension in your php.ini file, and then restart your web server.