404 on event detail page

Home Forums Calendar Products Events Calendar PRO 404 on event detail page

Viewing 10 posts - 1 through 10 (of 10 total)
  • Author
    Posts
  • #801215
    tobid
    Participant

    Hallo team!

    On the event detail page I get an 404-error.
    I have deactivated all other plugins, refreshed the permalink settings-page and came back to the wordpress standard-themes. In my “.htaccess” I have no redirects and I don’t use any other rewrite rules then the wordpress-standard entries.

    I read and tried the clues from the modern tribe forum about 404-errors, but nothing fixed my problem.

    Why it is showing me an error?

    My permalink-structure is like this:
    domain.de/events/ (works)
    domain.de/event/post-name (is broken)

    I hope you have a quick clue, because I’m really under preassure. This is a client page and it should work 😉

    Beste regards and thanks for help,
    Tobi

    #801436
    Brian
    Member

    Tobi,

    Sorry for the issues with the 404 links. I can help troubleshoot this with you.

    Thanks for going through the steps to find a conflict and resaving the permalinks.

    Do you have a link you can provide for the site that is doing this? It helps us to be able to see the error happening.

    Also, since you said you have tested with different themes and with all the other plugins turned off it could be a conflict with the settings of the server, but we can address that if any of the other solutions do not work.

    Let me know if you have a link and we can go from there. You can send it as a private reply.

    Thanks

    #801608
    tobid
    Participant

    This reply is private.

    #807437
    Brian
    Member

    Hi

    Thanks for the providing the information to see the site.

    I did take a look at the site and see the issue. It did not give any errors so I am unclear to what is causing the issue.

    Can you try going into the Events Settings and changing the default slugs?

    Go to Events->Setting->General Tab

    Then for this field change event “Single event URL slug”

    Please then resave permalinks and see if that fixes the issue.

    The next Step
    Also I know you said:

    I have deactivated all other plugins, refreshed the permalink settings-page and came back to the wordpress standard-themes. In my “.htaccess” I have no redirects and I don’t use any other rewrite rules then the wordpress-standard entries.

    Is it possible you can deactivate all plugins but the Events Calender and the change to Twenty-Thirteen Theme and resave permalinks and then let me know so I can take a look at the site and see if I can find anything else causing the conflict.

    Let me know and we can go from there.

    Thanks

    #811003
    tobid
    Participant

    Hi Brian,
    I did everything what you said.
    This is my custom permalink-structure: domain.de/%category%/%postname%/

    domain.de/new-event/ (the news single event url slug)
    domain.de/new-event/onkologische-patientenschulung/ (a event detail page)

    Now the first url doesn’t work, but the event detail page. hmmm…

    Thanks a lot

    #812274
    Brian
    Member

    Ok so I have these two links working:

    http://td-testserver2.de/events/

    http://td-testserver2.de/new-event/onkologische-patientenschulung/

    Notice the first link is /events/.

    I would not expect this link to work as it is just a place holder for the single events:

    http://td-testserver2.de/new-event/ (the news single event url slug)

    Does this fix the issue then and the Event Page and the Single Event Page is working now?

    Let me know.

    Thanks

    #812520
    tobid
    Participant

    I think I come closer. With your help I have reduced the problem to one plugin. We have a self-written plugin which is using the following custom-taxonomy:
    function register_team_manager() {
    $labels = array(
    ‘name’ => ‘Team’,
    ‘singular_name’ => ‘Team-Mitglied’,
    ‘add_new’ => ‘Neues Team-Mitglied’,
    ‘add_new_item’ => ‘HinzufĂźgen’,
    ‘edit_item’ => ‘Team-Mitglied bearbeiten’,
    ‘new_item’ => ‘Neues Team-Mitglied’,
    ‘all_items’ => ‘Alle Team-Mitglieder’,
    ‘view_item’ => ‘Team-Mitglied anzeigen’,
    ‘search_items’ => ‘Team-Mitglied suchen’,
    ‘not_found’ => ‘Team-Mitglied nicht gefunden’,
    ‘not_found_in_trash’ => ‘Team-Mitglied nicht im Papierkorb gefunden’,
    ‘parent_item_colon’ => ”,
    ‘menu_name’ => ‘Team’,
    );

    $args = array(
    ‘labels’ => $labels,
    ‘description’ => ‘Team-Mitglieder erstellen und verwalten’,
    ‘hierarchical’ => true,
    ‘supports’ => array( ‘title’, ‘thumbnail’,’editor’),
    ‘public’ => true,
    ‘show_ui’ => true,
    ‘menu_position’ => 25,
    ‘show_in_menu’ => true,
    ‘show_in_nav_menus’ => true,
    ‘publicly_queryable’ => true,
    ‘exclude_from_search’ => true,
    ‘has_archive’ => true,
    ‘query_var’ => true,
    ‘can_export’ => true,
    ‘rewrite’ => true,
    ‘capability_type’ => ‘post’,
    ‘menu_icon’ => plugins_url( ‘../img/icon.png’,__FILE__),
    ‘has_archive’ => true,
    ‘rewrite’ => array( ‘slug’ => ‘team’ )

    );

    register_post_type( ‘team_manager’, $args );
    flush_rewrite_rules(); // renew the rewrite rules

    //register custom category for the team manager
    $labels = array(
    ‘name’ => ‘Abteilungen’,
    ‘singular_name’ => ‘Abteilung’,
    ‘search_items’ => ‘Abteilung suchen’,
    ‘popular_items’ => ‘Beliebteste Abteilungen’,
    ‘all_items’ => ‘Alle Abteilungen’,
    ‘edit_item’ => ‘Abteilung bearbeiten’,
    ‘update_item’ => ‘Abteilung aktualisieren’,
    ‘add_new_item’ => ‘Neue Abteilung’,
    ‘new_item_name’ => ‘Neuer Abteilungsname’,
    ‘separate_items_with_commas’ => ‘Abteilungen durch Komma trennen’,
    ‘add_or_remove_items’ => ‘Abteilungen hinzufĂźgen oder entfernen’,
    ‘choose_from_most_used’ => ‘Aus den meist genutzten Abteilungen wählen’,
    ‘not_found’ => ‘Keine Abteilung gefunden’,
    ‘menu_name’ => ‘Abteilungen’,
    );

    $args = array(
    ‘hierarchical’ => true,
    ‘public’ => true,
    ‘labels’ => $labels,
    ‘show_ui’ => true,
    ‘show_admin_column’ => true,
    ‘update_count_callback’ => ‘_update_post_term_count’,
    ‘query_var’ => true,
    ‘rewrite’ => array( ‘slug’ => ‘abteilungen’),
    ‘capability_type’ => ‘post’,
    ‘has_archive’ => true
    );

    register_taxonomy( ‘team_groups’, ‘team_manager’, $args );
    }
    add_action(‘init’, ‘register_team_manager’);

    I think that this is causing a problem for the permalinks. But I don’t the the error in this code. Do you have any clue?

    #812633
    Brian
    Member

    This could be causing the issue:

    flush_rewrite_rules(); // renew the rewrite rules

    Putting it there means it is always causing the permalinks to refresh everytime you load the site. I would remove that and just refresh them if you save from the admin area.

    Let me know if that fixes anything.

    Otherwise nothing else jumped out at me as being wrong.

    #812742
    tobid
    Participant

    Your are really the best Brian! It works now!!!
    Thank you so much for your help and your patience. I will honor that with recommending your great support! 🙂

    #812750
    Brian
    Member

    I am glad to see you were able to fix this issue.

    Since the issue is resolved I am going to go ahead and close this ticket. If you have a similar issue or another in the future, please do not hesitate to create a new ticket.

    By the way, if you have a minute or two, we would love it if you’d write a few words for us here: http://wordpress.org/support/view/plugin-reviews/the-events-calendar?filter=5

    Thanks!

Viewing 10 posts - 1 through 10 (of 10 total)
  • The topic ‘404 on event detail page’ is closed to new replies.