Home › Forums › Calendar Products › Events Calendar PRO › Events Search permalink problem
- This topic has 14 replies, 2 voices, and was last updated 11 years ago by
Barry.
-
AuthorPosts
-
April 21, 2015 at 3:35 am #956965
Mark
ParticipantWhen I have the permalinks on default. I can access all my events but I can’t switch to the list format in the events search page. If I change the permalink structure; I can now Access the list format but can’t click into the events as I get not found page.
regards
April 21, 2015 at 9:07 am #957066Mark
ParticipantI have tried these solutions(https://theeventscalendar.com/knowledgebase/fixing-http-404-errors/) to no avail.
April 21, 2015 at 4:11 pm #957176Barry
MemberThat is a strange issue.
I see you already tried deactivating other plugins and I’m guessing that didn’t help.
I’m curious, though – were you able to try switching (temporarily) to a default theme, such as Twenty Fourteen – then “flush” permalinks (this is as simple as visiting the Settings → Permalinks screen – you need change nothing) and did it or does it work then?
April 22, 2015 at 1:33 am #957266Mark
ParticipantYes I have and still no luck.
April 22, 2015 at 3:32 am #957281Mark
ParticipantI have added the code to debug the query into my theme if that helps.
http://neleptest.cloudapp.net/event/intellectual-property-management-open-innovation-in-healthlife-science/?tribe_query_debug=trueApril 22, 2015 at 3:39 am #957282Mark
ParticipantHere is debug info when the permalink are set to default
object(WP_Query)#45 (55) {
[“query”]=>
array(3) {
[“tribe_events”]=>
string(70) “intellectual-property-management-open-innovation-in-healthlife-science”
[“post_type”]=>
string(12) “tribe_events”
[“name”]=>
string(70) “intellectual-property-management-open-innovation-in-healthlife-science”
}
[“query_vars”]=>
array(52) {
[“tribe_events”]=>
string(70) “intellectual-property-management-open-innovation-in-healthlife-science”
[“post_type”]=>
string(12) “tribe_events”
[“name”]=>
string(70) “intellectual-property-management-open-innovation-in-healthlife-science”
[“error”]=>
string(0) “”
[“m”]=>
string(0) “”
[“p”]=>
int(0)
[“post_parent”]=>
string(0) “”
[“subpost”]=>
string(0) “”
[“subpost_id”]=>
string(0) “”
[“attachment”]=>
string(0) “”
[“attachment_id”]=>
int(0)
[“static”]=>
string(0) “”
[“pagename”]=>
string(0) “”
[“page_id”]=>
int(0)
[“second”]=>
string(0) “”
[“minute”]=>
string(0) “”
[“hour”]=>
string(0) “”
[“day”]=>
int(0)
[“monthnum”]=>
int(0)
[“year”]=>
int(0)
[“w”]=>
int(0)
[“category_name”]=>
string(0) “”
[“tag”]=>
string(0) “”
[“cat”]=>
string(0) “”
[“tag_id”]=>
string(0) “”
[“author”]=>
string(0) “”
[“author_name”]=>
string(0) “”
[“feed”]=>
string(0) “”
[“tb”]=>
string(0) “”
[“paged”]=>
int(0)
[“comments_popup”]=>
string(0) “”
[“meta_key”]=>
string(0) “”
[“meta_value”]=>
string(0) “”
[“preview”]=>
string(0) “”
[“s”]=>
string(0) “”
[“sentence”]=>
string(0) “”
[“fields”]=>
string(0) “”
[“menu_order”]=>
string(0) “”
[“category__in”]=>
array(0) {
}
[“category__not_in”]=>
array(0) {
}
[“category__and”]=>
array(0) {
}
[“post__in”]=>
array(0) {
}
[“post__not_in”]=>
array(0) {
}
[“tag__in”]=>
array(0) {
}
[“tag__not_in”]=>
array(0) {
}
[“tag__and”]=>
array(0) {
}
[“tag_slug__in”]=>
array(0) {
}
[“tag_slug__and”]=>
array(0) {
}
[“post_parent__in”]=>
array(0) {
}
[“post_parent__not_in”]=>
array(0) {
}
[“author__in”]=>
array(0) {
}
[“author__not_in”]=>
array(0) {
}
}
[“tax_query”]=>
NULL
[“meta_query”]=>
bool(false)
[“date_query”]=>
bool(false)
[“post_count”]=>
int(0)
[“current_post”]=>
int(-1)
[“in_the_loop”]=>
bool(false)
[“comment_count”]=>
int(0)
[“current_comment”]=>
int(-1)
[“found_posts”]=>
int(0)
[“max_num_pages”]=>
int(0)
[“max_num_comment_pages”]=>
int(0)
[“is_single”]=>
bool(true)
[“is_preview”]=>
bool(false)
[“is_page”]=>
bool(false)
[“is_archive”]=>
bool(false)
[“is_date”]=>
bool(false)
[“is_year”]=>
bool(false)
[“is_month”]=>
bool(false)
[“is_day”]=>
bool(false)
[“is_time”]=>
bool(false)
[“is_author”]=>
bool(false)
[“is_category”]=>
bool(false)
[“is_tag”]=>
bool(false)
[“is_tax”]=>
bool(false)
[“is_search”]=>
bool(false)
[“is_feed”]=>
bool(false)
[“is_comment_feed”]=>
bool(false)
[“is_trackback”]=>
bool(false)
[“is_home”]=>
bool(false)
[“is_404”]=>
bool(false)
[“is_comments_popup”]=>
bool(false)
[“is_paged”]=>
bool(false)
[“is_admin”]=>
bool(false)
[“is_attachment”]=>
bool(false)
[“is_singular”]=>
bool(true)
[“is_robots”]=>
bool(false)
[“is_posts_page”]=>
bool(false)
[“is_post_type_archive”]=>
bool(false)
[“query_vars_hash”:”WP_Query”:private]=>
string(32) “76a544716d10424705a6fa1b06ed39bf”
[“query_vars_changed”:”WP_Query”:private]=>
bool(false)
[“thumbnails_cached”]=>
bool(false)
[“stopwords”:”WP_Query”:private]=>
NULL
[“tribe_is_event”]=>
bool(true)
[“tribe_is_multi_posttype”]=>
bool(false)
[“tribe_is_event_category”]=>
bool(false)
[“tribe_is_event_venue”]=>
bool(false)
[“tribe_is_event_organizer”]=>
bool(false)
[“tribe_is_event_query”]=>
bool(true)
[“tribe_is_past”]=>
bool(false)
[“tribe_is_week”]=>
bool(false)
[“tribe_is_photo”]=>
bool(false)
[“tribe_is_map”]=>
bool(false)
[“tribe_is_event_pro_query”]=>
bool(false)
}
Query Results:array(1) {
[0]=>
object(WP_Post)#1913 (26) {
[“ID”]=>
int(263)
[“post_author”]=>
string(1) “1”
[“post_date”]=>
string(19) “2015-04-10 11:52:03”
[“post_date_gmt”]=>
string(19) “2015-04-10 10:52:03”
[“post_content”]=>
string(163) “The seminar will be hosted by RTC North and will explain how researchers can create greater value in their R&D activities through intellectual property management.”
[“post_title”]=>
string(73) “Intellectual Property Management & Open Innovation in Health/Life Science”
[“post_excerpt”]=>
string(0) “”
[“post_status”]=>
string(7) “publish”
[“comment_status”]=>
string(4) “open”
[“ping_status”]=>
string(4) “open”
[“post_password”]=>
string(0) “”
[“post_name”]=>
string(70) “intellectual-property-management-open-innovation-in-healthlife-science”
[“to_ping”]=>
string(0) “”
[“pinged”]=>
string(0) “”
[“post_modified”]=>
string(19) “2015-04-10 12:01:25”
[“post_modified_gmt”]=>
string(19) “2015-04-10 11:01:25”
[“post_content_filtered”]=>
string(0) “”
[“post_parent”]=>
int(0)
[“guid”]=>
string(113) “http://neleptest.cloudapp.net/eventsingle/intellectual-property-management-open-innovation-in-healthlife-science/”
[“menu_order”]=>
int(0)
[“post_type”]=>
string(12) “tribe_events”
[“post_mime_type”]=>
string(0) “”
[“comment_count”]=>
string(1) “0”
[“filter”]=>
string(3) “raw”
[“EventStartDate”]=>
string(19) “2015-05-11 09:00:00”
[“EventEndDate”]=>
string(19) “2015-05-11 18:00:00”
}
}April 22, 2015 at 4:45 am #957294Mark
ParticipantOk so It seems to be the attachment issue but the code that you supplied to fix it currently doesn’t fix it.
Where do I place the “add_action( ‘after_setup_theme’, ‘tribe_attachment_404_fix’ );” in the code?April 22, 2015 at 10:02 am #957412Barry
MemberHi Mark,
So the code found here would simply be added to your theme’s functions.php file (if you’re unsure where exactly, create a new line after the opening <?php tag and paste it in there).
I wonder – and if you don’t have time it’s fine – but do you know how to create a backup of your database and would you be willing to share a copy of it if so, so we can try and replicate to avoid this in the future?
Thanks!
April 23, 2015 at 7:48 am #957710Mark
ParticipantYes I did that but still no luck, any other suggestions?
https://drive.google.com/a/tcd.ie/file/d/0BwoPbzotrjOPQTdnOUd1aC02b2c/view?usp=sharing
April 23, 2015 at 8:35 am #957752Barry
MemberIs that file your functions.php code, or a database backup (can you remove the access restrictions and/or re-post a link in a private reply)?
April 23, 2015 at 8:54 am #957767Mark
ParticipantThis reply is private.
April 23, 2015 at 2:21 pm #957905Barry
MemberThank you!
This is going to require a slightly deeper look than many other support requests so please do bear with us while we check it out (and as I’m out on Friday this week it will be a slightly longer delay before I can do so).
Thanks again for your patience 🙂
April 27, 2015 at 7:23 am #958472Barry
MemberHi Mark,
The good news is I can replicate this – which makes it a lot easier to troubleshoot.
It does indeed seem to be the “attachment problem”, however I am having a slightly different experience in that if I strip things down to just The Events Calendar, Events Calendar PRO and a default theme – then “flush” permalinks by visiting the Settings → Permalinks screen – the list of rewrite rules are rebuilt and everything works correctly again.
Reading back, it seems like you already tried the same thing without success: this is odd and I’m unsure why your own experience would be any different — is it possible you inadvertently left some other plugin running while you ran through these steps, or might you have forgotten to change back to a default theme?
April 28, 2015 at 1:39 am #958824Mark
ParticipantI basically Started from scratch with the same plugins and the same theme and the problem has not presented itself.
April 28, 2015 at 6:53 am #958881Barry
MemberWell, that’s good news (though it’s a shame you had to start again completely) 🙂
In that case I’ll go ahead and close this topic – but of course please feel free to post new topics if anything else crops up.
Thanks again!
-
AuthorPosts
- The topic ‘Events Search permalink problem’ is closed to new replies.
