• Resolved toolsavvy

    (@toolsavvy)


    When I updated to newest version of your plugin today, my site broker. After some troubleshooting, I found that it is one snippet causing the problem. But after 2 hours of troubleshooting within that single snippet, I cannot find the problem inside the snippet. It’s my most important snippet.

    I turned on wp debug mode as well and created a php-error.log file according to 1st method at https://digwp.com/2009/07/monitor-php-errors-wordpress/ to see if that would help me find an error, but I get no errors.

    – I do not get a white screen, but my site only loads in partially.

    – If I disable the problem snippet, the site works fine.

    – Also, if I enable the problem snippet, then remove all the code from the snippet then save, the site works fine. But once I place the snippet code back in, the site breaks again.

    I have gone through line-by-line, removing one line at a time, and the site stays broken until I remove the very last line of code from that snippet (except for the last line – caldera forms shortcode).

    This makes me believe that this new version does not allow woody snippet shortcodes inside another woody snippet. Is this true? If so, this is a real pity as it worked so well as it was before with these nested snippets.

    I really need help on this matter.

    Here is the code within that snippet that used to work fine before the update.

    echo do_shortcode( '[wbcr_php_snippet id="919" title="promo"]' ); ?>
    
    <div class="section group">
    
    	<div class="col span_1_of_3">
            	<?php echo do_shortcode( '[wbcr_php_snippet id="915" title="flag"]' ); ?><span class="shipsfrom"><?php echo do_shortcode( '[wbcr_php_snippet id="892" title="country"]' ) . ": "; ?></span><span class="shipsfromlink"><a class="shipsfromlink" href="<?php $woolink = get_post_permalink($post->ID); echo esc_url($woolink) ;?>"<?php echo ''.$wootarget ;?>><?php echo do_shortcode( '[wbcr_php_snippet id="914" title="vendor"]' ); ?></a></span>
            </div>    
    
            <div class="col span_1_of_3">
                     <?php echo do_shortcode( '[wbcr_php_snippet id="917" title="intship"]' ); ?>
            </div>
    
            <div class="col span_1_of_3">
                     <?php echo do_shortcode( '[wbcr_php_snippet id="918" title="freeship"]' ); ?>
            </div>
    </div>
                   
    
    <div class="section group">
    
    	<div class="col span_1_of_3">
                    <?php echo do_shortcode( '[wbcr_php_snippet id="922" title="crypto"]' ); ?>
            </div>
    
            <div class="col span_1_of_3">
                    <?php echo do_shortcode( '[wbcr_php_snippet id="921" title="rewards"]' ); ?>
            </div>
    
            <div class="col span_1_of_3">
                    <?php echo do_shortcode( '[wbcr_php_snippet id="920" title="discreet"]' ); ?>
            </div>
    
    </div>
    
    <?php echo do_shortcode( '[caldera_form_modal id="CF5c24a6f55c699"]' );
Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author webcraftic

    (@webcraftic)

    Thanks for the detailed bug report!

    Bug fixed in new version 2.1.4. You need to update the plugin and re-activate your favorite snippet.

    Best regards, Alex

    Thread Starter toolsavvy

    (@toolsavvy)

    Thank you for fixing the bug.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Update broke site – found problem snippet, but cannot fix’ is closed to new replies.