Title: Changed Permalinks = 404 Error
Last modified: August 22, 2016

---

# Changed Permalinks = 404 Error

 *  Resolved [KeithAdv](https://wordpress.org/support/users/keithadv/)
 * (@keithadv)
 * [11 years, 4 months ago](https://wordpress.org/support/topic/changed-permalinks-404-error/)
 * I’m trying AIO Event Calendar and really like its features, but I’m running into
   a maddening problem. If I leave WP permalinks on their default setting, everything
   works fine. If I change them to something like Post Name, then calling up an 
   event yields a 404 Error.
 * It even happens in the editor. If I am editing an event and click “view event,”
   I still get the error if Permalinks are set to anything other than default.
 * I have disabled all plugins and tested other themes. With those themes, I still
   don’t see the event page but I don’t get the error either–it just goes to the
   home page.
 * Now, I am using a theme that has its own event loop and custom event post type.
   However, it doesn’t have the kind of calendar features I need. That doesn’t seem
   to be the problem, since I still can’t see events when I switch themes.
 * Ideas?
 * [https://wordpress.org/plugins/all-in-one-event-calendar/](https://wordpress.org/plugins/all-in-one-event-calendar/)

Viewing 5 replies - 1 through 5 (of 5 total)

 *  [Nicola Peluchetti](https://wordpress.org/support/users/nicolapeluchetti/)
 * (@nicolapeluchetti)
 * [11 years, 4 months ago](https://wordpress.org/support/topic/changed-permalinks-404-error/#post-5716364)
 * Can you switch to twenty fourteen theme?
    Since our custom post type uses the
   slug “event” for single event view and your theme as events post types, there
   might be a collision…
 *  Thread Starter [KeithAdv](https://wordpress.org/support/users/keithadv/)
 * (@keithadv)
 * [11 years, 4 months ago](https://wordpress.org/support/topic/changed-permalinks-404-error/#post-5716404)
 * Hey, Nicola! Thank you for the quick response!
 * I don’t have any explanation for what follows:
 * 1. I switched to the twenty fourteen theme. As I said above, the problem still
   existed but–in the default themes–trying to display an event simply takes you
   to the Home page instead of getting a 404 Error.
 * 2. While in the twenty fourteen theme, I switched to default Permalinks and the
   event pages started showing up again.
 * 3. I changed the Permalinks back to Post Name and they still worked.
 * 4. I switched back to my original theme and they _still_ work.
 * So it’s fixed (for now)? I don’t know why. But thanks!
 *  Thread Starter [KeithAdv](https://wordpress.org/support/users/keithadv/)
 * (@keithadv)
 * [11 years, 4 months ago](https://wordpress.org/support/topic/changed-permalinks-404-error/#post-5716418)
 * Sigh. Spoke too soon. The theme I’m using has a total of three custom post types(
   one of which is called Events).
 * I’ve now discovered that the above solution only appeared to work because Events
   were displaying properly when the theme was restored. However, the _other two_
   custom post types began to generate 404 Errors. When I resaved Permalinks, those
   two began working correctly but the calendar events began generating errors again.
 * Can’t get all three working together. I may have to try other plugins, which 
   I really don’t want to do… 🙁
 *  [Nicola Peluchetti](https://wordpress.org/support/users/nicolapeluchetti/)
 * (@nicolapeluchetti)
 * [11 years, 4 months ago](https://wordpress.org/support/topic/changed-permalinks-404-error/#post-5716484)
 * No it’s not easy to have everything working together, they are clashing.
    You
   can try to change in file `lib/post/post-type.php` on line 55
 *  `$rewrite = array( 'slug' => Ai1ec_I18n::__( 'event' ) );`
 * to
 *  `$rewrite = array( 'slug' => Ai1ec_I18n::__( 'ai1ec_event' ) );`
 * and then resave permalinks and see what happens
 *  Thread Starter [KeithAdv](https://wordpress.org/support/users/keithadv/)
 * (@keithadv)
 * [11 years, 4 months ago](https://wordpress.org/support/topic/changed-permalinks-404-error/#post-5716523)
 * Thank you, Nicola!
 * I will keep that possible solution in mind.
 * Funny thing–before I saw your post, I actually went the other way–I got into 
   functions.php for the theme and changed the slug for _its_ Event type. After 
   I resaved permalinks everything seemed to work.
 * I’m glad I’ll be able to use this plugin!
 * Thanks again.

Viewing 5 replies - 1 through 5 (of 5 total)

The topic ‘Changed Permalinks = 404 Error’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/all-in-one-event-calendar.svg)
 * [Timely All-in-One Events Calendar](https://wordpress.org/plugins/all-in-one-event-calendar/)
 * [Support Threads](https://wordpress.org/support/plugin/all-in-one-event-calendar/)
 * [Active Topics](https://wordpress.org/support/plugin/all-in-one-event-calendar/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/all-in-one-event-calendar/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/all-in-one-event-calendar/reviews/)

 * 5 replies
 * 2 participants
 * Last reply from: [KeithAdv](https://wordpress.org/support/users/keithadv/)
 * Last activity: [11 years, 4 months ago](https://wordpress.org/support/topic/changed-permalinks-404-error/#post-5716523)
 * Status: resolved