Community Events pages not rendering on WP_Engine HHVM

Home Forums Calendar Products Community Events Community Events pages not rendering on WP_Engine HHVM

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #993348
    Dan
    Participant

    I’m developing a website for WP_Engine HHVM. Locally i’m using a hgv box to develop. The problem I’m having is that on Staging, which is on WP_Engine, pages to add new events doesn’t appear and front page is rendered.
    I performed some logging with

    		add_action( 'wp_head', function() {
    			// perform some logging.
    			global $wp, $template;
    			ob_start();
    			echo "\r\n";
    			echo '<!-- Request: ';
    			echo empty( $wp->request ) ? 'None' : esc_html($wp->request);
    			echo ' -->'."\r\n";
    			echo '<!-- Matched Rewrite Rule: ';
    			echo empty( $wp->matched_rule ) ? 'None' : esc_html($wp->matched_rule);
    			echo ' -->'."\r\n";
    			echo '<!-- Matched Rewrite Query: ';
    			echo empty( $wp->matched_query ) ? 'None' : esc_html($wp->matched_query);
    			echo ' -->'."\r\n";
    			echo '<!-- Loaded Template: ';
    			echo basename( $template );
    			echo ' -->' . "\r\n";
    			$var = ob_get_clean();
    			error_log( 'TRIBE-DEBUG'. $var );
    			}, 999 );

    Which produces the log

    2015/08/05 12:46:51 [error] 2310#2310: *824300 FastCGI sent in stderr: “PHP message: TRIBE-DEBUG
    <!– Request: events/community/add –>
    <!– Matched Rewrite Rule: ^events/community/add$ –>
    <!– Matched Rewrite Query: WP_Route=ce-add-route –>
    <!– Loaded Template: front-page.php –>” while reading upstream, client: 93.35.50.22, server: xxx, request: “GET /events/community/add/ HTTP/1.1”, upstream: “fastcgi://127.0.0.1:9000”, host: “xxx”

    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 )

    Any ideas on what might be happening?The strange thing is that it’s not happening on the hgv machine but only on our staging server.

    #993574
    George
    Participant

    Hey Dan,

    Thanks for reporting this! We’ve yet to hear of a similar issue so this is new on our radar…interesting.

    Just out of curiosity, have you contacted WP Engine at all about this as well? If so, do they have any insights in addition to what you provided?

    #993821
    Dan
    Participant

    Hi George,

    we still haven’t found out anything. Can you explain us why shortcodes are disabled when pretty permalinks are on?Would they break under a pretty permalinks setup?

    #994032
    Dan
    Participant

    I tried activating shortcodes with permalinks on but i simply get redirected to the /events/community/add page, which still shows the frontend. Isn’t there another way to force rendering on the form?

    #994336
    George
    Participant

    Hey Dan,

    Can you clarify what you mean about “activating shortcodes” and having them “disabled when pretty permalinks are on”? What exactly do you mean by these phrases?

    The core focus of this ticket seems to be what you wrote here, about HHVM and your staging site:

    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 )

    There is nothing within The Events Calendar that would enable/disable shortcodes based on permalinks settings, so that shouldn’t be relevant for your main HHVM-related issues.

    Just wanted to get a better sense of what you’re looking for here, sorry if I’m misunderstanding anything!

    Cheers,
    George

    #998161
    Support Droid
    Keymaster

    This 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.

Viewing 6 posts - 1 through 6 (of 6 total)
  • The topic ‘Community Events pages not rendering on WP_Engine HHVM’ is closed to new replies.