- Posts: 1
- Thank you received: 0
Kunena 6.3.8 Released
The Kunena team has announce the arrival of Kunena 6.3.8 [K 6.3.8] in stable which is now available for download as a native Joomla extension for J! 4.4.x/5.0.x/5.1.x/5.2.x. This version addresses most of the issues that were discovered in K 6.2 / K 6.3 and issues discovered during the last development stages of K 6.3
Note: Please go to the Kunena Dashboard after an upgrade so that the Kunena database tables are also updated.
This category may also contain a few topics relating to K 1.6 that may have been moved here possibly by mistake.
The topics in this category are for historical interest only. Owing to the structural differences between K 1.6 and K 1.7, these ideas in these topics will not work with later versions and, for that reason, the topics are locked.
Important K 1.5 latest posts module - no longer supported or maintained. Do NOT use this with K 1.6!
In that case, do the same changes above to this file in MT:
/components/com_mtree/mtree.tools.php
I did not set that same code in mtree.tools.php file.
what does he mean.
thanks Jimmy
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
helper.php line 17
Or component/module/plugin/template where is defined other class smile. Not the class from Kunena. Better would be to rename class smile to Ksmile to get rid off these issues.
Please Log in or Create an account to join the conversation.
It's not my mod_kunenalatest as my name is mod_kunenalatest version 1.0.45 is the latest. If you have mod_kunena_latest it's some different project/different developer -> different support.Fatal error: Call to undefined function ctype_digit() in /srv/www/htdocs/j/modules/mod_kunena_latest/mod_kunena_latest.php on line 224
You can grab my module and take support from here
Please Log in or Create an account to join the conversation.
By forcing the default template in the above require_once statement:
...it pretty much ensures class collisions because kunena itself is reading the smile class from the admin-designated template.
The only time it's an issue is when the module is included on kunena pages AND when the admin has selected a template other than 'default'. I have a custom template so it's issue.
Fortunately, I bumped into this on my development machine and avoided this on production because I don't include mod_kunenalatest on the actual kunena pages. I use it as a teaser on other pages.
While developing locally I happened to set the module to 'All' pages and the board wouldn't render because mod_kunenalatest is trying to load the smile class from the 'default' template, then kunena tries to load smile.class.php from another template. The require_once fails to filter out the 2 class definitions because the 2 paths to smile.class.php are different (1 per template).
Hope this helps,
K
Please Log in or Create an account to join the conversation.
You can see, as it's not found in templates default_ex, default_(red|green|gray), it's called from default template. And therefore it is working with kunena distributed templates.
It's tested and it's working on Kunena pages with all kunena distributed templates.
HaND, Jerry
P.S. If somebody has problems with this, please give me account or list of all installed components/modules/plugins/templates. I am almost sure, that other package using own smile class / other kunena package using require/include - that's the reason.
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
- troutspinner
- Offline
- New Member
- Posts: 1
- Thank you received: 0
Any and all help is appreciated. Site is www.paanglers.com if you need to look at it.
Thanks,
troutspinner
Please Log in or Create an account to join the conversation.
it hits this line in kunena.php, which is listed above:
require_once (KUNENA_ABSTMPLTPATH .DS. 'smile.class.php');
...it loads the custom smile.class.php from my custom template.
Then it gets to the explicitly declared hard-coded reference to the default template's smile.class.php and blows up with:
Fatal error: Cannot redeclare class smile in /Applications/MAMP/svn/www/components/com_kunena/template/default/smile.class.php on line 31
I get the fact that the distributed templates don't blow up - but none of them have a custom smile.class.php. There's quite a bit of display layer code in smile.class.php so I'm guessing it's possible I'm not the only one with a custom file in my template.
I also did a sitewide 'find | xargs grep' to look for all references to smile.class.php and it appears that the only references I have are
1. some config references in /administrator
2. the conditional you mention in ./components/com_kunena/kunena.php
3. ./modules/mod_kunenalatest/helper.php
4. commented header code in ./components/com_kunena/template/default/smile.class.php
and my custom smile.class.php
If there is a smile.class.php in a custom or modified template, line 17 in helper.php is going to have an issue.
Are you saying that the module is only supposed to work with distributed templates? I would think you could add your own conditional and basically make sure you're doing a require_once on the same smile.class.php file that kunena.php loads.
Please Log in or Create an account to join the conversation.
Never tried custom templates. Don't know that there are peoples which modifies smile.class.php....it loads the custom smile.class.php from my custom template.
OK, I will sync loading smile.class.php with Kunena. Will be resolved in next version.
Please Log in or Create an account to join the conversation.