Support » Plugin: WP Recipe Maker » Website down after last update

  • Resolved paulalexandru

    (@paulalexandru)


    Hello.

    This is a critical message, I updated to the last version and website is down (white page). IF I deactivate the plugin the website will work, if I activate it, it will crash again.

Viewing 15 replies - 61 through 75 (of 84 total)
  • Ok so I tested now. Only the homepage is blank (where I have those 2 custom fields displayed). The posts page works fine, there I don’t have any custom fields.

    Plugin Author Brecht

    (@brechtvds)

    How are you displaying those custom fields, specifically?

    <?php print get_field( “time” ); ?>
    <?php print get_field( “skill” ); ?>

    Plugin Author Brecht

    (@brechtvds)

    And where have you added that code? In your theme? Because then it can’t be the issue as you don’t have the problem with a standard theme (that doesn’t have this extra code), right?

    Brecht

    twentytwelve-child/content.php

    I do have a problem also with the default theme. It seems like the homepage does not work for the twentytwelve (this is unedited, i did not modify this at all, i dont have ACF on that) also only post page.

    Plugin Author Brecht

    (@brechtvds)

    And you’re only using anything ACF related in the content.php file? No shortcodes in the posts or something?
    A really strange problem you’ve got going on here.

    Just the php code that I posted before which are the 2 fields from my ACF. No shortcodes

    Plugin Author Brecht

    (@brechtvds)

    I don’t know what else we can test. Do you get the error both when logged in as an admin and logged out?
    You could also try temporarily setting specific posts as drafts to see if they are causing this.

    I’ve tested only as logged in because I am always logged in, but i will try the other option also. I will also try to put my posts on draft since I don’t have so many and tell you the result. I can do this tonight.

    Thanks

    The problem appear in both cases when I am logged in or not.

    I searched on google for ACF do_shortcode conflict. I got this: https://wordpress.org/support/topic/all-my-acfs-stop-working-after-the-carousel/ do you think it is helpful?

    Plugin Author Brecht

    (@brechtvds)

    I don’t think it’s related as we’re not querying posts at that point. But you could try adding wp_reset_postdata(); on the line after the do_shortcode() one.

    Have you tried setting your posts as drafts to see if it’s an issue with a specific post?

    Brecht

    1. I did not make my posts drafts yet.
    2. I can not add wp_reset_postdata(); after return do_shortcode( $template ); because after this line nothing will happen since it will return.
    3. What I did instead was to delete my ACF code from my template and it works like that. So this is all the code related:

    <?php if (get_field( “time” ) || get_field( “skill” )) { ?>
    <div>
    <?php if (get_field( “time” )) { ?>
    <i class=”cooking-time”></i><span><?php print get_field( “time” ); ?></span> 
    <?php } ?>
    <?php if (get_field( “skill” )) { ?>
    <i class=”cooking-skill”></i><span><?php print get_field( “skill” ); ?></span> 
    <?php } ?>
    <?php if ( comments_open() ) : ?>
    <i class=”cooking-comment”></i>
    <span class=”comments-link”>
    <?php comments_popup_link( ‘<span class=”leave-reply”>’ . __( ‘Leave a comment’, ‘twentytwelve’ ) . ‘</span>’, __( ‘1 Comment’, ‘twentytwelve’ ), __( ‘% Comments’, ‘twentytwelve’ ) ); ?>
    </span><!– .comments-link –>
    <?php endif; // comments_open() ?>
    </div>
    <?php } ?>

    Sory about the formatting, it seems that this is the best that this editor can do. So this code is placed in content.php in my child theme. As you can see I display the 2 custom fields which are skill and time. If I delete this block it works without me having to remove the do_shortcode from your plugin.

    Plugin Author Brecht

    (@brechtvds)

    Now I’m confused again. I thought you already tested using Twenty Twelve by itself, without child theme, and you told me that didn’t work either?

    (You can use the “code” button in this editor for displaying that code nicely formatted, by the way)

    I checked again with the default theme and it seems that it works. I don’t know why I said it was not working with that, I’m a little confused also. Anyways. So the conclusion is that it works with the default them, it doesn’t with the child theme because it adds this block of code:

    <?php if (get_field( "time" ) || get_field( "skill" )) { ?>
        <div>
            <?php if (get_field( "time" )) { ?>
                <i class="cooking-time"></i><span><?php print get_field( "time" ); ?></span>&nbsp;
            <?php  } ?> 
            <?php if (get_field( "skill" )) { ?>
                <i class="cooking-skill"></i><span><?php print get_field( "skill" ); ?></span>&nbsp;
            <?php  } ?>                     
        </div>                   
    <?php  } ?> 
Viewing 15 replies - 61 through 75 (of 84 total)
  • The topic ‘Website down after last update’ is closed to new replies.