×

Notice

The forum is in read only mode.
Welcome, Guest
Username: Password: Remember me
  • Page:
  • 1
  • 2

TOPIC: Getting an erro message on comment submit

Getting an erro message on comment submit 14 years 10 months ago #5388

  • Damjan
  • Damjan's Avatar
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 6
  • Thank you received: 0
Hi, I'm getting the same problem, only difference is that it doesn't work even if I turn off the autopublish option. And I've tried the solution you mentioned in post 4762 but it still isn't working..
It will work if I turn ajax off, but I would like to use ajax.. Is there any solution for me?
I'm using Joomla 1.5.11, and the latest joomlacomment component (4.0 beta)

I can't give you backend access because it is still on my localhost..

Getting an erro message on comment submit 14 years 10 months ago #5408

  • Daniel Dimitrov
  • Daniel Dimitrov's Avatar
  • Offline
  • Administrator
  • Administrator
  • Posts: 9618
  • Karma: 155
  • Thank you received: 1081
Damjan i can not help you if I don't have access to your installation. I thought that the solution of the problem is what I wrote in post 4762 - if it is not working for you, then I will have to investigate more.

Can you turn on the autopublish feature and check if the comments are posted then?

Getting an erro message on comment submit 14 years 10 months ago #5411

  • Damjan
  • Damjan's Avatar
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 6
  • Thank you received: 0
I've tried with autopublish on and off, and same thing happens every time.
Ajax turned on: I push submit and it loads and window pops up saying that error has occured and text below appears in message box
<?xml version="1.0" standalone="yes"?><post><after>7</after><published>1</published><noerror>1</noerror><debug></debug><id>8</id><body><![CDATA[
<ul id='post8' style='margin-left:0px;'>
    <li class='post'>
        <a name='josc8'></a>
        <div class='posthead'>
            <span class='postinfo'>
 
				<span class='postnotify0' title='nemoj me obavje&scaron;tavati o novom postu'></span>
            	|<span class='postusertype'><span class='administrator'>SAdministrator</span></span>
            	|<span class='postdate'>2009-07-22 23:32:12</span>
            </span>
            <span class='username'>
                admin
            </span>
            &nbsp;-&nbsp;<span class='posttitle'>neki naslov</span>
 
        </div>
        <div class='postcontent'>
            <div class='comment_content'>evo i mene i nekog naslova</div>
        </div>
 
        <div class='postfooter'>
            <ul class='voting'><li><a id='yes8' class='voting_yes' href='javascript:JOSC_voting(8,&#34;yes&#34;)'>0</a></li><li><a id='no8' class='voting_no' href='javascript:JOSC_voting(8,&#34;no&#34;)'>0</a></li></ul>
                <span>
                    <a href='javascript:JOSC_reply(8)'>Odgovor</a> | <a href = 'javascript:JOSC_quote(8)'>Citat</a> | <a href='javascript:JOSC_editComment(8)'>Uredi</a> | <a href='javascript:JOSC_deleteComment(8)'>Bri&scaron;i</a>
                </span>    
 
        </div>     
 
        <div class=&#34;josc_clear&#34;></div>
    </li>
</ul>
]]></body></post>

After that, if I reload the page the comment is normaly shown.. I will try to put everything online tommorow so that you could check it out :)

Getting an erro message on comment submit 14 years 10 months ago #5413

  • Daniel Dimitrov
  • Daniel Dimitrov's Avatar
  • Offline
  • Administrator
  • Administrator
  • Posts: 9618
  • Karma: 155
  • Thank you received: 1081
Do you have something in the error log? Perhaps some php error is taking place, but you don't see it.

Getting an erro message on comment submit 14 years 10 months ago #5576

  • Daniel Dimitrov
  • Daniel Dimitrov's Avatar
  • Offline
  • Administrator
  • Administrator
  • Posts: 9618
  • Karma: 155
  • Thank you received: 1081
Hey there Damjan,
I've just checked your site. Did you make changes to your langauge file? Cause after switching to english the comment system is working again.

Please if you make changes to the language file make sure to save this file in utf8.

Getting an erro message on comment submit 14 years 10 months ago #5577

  • Damjan
  • Damjan's Avatar
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 6
  • Thank you received: 0
Only thing I've changed is the green.css file, and I've only added some styling to the warning that unregistered users can't post comments.. Other than that I didn't change anything..

Getting an erro message on comment submit 14 years 10 months ago #5579

  • Damjan
  • Damjan's Avatar
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 6
  • Thank you received: 0
I've tried to use Serbian language and it works.. Difference between Serbian and Croatian language is that characters č, ć, š, ž and đ are written just like that in the Serbian php file, and in Croatian php file they are written with ascii code, for example, š equals š and so on.. I am going to change all characters written in that way and it will probably work..
I hope that there will be no problem with displaying those characters in any browser..

Thanks for your help, I'll write my review on extensions.joomla.org as soon as I can :laugh:

Getting an erro message on comment submit 14 years 10 months ago #5583

  • Daniel Dimitrov
  • Daniel Dimitrov's Avatar
  • Offline
  • Administrator
  • Administrator
  • Posts: 9618
  • Karma: 155
  • Thank you received: 1081
Hey Damjan, wasn't you using the hungarian language file?
It is working on my system that is why I don't understand why it is not working for you.

Getting an erro message on comment submit 14 years 10 months ago #5591

  • Damjan
  • Damjan's Avatar
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 6
  • Thank you received: 0
No, I was using Croatian language file

Getting an erro message on comment submit 14 years 10 months ago #5592

  • Daniel Dimitrov
  • Daniel Dimitrov's Avatar
  • Offline
  • Administrator
  • Administrator
  • Posts: 9618
  • Karma: 155
  • Thank you received: 1081
Hrvatski - was it?
Yep, hrvatski is not working for me too. I don't know who has translated the file, but he has done something wrong. I will try to find out what is wrong there.

Getting an erro message on comment submit 14 years 10 months ago #5594

  • Daniel Dimitrov
  • Daniel Dimitrov's Avatar
  • Offline
  • Administrator
  • Administrator
  • Posts: 9618
  • Karma: 155
  • Thank you received: 1081
Replace the hrvatski file with the one in the zip archive.
The file was not saved in utf-8.
And also I found something interesting - if the php file ends with
?>
 
 

2 empty lines after the ?> sign, then we get an xml error message. 1 empty line nad 0 emtpy lines doesn't generate a problem.

Also if you want oyu can update the hrvatski file :) hrvatski.zip

Getting an erro message on comment submit 14 years 10 months ago #5595

  • Damjan
  • Damjan's Avatar
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 6
  • Thank you received: 0
I've noticed that ?> tag had two empty lines before it, and I thought that it could be a problem, but it didn't work, I never saw the two empty lines after the tag :D
And I opened the hrvatski.php file with notepad and saved it in utf-8 format but it still didn't work..
But id doesn't matter, I've used your hrvatski.php file and it worked like a charm :D
I've added some extra lines that are in the english.php and not in hrvatski.php and translated them. It's the lines after the /*new in 4.0 beta1*/ comment.. If you can use it, it's in the attachment hrvatski-20090728.zip

Getting an erro message on comment submit 14 years 10 months ago #5597

  • Daniel Dimitrov
  • Daniel Dimitrov's Avatar
  • Offline
  • Administrator
  • Administrator
  • Posts: 9618
  • Karma: 155
  • Thank you received: 1081
Thank you very much for the update - I've added it for the next release :)
  • Page:
  • 1
  • 2
Time to create page: 0.149 seconds