Welcome to the Treehouse Community

The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.


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);"