-
AuthorPosts
-
October 17, 2025 at 10:33 am #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
RegardsOctober 17, 2025 at 12:28 pm #1490341Hey 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,
RikardOctober 17, 2025 at 12:37 pm #1490344Hey Rikard
Thank you for your quick response.
Next time I will do this test before asking you.Best regards
October 17, 2025 at 12:51 pm #1490345Found 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.
October 19, 2025 at 12:04 pm #1490368Hi,
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,
RikardOctober 19, 2025 at 12:15 pm #1490369Hey Rikard,
The warning no longer appears! Much better for my client!
Thanks a lot.
Best regards
RollandOctober 19, 2025 at 1:35 pm #1490370What happened? The warning just came back!
-
This reply was modified 3 weeks, 5 days ago by
RollandH.
October 20, 2025 at 12:46 pm #1490401Hi,
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,
RikardOctober 20, 2025 at 2:04 pm #1490404Hey Rikard,

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
RollandOctober 20, 2025 at 3:57 pm #1490407Hi,
Did you check your WordPress debug settings? https://wordpress.org/support/article/debugging-in-wordpress/
Best regards,
RikardOctober 20, 2025 at 5:39 pm #1490416This reply has been marked as private.October 21, 2025 at 12:09 pm #1490463Hi 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!
YigitOctober 21, 2025 at 3:32 pm #1490466Hey 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
RollandOctober 22, 2025 at 9:38 am #1490498Hi,
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,
RikardOctober 22, 2025 at 7:23 pm #1490514Hey 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
RollandOctober 22, 2025 at 8:23 pm #1490515Hi,
All you need to do is to set debug to false, then the warning won’t be visible.
Best regards,
RikardOctober 24, 2025 at 11:27 am #1490566Hi 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,
YigitOctober 24, 2025 at 5:45 pm #1490572Hey Rikard,
That’s what I did while waiting for better news.
Thank you for your attention.Best regards
RollandOctober 24, 2025 at 6:14 pm #1490576Hey 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
RollandOctober 25, 2025 at 10:28 am #1490582Hi,
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 -
This reply was modified 4 weeks ago by
-
AuthorPosts
- You must be logged in to reply to this topic.
