64 posts
  • Has been part of the Envato Community for over 4 years
  • Has sold $1,000+ on Envato Market
  • Has collected 10+ items on Envato Market
  • Sells items exclusively on Envato Market
+1 more
PerfectPixels says

Hi everybody,

I am building my theme in Wordpress 3.0, all went fine until I put it on my live server and got like 20 lines on the top of all pages that error: Warning: preg_match() [function.preg-match]: Compilation failed: nothing to repeat at offset 1 in /homez.116/.../wp-includes/classes.php on line 210.

After some research on google, I wrote that it is a common problem on WP 3 .0 and the only way to get it works is to play with the permalink settings and everything come back to normal as it did for me. But as soon as I put my permalink setting /%category%/%postname%/ back and modify even just a word in a page I got that crapy error again…

The only fear I have with that is if a customer upload my theme he will get that too, so if anybody here has the same problem, could you please share you experience and how you did deal with it.

By the way, I created 2 custom post type with a rewrite rules, so I think that could be the problem…

Hope somebody can help me.

All the best.

2468 posts
  • Has been part of the Envato Community for over 5 years
  • Has sold $100+ on Envato Market
  • Has referred 100+ members
  • Has been a beta tester for an Envato feature
+3 more
digitalimpact says

You can’t use /%category%/%postname%/ permalinks with custom post types, no matter if you set rewrite rules.

Custom post types are more like pages, even if you can “make” them non-hierarchical …

This is currently the only workaround I found (get that plugin ;) ).

64 posts
  • Has been part of the Envato Community for over 4 years
  • Has sold $1,000+ on Envato Market
  • Has collected 10+ items on Envato Market
  • Sells items exclusively on Envato Market
+1 more
PerfectPixels says

Thanks DI,

Yeah I remember that post, but I am not sure if this error comes from that, plus I don’t really like using a plugin but I’ll give it a try.

The only thing that suck is the fact that all categories will be together.

Thanks mate ;)

64 posts
  • Has been part of the Envato Community for over 4 years
  • Has sold $1,000+ on Envato Market
  • Has collected 10+ items on Envato Market
  • Sells items exclusively on Envato Market
+1 more
PerfectPixels says

Anybody else experienced the same issue??

Helpful Information

  • Please read our community guidelines. Self promotion and discussion of piracy is not allowed.
  • Open a support ticket if you would like specific help with your account, deposits or purchases.
  • Item Support by authors is optional and may vary. Please see the Support tab on each item page.

Most of all, enjoy your time here. Thank you for being a valued Envato community member.

Post Reply

Format your entry with some basic HTML. Read the Full Details, or here is a refresher:

<strong></strong> to make things bold
<em></em> to emphasize
<ul><li> or <ol><li> to make lists
<h3> or <h4> to make headings
<pre></pre> for code blocks
<code></code> for a few words of code
<a></a> for links
<img> to paste in an image (it'll need to be hosted somewhere else though)
<blockquote></blockquote> to quote somebody

:grin: :shocked: :cry: Complete List of Smiley Codes

by
by
by
by
by
by