Home › Forums › Calendar Products › Community Events › Community Add Event does not display template page and Returns Page Not Found
- This topic has 2 replies, 3 voices, and was last updated 10 years, 10 months ago by
Support Droid.
-
AuthorPosts
-
March 23, 2015 at 5:07 pm #950307
colin
ParticipantI have events calendar and events calendar pro and community events plugins installed. (v3.9)
When WordPress Video Robot Plugin
http://codecanyon.net/item/wordpress-video-robot-plugin/8619739
is installed, two issues occurred. item 1 is fixed item 2 is still an issue1. event pages would not display the correct templates – This was because wcpr video plugin registers a custom post type and check within /events-calendar/lib/tribe-templates.class.php
97 if( in_array(get_query_var(‘post_type’)looks for a value within an array however if there is multiple custome postypes you are looking for an array value within an array so in_array does not work. I resolved this by changing in_array for array_intersect.
This works fine now.2. The community submit event form does not display the form template the page title is page not found. I ran the debug and this is the output:
add?tribe_query_debug=true<Tribe Events Query>
object(WP_Query)#465 (51) {
[“query”]=>
array(1) {
[“WP_Route”]=>
string(12) “ce-add-route”
}
[“query_vars”]=>
array(52) {
[“WP_Route”]=>
string(12) “ce-add-route”
[“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)
[“name”]=>
string(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) {
}
[“post_type”]=>
array(2) {
[0]=>
string(4) “post”
[1]=>
string(10) “wpvr_video”
}
}
[“tax_query”]=>
object(WP_Tax_Query)#780 (2) {
[“queries”]=>
array(0) {
}
[“relation”]=>
string(3) “AND”
}
[“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(false)
[“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(true)
[“is_404”]=>
bool(false)
[“is_comments_popup”]=>
bool(false)
[“is_paged”]=>
bool(false)
[“is_admin”]=>
bool(false)
[“is_attachment”]=>
bool(false)
[“is_singular”]=>
bool(false)
[“is_robots”]=>
bool(false)
[“is_posts_page”]=>
bool(false)
[“is_post_type_archive”]=>
bool(false)
[“query_vars_hash”]=>
string(32) “f5427b6b4eb04bbff4089241733978b2”
[“query_vars_changed”]=>
bool(false)
[“thumbnails_cached”]=>
bool(false)
[“stopwords”:”WP_Query”:private]=>
NULL
[“tribe_is_event”]=>
bool(false)
[“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(false)
[“tribe_is_past”]=>
bool(false)
}Query Results:
array(0) {
}is_404() =
bool(false)
</Tribe Events Query>If the video plugin is deactivated the output is:
<Tribe Events Query>
object(WP_Query)#466 (51) {
[“query”]=>
array(1) {
[“WP_Route”]=>
string(12) “ce-add-route”
}
[“query_vars”]=>
array(51) {
[“WP_Route”]=>
string(12) “ce-add-route”
[“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)
[“name”]=>
string(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”]=>
object(WP_Tax_Query)#197 (2) {
[“queries”]=>
array(0) {
}
[“relation”]=>
string(3) “AND”
}
[“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(false)
[“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(true)
[“is_404”]=>
bool(false)
[“is_comments_popup”]=>
bool(false)
[“is_paged”]=>
bool(false)
[“is_admin”]=>
bool(false)
[“is_attachment”]=>
bool(false)
[“is_singular”]=>
bool(false)
[“is_robots”]=>
bool(false)
[“is_posts_page”]=>
bool(false)
[“is_post_type_archive”]=>
bool(false)
[“query_vars_hash”]=>
string(32) “f5427b6b4eb04bbff4089241733978b2”
[“query_vars_changed”]=>
bool(false)
[“thumbnails_cached”]=>
bool(false)
[“stopwords”:”WP_Query”:private]=>
NULL
[“tribe_is_event”]=>
bool(false)
[“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(false)
[“tribe_is_past”]=>
bool(false)
}Query Results:
array(1) {
[0]=>
object(WP_Post)#202 (24) {
[“ID”]=>
int(1027)
[“post_author”]=>
string(1) “1”
[“post_date”]=>
string(19) “2015-01-23 16:16:12”
[“post_date_gmt”]=>
string(19) “2015-01-23 16:16:12”
[“post_content”]=>
string(0) “”
[“post_title”]=>
string(26) “WP Router Placeholder Page”
[“post_excerpt”]=>
string(0) “”
[“post_status”]=>
string(7) “publish”
[“comment_status”]=>
string(6) “closed”
[“ping_status”]=>
string(6) “closed”
[“post_password”]=>
string(0) “”
[“post_name”]=>
string(26) “wp-router-placeholder-page”
[“to_ping”]=>
string(0) “”
[“pinged”]=>
string(0) “”
[“post_modified”]=>
string(19) “2015-01-23 16:16:12”
[“post_modified_gmt”]=>
string(19) “2015-01-23 16:16:12”
[“post_content_filtered”]=>
string(0) “”
[“post_parent”]=>
int(0)
[“guid”]=>
string(66) “http://dev.urbanworldv5.local/WP_Router/wp-router-placeholder-page”
[“menu_order”]=>
int(0)
[“post_type”]=>
string(14) “wp_router_page”
[“post_mime_type”]=>
string(0) “”
[“comment_count”]=>
string(1) “0”
[“filter”]=>
string(3) “raw”
}
}is_404() =
bool(false)
</Tribe Events Query>Please advise on how i can fix this and/or where i can start looking to resolve this issue.
March 24, 2015 at 7:38 am #950481George
ParticipantHey Colin,
Unfortunately, there may be very little we can do if the problems of another plugin’s design are ruining the functionality of other things on your site. Your findings here are greatly appreciated though, and it’s possible we might be able to find out what’s going on with issue #2 as you’ve described it here.
To get started on this, when you mention that you “ran the debug”, what exactly do you mean? If you mean the debug bar plugin or a var_dump() of the query results, as it seems to be the case here, that’s quite helpful. One extra step you should take if you haven’t already is to see if any errors pop up on your site if you head to your site’s wp-config.php file and change this line of code:
define('WP_DEBUG', false);to this:
define('WP_DEBUG', true);That will display PHP errors on your site if any exist, which can help.
After making this change, to any PHP errors pop up if you try navigating to the Community Events submission page? Or anywhere else on your site? If so, can you copy and paste the entire output of these errors into Gists at http://gist.github.com, then share the link to those Gists here on the forums? (This keeps things a bit easier to read and manage than posting code directly in the forums here).
Let us know what you find!
Thanks,
GeorgeJuly 7, 2015 at 6:31 am #983911Support Droid
KeymasterThis topic has not been active for quite some time and will now be closed.
If you still need assistance please simply open a new topic (linking to this one if necessary)
and one of the team will be only too happy to help. -
AuthorPosts
- The topic ‘Community Add Event does not display template page and Returns Page Not Found’ is closed to new replies.
