Tagged: breadcrumb, enfold theme, posts
Hi
I have an issue with the avia_breadcrumb function in the enfold theme which breaks when I try and display a post with a title of 80+ characters. The page refuses to load beyond the header as the avia_breadcrumb function does not return. I am working on a child theme, but have tested it on the parent enfold theme and get the same issue.
If I shorten the post title it displays ok. Can you please advise on how to fix this?
Thanks in advance
Hey!
The website you posted is not loading for me, checked here too:
http://www.downforeveryoneorjustme.com/http://sitestage.findly.com/
Best regards,
Josue
Hi Josue
We are having intermittent 502 errors with the site. It is up again now. Could you have another look?
Thanks
Hey!
Do you have access to your PHP error log?
Regards,
Josue
Hey!
Try asking your server provider support to enable the mb_strimwidth PHP function (Multibyte String Functions).
Best regards,
Josue
Finally heard back from the client IT team and they advise that opening up mb_ functions can cause all kinds of different security issues. They have advised against us doing it.
Any other suggestions or is this our only option?
Thanks
Hi!
You can edit framework > php > function-set-avia-backend.php, find the code on line 576:
$string = mb_strimwidth($string, 0, $breakpoint) . $pad;
Replace it with:
$string = $string . $pad;
I think it’s safe to change since you’re not using right to left text direction. Not sure if this is going to work but please give it a try.
Regards,
Ismael
Thanks for your help. That has solved it for me.
Cheers