Thread Starter
David
(@digitalone)
Followup to this issue with wp_debug on
“Call to undefined function Cocur\Slugify\mb_strtolower() in /home/davebjoh/public_html/glbcy/wp-content/plugins/visual-portfolio/vendors/slugify/Slugify.php on line 118”
Thread Starter
David
(@digitalone)
Further to this I was able to debug the issue. Line 118 of the Slugify.php file I changed the mb_strtolower to just strtolower. Not sure why that worked but it was suggested on stackoverflow.
Maybe if you get a chance you can enlighten me with an explanation and you can fix the issue for future updates.
Thanks
Plugin Author
nK
(@nko)
Hi.
Thank you for reporting me. Better to resolve this issue on your server as mb_strtolower is better than strtolower because it works with multi-byte strings. Read more here – https://stackoverflow.com/questions/39576382/why-should-i-use-strtolower-rather-than-mb-strtolower/39576492
In the local build of Visual Portfolio added the check for function availability, so in the next update you will not see this error.
Regards, nK.