Elxis CMS Forum

Support => General => Topic started by: armpouniotis on May 12, 2010, 11:14:37

Title: Problem with Comments
Post by: armpouniotis on May 12, 2010, 11:14:37
hi all,

every time I am writing a comment in a content item, there is pop up window, which say "You should write a comment!"

Why is this, and how can i fix it ?

thank you in advance
Title: Re: Problem with Comments
Post by: datahell on May 12, 2010, 12:47:07
This happens if the comment message is empty. You are talking about comments to content items or to eblog posts?
Title: Re: Problem with Comments
Post by: armpouniotis on May 12, 2010, 18:40:08
Hi,

i am talking to content items.

The comment message is not empty. i am writing something into it !
Title: Re: Problem with Comments
Post by: datahell on May 12, 2010, 18:55:07
It depends on what you write. Comments are being filtered out from various "bad" characters, html is being removed, etc. If the final message is empty then you get this warning. I need to see your site and try to post a comment to be able to answer you why this is happening.
Title: Re: Problem with Comments
Post by: armpouniotis on May 12, 2010, 19:35:51
ok,

go here: www.sinidisis.gr

Title: Re: Problem with Comments
Post by: datahell on May 12, 2010, 20:28:34
Elxis generates an error on file content.php line 2195 with message:
preg_replace() [function.preg-replace]: Unknown modifier '+'

Open components/com_content/content.php and delete line 2195:

$commessage = preg_replace("#[[:alpha:]]+://[^<>[:space:]]+[[:alnum:]/]#","<a href=\"\\0\">\\0</a>", $commessage);

If you want send me username/password to your site FTP to debug it and fix it instead of removing this line.
Title: Re: Problem with Comments
Post by: armpouniotis on May 12, 2010, 21:01:33
Sure, check your messages...
Title: Re: Problem with Comments
Post by: datahell on May 12, 2010, 21:07:38
Fixed.
The problem was that on your site the line above was not correct. If it was as I have written it would work.
I fixed it and now works fine. This problem has been solved on Elxis 2009.2.
Title: Re: Problem with Comments
Post by: armpouniotis on May 12, 2010, 21:54:54
Thank you very much for your help !

something else... can I use the akocomment component - module - bot on elxis 2009 ?