Support

Home Forums Event Espresso Premium EE4 Rewrite Rules Randomly Dropped

EE4 Rewrite Rules Randomly Dropped

Posted: October 26, 2017 at 9:21 am

Viewing 3 reply threads


Austin Ginder

October 26, 2017 at 9:21 am

On my website blackrockretreat.com something is randomly dropping EE4’s rewrite rules which breaks all of my event pages. Seems to happen a few times per week. Haven’t found any patterns yet. Going to permlinks and resave does bring back the event pages.

I was able to compare rewrite rules from a healthy site vs a broken siteSee compared rewrite rules here: https://www.diffchecker.com/w5xM7ouZ. The left is healthy the right is what is looks like when it’s broken. There appears to be 2 factors:

  • Event Expresso
  • Unknown custom post type amn_mi-lite

Any idea where the custom post type ‘amn_mi-lite’ is coming from? Did some searching however not finding any matches other then the rewrite rules database entry. Or any other ideas how to trace and resolve this issue?

This website is hosted on WP Engine. Here is a list of all plugins.

https://gist.github.com/lorenzocaum/1881c0dcf4d7a01b9ca937355bca74fe


Tony

  • Support Staff

October 26, 2017 at 10:01 am

Hi there,

amn_mi-lite is from the Google Analytics for WordPress by Monster Insights

https://en-gb.wordpress.org/plugins/google-analytics-for-wordpress/

See – http://take.ms/YHaDb

Have you checked within your Cron jobs to see if there is anything suspicious there?

You can use WP Crontrol to view the lists of crons on the site.


Austin Ginder

October 26, 2017 at 10:12 am

For troubleshooting purposes I moved the google analytics code over to the headers and footers plugin and deactivated Google Analytics for WordPress by MonsterInsights. I’ll report back if the rewrite rules continue to drop.

The cron jobs look pretty typical. Just a bunch fro Jetpack, EE4, Gravity Forms, Akismet and WP SEO.


Josh

  • Support Staff

October 26, 2017 at 10:26 am

Hi Austin,

This is something you should be able to track down by doing a search for
flush_rewrite_rules(); in your theme and plugin code. Here’s a reference that shows some example code related to registering post types and flushing rewrite rules:

https://codex.wordpress.org/Function_Reference/register_post_type#Flushing_Rewrite_on_Activation

If there’s a plugin or a theme function that’s tied to a specific action like activation or saving an options page, and that function calls flush_rewrite_rules() then depending on what’s loaded at that point it could end up flushing the rewrite rules at a point in the request that would result in the rewrite rules for Event Espresso’s post types getting wiped out.

Viewing 3 reply threads

The support post ‘EE4 Rewrite Rules Randomly Dropped’ is closed to new replies.

Have a question about this support post? Create a new support post in our support forums and include a link to this existing support post so we can help you.

Event Espresso