Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community!

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial


Having problems with my WordPress site

I’ve been doing a child theme for a WordPress.org website.

After I’m almost finished, this random error message appears in the top of the WordPress site

The message says “Warning: preg_match(): Compilation failed: nothing to repeat at offset 1 in…”

I do know that the problem is with something in the wp-includes, since the rest of the message says that is in the wp-includes/class-wp.php on line 205.

Can anyone help me with this problem?

1 Answer

Zac Gordon
Zac Gordon
Treehouse Guest Teacher

If you start removing bits and pieces of your functions.php or custom template code, does the problem go away?

Thanks for responding.

I was able to solve the problem, by editing the wp-config.php.

I added a code that someone gave me, and it worked.

The code was "error_reporting(0); @ini_set('display_errors', 0);"