Title: Strange 404 Errors
Last modified: August 22, 2016

---

# Strange 404 Errors

 *  Resolved [ulir](https://wordpress.org/support/users/ulir/)
 * (@ulir)
 * [11 years, 1 month ago](https://wordpress.org/support/topic/strange-404-errors-3/)
 * Hi there,
 * Specs: WP 4.1.1 installed in a subdirectory, Events Manager Plugin 5.5.5
 * I set the slug for events, locations and categories.
    The page for events was
   automatically created. I created several pages for different categories manually
   with the shortcode [events_list category=id_of_category limit=10 pagination=1].
   On all those pages the events are showing up as links in lists.
 * The difference: the links on the automatically created page lead to a 404-error,
   those links are missing my (installation-)subdirectory. The links to the event
   in the manually created pages are fine.
 * Same problem with the location page. I created a page manually with shortcodes
   and get a list with my locations. The links work fine. On the locations page 
   are links to future events. Those links don’t work, again, they are missing the
   subdirectory.
 * The problem probably lies with the theme I’m using. When I switched to Twenty
   Fourteen, everything worked as it should.
 * I have no idea where to look, though – any idea is greatly appreciated
 * [https://wordpress.org/plugins/events-manager/](https://wordpress.org/plugins/events-manager/)

Viewing 1 replies (of 1 total)

 *  Thread Starter [ulir](https://wordpress.org/support/users/ulir/)
 * (@ulir)
 * [11 years, 1 month ago](https://wordpress.org/support/topic/strange-404-errors-3/#post-5809078)
 * Alright, I probably found the culprit myself.
 * In the function.php of my theme there was a line
    `$site_link = wp_make_link_relative(
   home_url());`
 * I changed that to
    `$site_link = home_url();`
 * And everything works fine now. I don’t really understand why, but whatever 🙂

Viewing 1 replies (of 1 total)

The topic ‘Strange 404 Errors’ is closed to new replies.

 * ![](https://ps.w.org/events-manager/assets/icon-256x256.png?rev=1039078)
 * [Events Manager - Calendar, Bookings, Tickets, and more!](https://wordpress.org/plugins/events-manager/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/events-manager/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/events-manager/)
 * [Active Topics](https://wordpress.org/support/plugin/events-manager/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/events-manager/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/events-manager/reviews/)

 * 1 reply
 * 1 participant
 * Last reply from: [ulir](https://wordpress.org/support/users/ulir/)
 * Last activity: [11 years, 1 month ago](https://wordpress.org/support/topic/strange-404-errors-3/#post-5809078)
 * Status: resolved