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 PHP error in Recent Discussions page - Undefined variable: objCatInfo

More
16 years 9 months ago - 16 years 9 months ago #22640 by kmilos
Tried validating my forum page (recent discussions as default) and got some errors about unmatching open/close tags, but it boiled down to this:
Code:
<table class = "fb_blocktable<br /> <b>Notice</b>: Undefined variable: objCatInfo in <b>/var/www/fedora/components/com_kunena/template/default_ex/flat.php</b> on line <b>100</b><br /> <br /> <b>Notice</b>: Trying to get property of non-object in <b>/var/www/fedora/components/com_kunena/template/default_ex/flat.php</b> on line <b>100</b><br /> " id = "fb_flattable" border = "0" cellspacing = "0" cellpadding = "0" width="100%">

Any ideas?

Running K1.5.3 on J1.5.12 w/ CB1.2.1.
Last edit: 16 years 9 months ago by kmilos. Reason: Subject change.

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

More
16 years 9 months ago #22646 by sozzled
Many people put a lot of faith, trust, hope, obsessive angst into code validators. The question really boils down to this: does the site work?

Code validators, in my opinion, are relevant when you're writing your own code and you want to satisfy your professional ego that you've checked things thoroughly. You didn't write Kunena and you're not responsible for any "non valid" code that might be included in it (so I wouldn't worry about it), but the developers might be interested in what you have discovered and I'm sure they'll thank you for your contribution when they're able to. :)

As a matter of interest, what code validator are you using?

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

More
16 years 9 months ago #22686 by kmilos
The fact that I used a validator (validator.w3.org) is really irrelevant in this case, as the PHP error is real and there in the page source. Maybe I shouldn't have mentioned the validator at all, as it just made me notice the error.

The site of course works and the error was gone once I turned error reporting off, which doesn't mean it shouldn't be fixed.

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

More
16 years 9 months ago - 16 years 9 months ago #22689 by sozzled
kmilos wrote:

The fact that I used a validator (validator.w3.org) is really irrelevant in this case, as the PHP error is real and there in the page source.

The W3C validator - I suspected that's what you might have meant - merely confirms whether the XHTML code conforms to the WWWC's standards. I cannot conclude that there's a PHP error, sorry. It can be asserted, though, that there's a PHP design flaw that has generated "non valid" (but not invalid) XHTML. Of somewhat abstruse, academic interest, I fear. :)
Last edit: 16 years 9 months ago by sozzled.

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

More
16 years 9 months ago #22693 by kmilos
@sozzled
Once again, let's leave the validator out of the picture, as the error shows up in page source, validator or not. I now regret I brought it up in the first place, so can you please drop the validation and focus on the real issue here, or let somebody who is interested do so instead of obfuscating the real issue?

If you turn error reporting on, the error shows up in page source, it is not "academic". Just because it doesn't show when you turn error reporting off, it doesn't mean it's not there, does it?

IMHO, reporting errors like these to Kunena devs should not be discouraged.

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

More
16 years 9 months ago - 16 years 9 months ago #22694 by sozzled
I agree with you. Let's set aside the red herring about "code validation" and focus on the error messages themselves - removing the HTML leaves us with:

Notice: Undefined variable: objCatInfo in /var/www/fedora/components/com_kunena/template/default_ex/flat.php on line 100

Notice: Trying to get property of non-object in /var/www/fedora/components/com_kunena/template/default_ex/flat.php on line 100

You get these errors when you go to your "Recent Discussions" is that correct? I think a similar question was asked elsewhere today (see My Discussions does not display ) ... at least I hope this is helpful and I'm sorry it's taken so long to get the answer you were looking for. :blush:
Last edit: 16 years 9 months ago by sozzled.

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

Time to create page: 0.221 seconds