Kunena 7.0.4 Released

The Kunena team has announce the arrival of Kunena 7.0.4 [K 7.0.4] in stable which is now available for download as a native Joomla extension for J! 5.4.x/6.0.x. This version addresses most of the issues that were discovered in K 6.2 / K 6.3 / K 6.4 and issues discovered during the last development stages of K 7.0

Question PHP4 issue in Kunena 1.0.8 (was: Error With 1.08)

More
17 years 2 months ago - 17 years 2 months ago #4078 by Bama
I had 1.07 and just upgraded to 1.08 hoping that the upgrade would fix my problem. It didn't though.

When posting a new message, I get this error and my template totally disappears:

Fatal error: Call to undefined function: htmlspecialchars_decode() in yadda yadda/components/com_kunena/lib/kunena.link.class.php on line 120

Any ideas? I can get the forum to load back up by going through several of the links on the site and it'll display the forum just fine if I do - just need to get past this error. Thanks for any suggestions in advance

Last edit: 17 years 2 months ago by Matias.

Please Log in or Create an account to join the conversation.

More
17 years 2 months ago #4147 by grumblemarc
Replied by grumblemarc on topic Re:Error With 1.08
If you have ANY options enabled in the Kunena config that you don't actually have installed, like badwords, disable them.

We love stars on the Joomla Extension Directory . :-)

Please Log in or Create an account to join the conversation.

More
17 years 2 months ago - 17 years 2 months ago #4234 by Matias
Replied by Matias on topic Re:Error With 1.08
I suspect that you have php4? It's php5+ feature and it looks like we accidentally forgot to add emulation for it.

Add this to components/com_kunena/class.kunena.php, line 1275:
Code:
if (!function_exists("htmlspecialchars_decode")) { function htmlspecialchars_decode($string,$style=ENT_COMPAT) { $translation = array_flip(get_html_translation_table(HTML_SPECIALCHARS,$style)); if($style === ENT_QUOTES) { $translation['''] = '\''; } return strtr($string,$translation); } }
Last edit: 17 years 2 months ago by Matias.

Please Log in or Create an account to join the conversation.

More
17 years 2 months ago #4239 by Matias
Replied by Matias on topic Re:Error With 1.08
I documented this one to our Wiki.

Please Log in or Create an account to join the conversation.

More
17 years 2 months ago #4616 by bjornon
Replied by bjornon on topic Re:Error With 1.08
Hello -

Thanks for fixing this. Not to nag, but isn't this file named class.kunena.php?
For noobs like me, this is quite important... :-)

BjO

Please Log in or Create an account to join the conversation.

More
17 years 2 months ago #4627 by Matias
Replied by Matias on topic Re:Error With 1.08
Good catch! Changed it.

Please Log in or Create an account to join the conversation.

Time to create page: 0.227 seconds