Forum tab saying no posts.

13 years 4 months ago #146972 by krileon
Replied by krileon on topic Re:Forum tab saying no posts.

The default table prefix in Kunena 1.5.x is jos_fb not jos_kunena. Is there a way to change the table prefix that CB is looking at for Kunena?

You need to edit the Forum integration plugin and ensure Kunena is selected. It's possible you're missing the following file which is what determines if CB should use the new forum structure or not.

administrator/components/com_kunena/api.php


Kyle (Krileon)
Community Builder Team Member
Before posting on forums: Read FAQ thoroughly + Read our Documentation + Search the forums
CB links: Documentation - Localization - CB Quickstart - CB Paid Subscriptions - Add-Ons - Forge
--
If you are a Professional, Developer, or CB Paid Subscriptions subscriber and have a support issue please always post in your respective support forums for best results!
--
If I've missed your support post with a delay of 3 days or greater and are a Professional, Developer, or CBSubs subscriber please send me a private message with your thread and will reply when possible!
--
Please note I am available Monday - Friday from 8:00 AM CST to 4:00 PM CST. I am away on weekends (Saturday and Sunday) and if I've missed your post on or before a weekend after business hours please wait for the next following business day (Monday) and will get to your issue as soon as possible, thank you.
--
My role here is to provide guidance and assistance. I cannot provide custom code for each custom requirement. Please do not inquire me about custom development.
The topic has been locked.
13 years 4 months ago #146975 by robknc
Replied by robknc on topic Re:Forum tab saying no posts.
Solved. The problem is that there is a bug in the way that Community Builder detects the version of Kunena (detection is based on the presence of a file, which is now also included in the latest builds of Kunena 1.5.xx as well as 1.6)


Two solutions:
1. Delete the administrator/components/com_kunena/api.php file (not recommended, who knows what else will depend on that file later)

or

2. Edit components/com_profiler/plugin/user/plug_cbsimpleboardtab/cb.simpleboardtab.model.php and change the below lines (just search for "Kunena 1.6", it's line 775 in my version):


Before
[code:1]
// Kunena 1.6:
$forumParams->prefix = 'kunena';
[/code:1]


After
[code:1]
// Kunena 1.6:
$forumParams->prefix = 'fb';
[/code:1]
The topic has been locked.
13 years 4 months ago #146979 by robknc
Replied by robknc on topic Re:Forum tab saying no posts.
krileon wrote:

You need to edit the Forum integration plugin and ensure Kunena is selected.


Yep as stated in my original reply:
CB's default forum fields are enabled and the forum tab is manually set to Kunena.

It's possible you're missing the following file which is what determines if CB should use the new forum structure or not.

administrator/components/com_kunena/api.php



I will assume you know this entire thread is about Kunena 1.5 and not 1.6. According to the current code, if that file is present it thinks that it's 1.6. That file is present in 1.5 too, so the routine to detect the version is bugged. I've never loaded 1.6 (php version is too low on this server).

Looking for a specific file is a poor method of version detection -- would be better to look for a db value or text within a known file to determine version info.


Existing detection routine
[code:1]
if ( file_exists( $path . '/administrator/components/com_kunena/api.php' ) ) {
// Kunena 1.6:
$forumParams->prefix = 'kunena';
} else {
// Kunena 1.0-1.5:
$forumParams->prefix = 'fb';
}
[/code:1]

Post edited by: robknc, at: 2010/11/24 19:31
The topic has been locked.
13 years 4 months ago #146983 by robknc
Replied by robknc on topic Re:Forum tab saying no posts.
One of my techs stated that they tried to load 1.6 on this originally but it failed, so I opened up the api.php file and it does in fact have a date/version from a 1.6 build of Kunena.

This means that Kunena 1.6's installer is bugged or at the very least does a poor job at cleaning up a failed installation. The 1.6 installer dumps the api.php file and creates folders even if the PHP version is too low to install (and the install is aborted).

#1 on my fix list below is the better option it looks like :blush: (delete administrator/components/com_kunena/api.php). Would still suggest a different method of detecting Kunena version though :)



Thanks for the assistance.
Rob

Post edited by: robknc, at: 2010/11/24 19:31
The topic has been locked.
13 years 4 months ago #146987 by krileon
Replied by krileon on topic Re:Forum tab saying no posts.

The problem is that there is a bug in the way that Community Builder detects the version of Kunena

Wrong, this is not a bug of the plugin; it is simply behaving as intended.

Kunena 1.5

Kunena 1.5.x should NOT have the API file; it is un-used by Kunena 1.5.x and will only exist with failed Kunena 1.6.x installs.

This means that Kunena 1.6's installer is bugged or at the very least does a poor job at cleaning up a failed installation. The 1.6 installer dumps the api.php file and creates folders even if the PHP version is too low to install (and the install is aborted).

This is not Kunenas fault; your PHP failed, not the installation. When PHP has a fatal error then any subsequent PHP fails; so no clean up code could possibly fire. Agreed, there should be a check to test PHP versin, but they likely have what version is required stated on their site and in the install package.


Kyle (Krileon)
Community Builder Team Member
Before posting on forums: Read FAQ thoroughly + Read our Documentation + Search the forums
CB links: Documentation - Localization - CB Quickstart - CB Paid Subscriptions - Add-Ons - Forge
--
If you are a Professional, Developer, or CB Paid Subscriptions subscriber and have a support issue please always post in your respective support forums for best results!
--
If I've missed your support post with a delay of 3 days or greater and are a Professional, Developer, or CBSubs subscriber please send me a private message with your thread and will reply when possible!
--
Please note I am available Monday - Friday from 8:00 AM CST to 4:00 PM CST. I am away on weekends (Saturday and Sunday) and if I've missed your post on or before a weekend after business hours please wait for the next following business day (Monday) and will get to your issue as soon as possible, thank you.
--
My role here is to provide guidance and assistance. I cannot provide custom code for each custom requirement. Please do not inquire me about custom development.
The topic has been locked.
13 years 4 months ago #146995 by robknc
Replied by robknc on topic Re:Forum tab saying no posts.
krileon wrote:

Wrong, this is not a bug of the plugin; it is simply behaving as intended.


Then the intended behavior poorly implemented and it could use some work or revisions to make the version detection more accurate. I understand that frequently people come here and blame CB code for everything under the sun, but I feel that this is a valid issue that could be addressed easily by CB, regardless of who's at fault for the issue (user/cb/kunena). Finger pointing is useless, it would be better not to even reply. On a side note, this is the only reason I haven't subscribed to docs here, every post I read has the same finger pointing bs.

This is not Kunenas fault; your PHP failed, not the installation. When PHP has a fatal error then any subsequent PHP fails; so no clean up code could possibly fire. Agreed, there should be a check to test PHP versin, but they likely have what version is required stated on their site and in the install package.


In a perfect world users read the docs and match up versions prior to installing this stuff, in real life I bet the percentage is significantly less than half. The above is a perfect example of finger pointing -- it's not our fault, it's not Kunena's, it must be PHP's! Give me a break.

This issue simply wouldn't exist with a little forward thinking on Kunena's part regarding the cleanup of failed installs, or if CB used a less SLACK way of version detection...


Rob
The topic has been locked.
Moderators: beatnantkrileon
Time to create page: 0.193 seconds

Facebook Twitter LinkedIn