• Hi guys,

    I’m receiving the following error whenever I publish a post on my site:

    Warning: preg_match(): Compilation failed: nothing to repeat at offset 1 in /home/totalgee/public_html/wp-includes/class-wp.php on line 218

    Warning: preg_match(): Compilation failed: nothing to repeat at offset 1 in /home/totalgee/public_html/wp-includes/class-wp.php on line 219

    The error message disappears whenever I flush the site’s permalinks, but reoccurs EVERY time I publish a post… since I run a news site, this occurs often and the error has even been scraped by Google News as an excerpt. Not great. Weirdly, it doesn’t seem to happen when I publish Events (which I’m using to track film release dates).

    I’ve tried cleaning up and optimizing my DB and have even tried completely removing and reinstalling Events Manager… but the errors persist. They only stop when EM is removed.

    I have tried debugged using the Rewrite Rules plugin, and it states the following rewrite rule is ‘missing’:

    Rule “release-dates/(\d{4}-\d{2}-\d{2})$”
    Rewrite “index.php?post_type=event&calendar_day=$matches[1]”

    I’d really appreciate some help to sort this out as I’d rather continue using the plugin – it’s extremely helpful to create a calendar of release dates for both myself and my visitors.

    The page I need help with: [log in to see the link]

Viewing 9 replies - 16 through 24 (of 24 total)
  • So far I haven’t been able to replicate this. Which widget are you using? Just the standard Events widget?

    If you replace that widget with a text widget using something like[events_list scope="future" limit="5"], do you still have the same issue?

    • This reply was modified 6 years, 10 months ago by caimin_nwl.

    I turned off all plugins, reset permalinks (switched to another and then back again), and deleted my incredibly long error files (in an attempt to see if the problem persisted). So far so good… though the site isn’t mine so I am waiting on the admin to see if they want to turn Jetpack back on or not.

    @bluepixeldesign So is the problem only appearing for you when Jetpack is active?

    Thread Starter totalgeeks

    (@totalgeeks)

    Tried adjusting the sidebar widget in a attempt to fix this.
    I tried removing event images, changing from eventlinks to eventname… but it still causes the error, no matter what the setup. Anyone got any ideas about this? I’d love to continue using the plugin, but I can’t risk Google News scraping the error message for much longer.

    Thread Starter totalgeeks

    (@totalgeeks)

    Sorry, I missed the latest responses – will try the shortcode and let you know.
    (For the record, I’m not using Jetpack at all with my install)

    Thread Starter totalgeeks

    (@totalgeeks)

    Okay, I tried the shortcode in the widget and it still throws out the error.

    Thread Starter totalgeeks

    (@totalgeeks)

    By random fluke, I seem to have gotten somewhere in finding out what’s causing this.

    Earlier today, I accidentally forgot to include tags on my post. And when I published the piece, it all worked as it should – no error. I added the tags and updated the article – still no error. The trouble is, I’ve tried replicating it and while it publishes fine every single time, sometimes adding the tags breaks my site structure, causing a 404 error for the article which is being updated.

    So… it’s still not a fix. But it seems to be a conflict between Events Manager and the Tags of my site. Extra info – I’ve removed the ‘tags’ base in Yoast SEO so that tags don’t have the ‘/tag/’ bit in the url.

    Thread Starter totalgeeks

    (@totalgeeks)

    Okay, it wasn’t Yoast SEO (it was a separate plugin called WP No Tag Base) which I used to remove the ‘/tag/’ part of the tag permalinks… and after getting rid of the plugin and flushing the rewrite rules, it looks as though it’s fixed!

    I’ll keep checking it just to make sure, but several posts have gone through without problem at this stage, so it’s looking good.

    Great, thanks for the update. Let us know if you need more help with this.

Viewing 9 replies - 16 through 24 (of 24 total)
  • The topic ‘Events Manager creates error Warning: preg_match() on new posts’ is closed to new replies.