{"id":993348,"date":"2015-08-05T05:52:22","date_gmt":"2015-08-05T12:52:22","guid":{"rendered":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/community-events-pages-not-rendering-on-wp_engine-hhvm\/"},"modified":"2015-08-22T07:05:03","modified_gmt":"2015-08-22T14:05:03","slug":"community-events-pages-not-rendering-on-wp_engine-hhvm","status":"closed","type":"topic","link":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/community-events-pages-not-rendering-on-wp_engine-hhvm\/","title":{"rendered":"Community Events pages not rendering on WP_Engine HHVM"},"content":{"rendered":"<p>I&#8217;m developing a website for WP_Engine HHVM. Locally i&#8217;m using a hgv box to develop. The problem I&#8217;m having is that on Staging, which is on WP_Engine, pages to add new events doesn&#8217;t appear and front page is rendered.<br \/>\nI performed some logging with<\/p>\n<pre><code>\t\tadd_action( &#039;wp_head&#039;, function() {\n\t\t\t\/\/ perform some logging.\n\t\t\tglobal $wp, $template;\n\t\t\tob_start();\n\t\t\techo &quot;\\r\\n&quot;;\n\t\t\techo &#039;&lt;!-- Request: &#039;;\n\t\t\techo empty( $wp-&gt;request ) ? &#039;None&#039; : esc_html($wp-&gt;request);\n\t\t\techo &#039; --&gt;&#039;.&quot;\\r\\n&quot;;\n\t\t\techo &#039;&lt;!-- Matched Rewrite Rule: &#039;;\n\t\t\techo empty( $wp-&gt;matched_rule ) ? &#039;None&#039; : esc_html($wp-&gt;matched_rule);\n\t\t\techo &#039; --&gt;&#039;.&quot;\\r\\n&quot;;\n\t\t\techo &#039;&lt;!-- Matched Rewrite Query: &#039;;\n\t\t\techo empty( $wp-&gt;matched_query ) ? &#039;None&#039; : esc_html($wp-&gt;matched_query);\n\t\t\techo &#039; --&gt;&#039;.&quot;\\r\\n&quot;;\n\t\t\techo &#039;&lt;!-- Loaded Template: &#039;;\n\t\t\techo basename( $template );\n\t\t\techo &#039; --&gt;&#039; . &quot;\\r\\n&quot;;\n\t\t\t$var = ob_get_clean();\n\t\t\terror_log( &#039;TRIBE-DEBUG&#039;. $var );\n\t\t\t}, 999 );<\/code><\/pre>\n<p>Which produces the log<\/p>\n<blockquote><p>\n2015\/08\/05 12:46:51 [error] 2310#2310: *824300 FastCGI sent in stderr: &#8220;PHP message: TRIBE-DEBUG<br \/>\n&lt;!&#8211; Request: events\/community\/add &#8211;&gt;<br \/>\n&lt;!&#8211; Matched Rewrite Rule: ^events\/community\/add$ &#8211;&gt;<br \/>\n&lt;!&#8211; Matched Rewrite Query: WP_Route=ce-add-route &#8211;&gt;<br \/>\n&lt;!&#8211; Loaded Template: front-page.php &#8211;&gt;&#8221; while reading upstream, client: 93.35.50.22, server: xxx, request: &#8220;GET \/events\/community\/add\/ HTTP\/1.1&#8221;, upstream: &#8220;fastcgi:\/\/127.0.0.1:9000&#8221;, host: &#8220;xxx&#8221;\n<\/p><\/blockquote>\n<p>so it seems that the problem is not in the rewrite, which is correctly mapped, but in the loading of the template which seems to load the front-page instead of the default-template.php file which should be loaded for the calendar to work ( I have overridden it )<\/p>\n<p>Any ideas on what might be happening?The strange thing is that it&#8217;s not happening on the hgv machine but only on our staging server.<\/p>\n","protected":false},"template":"","class_list":["post-993348","topic","type-topic","status-closed","hentry"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v25.2 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Community Events pages not rendering on WP_Engine HHVM -<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/community-events-pages-not-rendering-on-wp_engine-hhvm\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Community Events pages not rendering on WP_Engine HHVM -\" \/>\n<meta property=\"og:description\" content=\"I&#8217;m developing a website for WP_Engine HHVM. Locally i&#8217;m using a hgv box to develop. The problem I&#8217;m having is that on Staging, which is on WP_Engine, pages to add new events doesn&#8217;t appear and front page is rendered. I performed some logging with add_action( &#039;wp_head&#039;, function() { \/\/ perform some logging. global $wp, $template; [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/community-events-pages-not-rendering-on-wp_engine-hhvm\/\" \/>\n<meta property=\"article:modified_time\" content=\"2015-08-22T14:05:03+00:00\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data1\" content=\"1 minute\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/community-events-pages-not-rendering-on-wp_engine-hhvm\/\",\"url\":\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/community-events-pages-not-rendering-on-wp_engine-hhvm\/\",\"name\":\"Community Events pages not rendering on WP_Engine HHVM -\",\"isPartOf\":{\"@id\":\"https:\/\/theeventscalendar.com\/support\/#website\"},\"datePublished\":\"2015-08-05T12:52:22+00:00\",\"dateModified\":\"2015-08-22T14:05:03+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/community-events-pages-not-rendering-on-wp_engine-hhvm\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/community-events-pages-not-rendering-on-wp_engine-hhvm\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/community-events-pages-not-rendering-on-wp_engine-hhvm\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/theeventscalendar.com\/support\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Topics\",\"item\":\"https:\/\/theeventscalendar.com\/support\/topics\/\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"Calendar Products\",\"item\":\"https:\/\/theeventscalendar.com\/support\/forums\/forum\/events\/\"},{\"@type\":\"ListItem\",\"position\":4,\"name\":\"Community Events\",\"item\":\"https:\/\/theeventscalendar.com\/support\/forums\/forum\/events\/community-events\/\"},{\"@type\":\"ListItem\",\"position\":5,\"name\":\"Community Events pages not rendering on WP_Engine HHVM\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/theeventscalendar.com\/support\/#website\",\"url\":\"https:\/\/theeventscalendar.com\/support\/\",\"name\":\"\",\"description\":\"\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/theeventscalendar.com\/support\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Community Events pages not rendering on WP_Engine HHVM -","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/community-events-pages-not-rendering-on-wp_engine-hhvm\/","og_locale":"en_US","og_type":"article","og_title":"Community Events pages not rendering on WP_Engine HHVM -","og_description":"I&#8217;m developing a website for WP_Engine HHVM. Locally i&#8217;m using a hgv box to develop. The problem I&#8217;m having is that on Staging, which is on WP_Engine, pages to add new events doesn&#8217;t appear and front page is rendered. I performed some logging with add_action( &#039;wp_head&#039;, function() { \/\/ perform some logging. global $wp, $template; [&hellip;]","og_url":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/community-events-pages-not-rendering-on-wp_engine-hhvm\/","article_modified_time":"2015-08-22T14:05:03+00:00","twitter_card":"summary_large_image","twitter_misc":{"Est. reading time":"1 minute"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/community-events-pages-not-rendering-on-wp_engine-hhvm\/","url":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/community-events-pages-not-rendering-on-wp_engine-hhvm\/","name":"Community Events pages not rendering on WP_Engine HHVM -","isPartOf":{"@id":"https:\/\/theeventscalendar.com\/support\/#website"},"datePublished":"2015-08-05T12:52:22+00:00","dateModified":"2015-08-22T14:05:03+00:00","breadcrumb":{"@id":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/community-events-pages-not-rendering-on-wp_engine-hhvm\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/theeventscalendar.com\/support\/forums\/topic\/community-events-pages-not-rendering-on-wp_engine-hhvm\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/community-events-pages-not-rendering-on-wp_engine-hhvm\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/theeventscalendar.com\/support\/"},{"@type":"ListItem","position":2,"name":"Topics","item":"https:\/\/theeventscalendar.com\/support\/topics\/"},{"@type":"ListItem","position":3,"name":"Calendar Products","item":"https:\/\/theeventscalendar.com\/support\/forums\/forum\/events\/"},{"@type":"ListItem","position":4,"name":"Community Events","item":"https:\/\/theeventscalendar.com\/support\/forums\/forum\/events\/community-events\/"},{"@type":"ListItem","position":5,"name":"Community Events pages not rendering on WP_Engine HHVM"}]},{"@type":"WebSite","@id":"https:\/\/theeventscalendar.com\/support\/#website","url":"https:\/\/theeventscalendar.com\/support\/","name":"","description":"","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/theeventscalendar.com\/support\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"}]}},"_links":{"self":[{"href":"https:\/\/theeventscalendar.com\/support\/wp-json\/wp\/v2\/topic\/993348","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/theeventscalendar.com\/support\/wp-json\/wp\/v2\/topic"}],"about":[{"href":"https:\/\/theeventscalendar.com\/support\/wp-json\/wp\/v2\/types\/topic"}],"version-history":[{"count":2,"href":"https:\/\/theeventscalendar.com\/support\/wp-json\/wp\/v2\/topic\/993348\/revisions"}],"predecessor-version":[{"id":993354,"href":"https:\/\/theeventscalendar.com\/support\/wp-json\/wp\/v2\/topic\/993348\/revisions\/993354"}],"wp:attachment":[{"href":"https:\/\/theeventscalendar.com\/support\/wp-json\/wp\/v2\/media?parent=993348"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}