Viewing 20 posts - 1 through 20 (of 20 total)
  • Author
    Posts
  • #1490337

    Hi,
    When I edit a portfolio item, I get this alert :
    Warning: Undefined array key “trail_end” in /…/wp-content/themes/enfold/includes/helpers/helper-template-logic.php on line 210
    Regards

    #1490341

    Hey RollandH,

    Thanks for the login details. The warning disappears if the parent theme is active, so it’s likely that it’s generated by something in your child theme. Please try to remove all your customisations, then add them back one by one to see when the warning comes back. Also note that a warning won’t cause any problems on your actual site.

    Best regards,
    Rikard

    #1490344

    Hey Rikard
    Thank you for your quick response.
    Next time I will do this test before asking you.

    Best regards

    #1490345

    Found the origin but it comes from a function that is part of your documentation :

    function av_breadcrumbs_shortcode( $atts ) {
    	return Avia_Breadcrumb_Trail()->get_trail( array( 'separator' => '/', 'richsnippet' => true ) );
    }
    add_shortcode( 'av_breadcrumbs', 'av_breadcrumbs_shortcode' );

    https://kriesi.at/documentation/enfold/breadcrumbs/#insert-breadcrumbs-as-shortcodes

    • This reply was modified 4 weeks ago by RollandH.
    #1490368

    Hi,

    Thanks for that, it looks like it needs to be updated. What happens if you use this code instead?

    
    function av_breadcrumbs_shortcode( $atts ) {
    	return Avia_Breadcrumb_Trail()->get_trail( array( 'separator' => '/', 'richsnippet' => true ) );
    }
    add_shortcode( 'avf_breadcrumbs_external', 'av_breadcrumbs_shortcode' );

    Best regards,
    Rikard

    #1490369

    Hey Rikard,
    The warning no longer appears! Much better for my client!
    Thanks a lot.
    Best regards
    Rolland

    #1490370

    What happened? The warning just came back!

    • This reply was modified 3 weeks, 5 days ago by RollandH.
    #1490401

    Hi,

    Thanks for the update. I see that the warning is still there on your site, but I cannot reproduce this on our test installations. Does the same thing happen if the snippet above is your only custom code?

    Best regards,
    Rikard

    #1490404

    Hey Rikard,
    Screenshot functions Enfold Child
    Done, always the same warning.
    I have again:
    – deleted cookies,
    – disabled all extensions,
    nothing changes.

    I have implemented this feature in other websites that work with Enfold :
    My tests website : https://web-13-tests.fr (Identifiers on https://kriesi.at/support/topic/avia-text-block-no-longer-works/)
    Mine : https://web-13.com (identifiers on https://kriesi.at/support/topic/comment-form-for-an-article-on-mobile-is-not-displaying-correctly/)
    and I don’t get the same error!?

    What more can I do on my side?

    Best regards
    Rolland

    #1490407

    Hi,

    Did you check your WordPress debug settings? https://wordpress.org/support/article/debugging-in-wordpress/

    Best regards,
    Rikard

    #1490416
    This reply has been marked as private.
    #1490463

    Hi Rolland,

    Please update the code snippet to the following:

    
    function av_breadcrumbs_shortcode( $atts ) {
    	return Avia_Breadcrumb_Trail()->get_trail( array( 'separator' => '/', 'richsnippet' => true, 'trail_end' => '' ) );
    }
    add_shortcode( 'avf_breadcrumbs_external', 'av_breadcrumbs_shortcode' );
    

    This should fix the warning.

    Cheers!
    Yigit

    #1490466

    Hey Rikard,
    It still doesn’t work
    Beginner in WordPress but a few years of experience in PHP, one of the first solutions tried was to fill in the ‘missing’ variable.
    ”, 0, space, null… None of them worked.
    Something about ob_end_flush in the log file?
    I have the ultimate solution to remove the display of warnings in wp-config,
    Another more professional solution?
    Best regards
    Rolland

    #1490498

    Hi,

    Thanks for the update. We’ll try to include a possible fix for this in the next version of the theme, are you ok with waiting until then? Like I stated earlier; this warning won’t affect any functionality on your actual site.

    Best regards,
    Rikard

    #1490514

    Hey Rikard,

    Do I really have a choice? Yes of course.
    I understand well, but my client doesn’t know the difference between E_ALL, E_WARNING, E_NOTICE… The only thing he notices is that there is something abnormal and he wants it to be corrected.
    You keep me informed please.

    Best regards
    Rolland

    #1490515

    Hi,

    All you need to do is to set debug to false, then the warning won’t be visible.

    Best regards,
    Rikard

    #1490566

    Hi Rolland,

    For your information, the ob_end_flush() warning is not related to Enfold. It comes from PHP’s output compression settings on the server. Please ask your hosting provider to disable PHP zlib output compression or handle gzip compression at the server level instead.

    Regards,
    Yigit

    #1490572

    Hey Rikard,

    That’s what I did while waiting for better news.
    Thank you for your attention.

    Best regards
    Rolland

    #1490576

    Hey Yigit,

    Thanks for the information, although it doesn’t reassure me at all since this site, like the others using Enfold, is on the same server and in exactly the same hosting environment. And the others are working fine.

    I’m going to change my server at the end of the month to a newer one, and I’ll see what happens then.

    Best regards
    Rolland

    #1490582

    Hi,

    Since you only have this problem on one site, and since we cannot reproduce it on our test installations, then it’s likely something local to the site in question. We will have a look at possible fix for the next release of the theme. Until then, please turn of debugging so that the warning won’t be visible on the frontend.

    Best regards,
    Rikard

Viewing 20 posts - 1 through 20 (of 20 total)
  • You must be logged in to reply to this topic.