Joomla-cms: string truncate error after update to Joomla 3.9

Created on 13 Sep 2018  路  5Comments  路  Source: joomla/joomla-cms

I have this code in my theme:
$intro = ''; $intro = $item->introtext; JHTML::_('string.truncate'); echo JHtmlString::truncate($intro,110, true, false);

when update to 3.9 I have this error:
grafik
In 3.8.12 no have a problem.

No Code Attached Yet

All 5 comments

Remove JHTML::_('string.truncate') or change JHtmlString::truncate($intro,110, true, false) to JHtml::_('string.truncate', $intro,110, true, false).

Thank you, issue solved, but why it working in 3.8.12 ?

No idea. Doesn't work for me on 3.8.12.

For me JHTML::_('string.truncate'); does also not work on 3.8.12. Do you have the same error reporting setting in your Joomla config?

can be not. thank you everyone!

Was this page helpful?
0 / 5 - 0 ratings