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

Topics that are moved into this category are generally considered to be closed. Users may want to add additional information but these topics should not be resurrected in order to discuss new problems or unrelated matters.

Question Duplicated constant name

More
16 years 5 months ago - 16 years 5 months ago #32890 by doorknob
I found a problem in v 1.5.6.
When I made php show minor errors to help debug another application, Kunena gave me the following error:
Notice: Constant _PREVIEW_CLOSE already defined in [root]\administrator\components\com_kunena\language\kunena.english.php on line 1174.

When I investigated, I found that there was no duplication within the Kunena package but that another component also used the same constant (sh404sef). Before posting, I looked to see whether the same problem had been already reported. I found other reports of duplicated constant names but not this particular one. Whenever I create a constant in any of my own code, I always use a specific prefix that, while not guaranteeing uniqueness, make it much more likely. Can I suggest that you do something similar (perhaps '_KF_') with Kunena? As the number of components available for Joomla steadily increases, this is likely to be a bigger and bigger issue.
Regards
Phil

PS I couldn't find anywhere that this constant is used!
Last edit: 16 years 5 months ago by doorknob.

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

More
16 years 5 months ago #32894 by xillibit
Hello,

I didn't know that a component third party can do a conflict with constants, so i will report this to the DEVs, for change this and thanks for report this.

I don't provide support by PM, because this can be useful for someone else.

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

More
16 years 5 months ago #33112 by Matias
Replied by Matias on topic Re:Duplicated constant name
New language strings have all prefixes, but old ones do not have -- because of it would mean a lot of work for existing translations. But I'll mark this one to be fixed.

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

Time to create page: 0.227 seconds