Joomla Comment


joomlacommentJoomla Comment Fixed and Solutions

Joomla CMS is a great component and we all have benefited from that, and I’ve found a great component such as Joomla Comment, however there’are some errors.

Hence I would like to take the initiative to contribute back to the Joomla community. I took the time to write this, and please take some time to read this and you may find the SOLUTIONS! I hope my effort can help you on this. If you cannot see the code below, just right click and save as.. since they’re images.


Don’t worry about the coding, I’ve a modified version and you can just download and install at your own risk. It works for me.

I came to this Joomla component because Jom Comment is charging at $20 to $30, yet both of them have almost the features. I would say this component is the best Joomla Comment component taking price into considerations!.

Here’s the solutions for Joomla Comment, I’ve summarize these three problems and the fix. It’s just as easy as Step 1, 2 and 3.

I have several websites which are run on Joomla, and I try to install it with Joomla Comment:

1) Joomla 1.0.10 – no problem occurs

2) Joomla 1.0.11 and Joomla 1.0.12 – these problems arise!

In fact the problems only occur when you install it with Joomla 1.0.11 or Joomla 1.0.12, however you do not worry about that. Here’s the fix and solutions that I found on net, and try to summarize.

Joomla Comment Problem 1:

Warning: Invalid argument supplied for foreach() in /home/mysite/public_html/test/

components/com_comment/joscomment/properties.php on line 160

Solutions / Fix 1:

Open up joscomment/properties.php

Comment the line 160, fixed! If you do not understand this, I’ve photos here with detailed. Check it out here.

Here’s how we comment the line:

Joomla Comment Problem 2:

Backend for Joomla administrator setting and comment management, including publish, unpublish, edit comment is not working. Cannot publish and unpublish, or edit any comment and setting.

Solutions / Fix 2:

a. Open up admin.comment.php

Insert this line before line 27


b. Open up admin.comment.html.php

At line 100

Replace with the code below:

echo “<td align=’center’><a href=\”index2.php?option=” . $option . “&task=edit&cid[]=” . $row->id . “\”>$row->name</a></td>”;



<td align ‘center’><a href=’javascript: void(0);’ onClick=’return listItemTask(“cb<?php echo $i;?>”,”edit”)’>

<?php echo $row->name; ?></a></td>


Scroll down and find the line 120 ( it might be line 121 or 122 if you have done the step above)

Replace the line below:

<td width=”10%” align=”center”><a href=”javascript:return listItemTask(‘cb<?php echo $i;


<td width=”10%” align=”center”><a href=”javascript: void(0);” onClick=”return listItemTask(‘cb<?php echo $i;

Solved problem 2

Joomla Comment Problem 3:

comment has been queued for admin’s approval even you say yes to Unregister user may comment

Solutions / Fix 3:
Problem solved in Step 2, since it’s backend administration bug in Joomla Comment 2.4 Final

Hesitate to do it, ok i’ll just share the file that i edited. Please find the attachment below. Download and install at your own risk.I do not guarantee it will work for you.

At this moment, I hope that you’re happy with the fix and enjoy the Joomla Comment now!

Lastly, start using it.

Best regards,


P/S: Modification of the code at your own risk.

If you couldn’t solve the problem yourself, I’ll post the modified file later on. Please be patient.

Attached Files:
Joomla Comment Download


  1. Thanks a lot.

    I was having terrible troubles with bugs so I unistalled then installed your version that I downloaded from this page.

    Works perfectly!!!

  2. Watch out for smart quotes in the code samples if you are cutting and pasting. Thanks for sharing this solution.

  3. Thanks, for the patch 🙂

    Btw, how did you get those “Category Tags” on the bottom of your page? Is it an extension?

    Let me know plz 🙂


  4. Hi, thank you very much for your solutions, you lastly save the component to be throwed away 🙂
    I’ve another problem, maybe you can solve this aswell:
    I enabled Captcha but it shows a field with text “Security image” instead of the captcha image.
    I’m sure my webhost is configured properly because another component installed called Jambook shows captha image correctly.

    Any idea?

    Thanks in advance

  5. Hi Haan,

    Thanks for the pointers. Done points 1 and 2 and point 1 is now fixed, but I still have some issues in point 2 (in administration I can’t publish/delete entries).

    Keep up the good work



  6. hallo
    first awall thank you very much for you bug help
    i have another little problem
    i won t show the ip from the people who wrote a post.

    and in the settings
    IP Adress
    Visible: x Nein Ja
    Partial: Nein x Ja

    is this a new bug ??? or is somewhere my fault

  7. Thank you soo very much!!!

    Works like a charm! You are very cool for taking your time and sharing with us!!

    Greatly appreciated!!

    Take care!

  8. Hi there

    just wanted to thank you

    am a complete newbie to joomla but had to build a tribute site (at very short notice- first time with joomla) to a great man ( sid irons , ruislip uk ) who was killed in a hit and run

    Was overwelmed by the choices (and the cost of some of the third party modules)

    Found yours via google and now friends can leave thier own tributes.

    Worked straight out of the proverbial box.

    if i can repay you please let me know.

    cheers daryl mushtaq

  9. to comment #9, the security image is not displayed because in your php.ini, the line to enable GD2 image processing


    is commented out.

    Remove the semicolon in the beginning of that line, that will solve your problem.


  10. I too am missing the security image, and thought i’ve searched the entire site, I can’t find the php.ini file, or any instance of “extension=php_gd2.dll” when doing a site wide search for code or text in Dreamweaver.

    Pray tell, where is this mysterious php.ini file?

    Thanks in advance….

  11. Missing security image (CAPTCHA), I checked GD library is enabled, is this php.ini file something related to the server settings or is it a component/joomla file?

  12. I am also missing the captcha image and I could not find php.ini. I would be very thakfull if you could tell us where it is.


Please enter your comment!
Please enter your name here