×

Notice

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

TOPIC: Problem with sending comment

Problem with sending comment 13 years 2 months ago #13923

  • Greg
  • Greg's Avatar Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 6
  • Thank you received: 0
Hi, when i click sent the following error occurs and nothing happens
Event thread: click
Uncaught exception: TypeError: Cannot convert 'form.temail' to object
Error thrown at line 38, column 1 in JOSC_editPost(id, parentid) in http://riversideband.pl/en/components/com_comment/joscomment/templates/magazineJoomla/js/custom.js:
    if(!form.temail.disabled)
called from line 1, column 0 in (event):
    JOSC_editPost(-1,-1)


I'm using the latest Compojoom and magazineJoomla template

there is also information that
Uncaught TypeError: Cannot read property 'value' of null custom.js:5
Uncaught TypeError: Cannot read property 'disabled' of undefined custom.js:38

Problem with sending comment 13 years 2 months ago #13925

  • Daniel Dimitrov
  • Daniel Dimitrov's Avatar
  • Away
  • Administrator
  • Administrator
  • Posts: 9618
  • Karma: 155
  • Thank you received: 1081
Hey Greg,
Could you plese give me a link to the site? Is it working with the modern template?

Problem with sending comment 13 years 2 months ago #13927

  • Greg
  • Greg's Avatar Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 6
  • Thank you received: 0
riversideband.pl/en/news/539-reality-dre...ox-preorder#JOSC_TOP

Yes the JQmodern seams to be working, but i need template with no title and the magazineJoomla looks best with my theme

Problem with sending comment 13 years 2 months ago #13928

  • Daniel Dimitrov
  • Daniel Dimitrov's Avatar
  • Away
  • Administrator
  • Administrator
  • Posts: 9618
  • Karma: 155
  • Thank you received: 1081

Problem with sending comment 13 years 2 months ago #13929

  • Greg
  • Greg's Avatar Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 6
  • Thank you received: 0
well it's working on chrome but, in opera this error is showing
Event thread: click
Uncaught exception: ReferenceError: Security violation
Error thrown at line 153, column 1 in JOSC_ajaxSend(data, onReadyStateChange) in http://www.riversideband.pl/en/components/com_comment/joscomment/jscripts/client.js:
    JOSC_http.send(data);
called from line 447, column 2 in JOSC_editPost(id, parentid) in http://www.riversideband.pl/en/components/com_comment/joscomment/jscripts/client.js:
    JOSC_ajaxSend(param.encode('tcomment', form.tcomment.value), JOSC_editPostResponse);
called from line 1, column 0 in (event):
    JOSC_editPost(-1,-1)

Problem with sending comment 13 years 2 months ago #13930

  • Daniel Dimitrov
  • Daniel Dimitrov's Avatar
  • Away
  • Administrator
  • Administrator
  • Posts: 9618
  • Karma: 155
  • Thank you received: 1081
Well, when I try to open the url in the browser it says:
404 not found. So, you have to find out why your server doesn't serve the file to the browser.
Daniel

Problem with sending comment 13 years 2 months ago #13931

  • Greg
  • Greg's Avatar Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 6
  • Thank you received: 0
Ok, let's start over.
You have gave the bad link, the file is in
http://riversideband.pl/en/components/com_comment/joscomment/templates/magazineJoomla/js/custom.js

Not
http://riversideband.pl/en/news/components/com_comment/joscomment/templates/magazineJoomla/js/custom.js

Problem with sending comment 13 years 2 months ago #13932

  • Daniel Dimitrov
  • Daniel Dimitrov's Avatar
  • Away
  • Administrator
  • Administrator
  • Posts: 9618
  • Karma: 155
  • Thank you received: 1081
For some reason the component is creating this bad link.
Edit your template index.html file and find the library tag -> between this tag paste the correct url.

Once you load the file, then you will most probably have some js errors, because you've removed the fields in the form, but I'll tell you what to do once the correct file is included.

Daniel

Problem with sending comment 13 years 2 months ago #13933

  • Greg
  • Greg's Avatar Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 6
  • Thank you received: 0
Ok, i've replace the path with full path to the file and now i have:
Event thread: click
Uncaught exception: TypeError: Cannot convert 'form.temail' to object
Error thrown at line 38, column 1 in JOSC_editPost(id, parentid) in http://riversideband.pl/en/components/com_comment/joscomment/templates/magazineJoomla/js/custom.js:
    if(!form.temail.disabled)
called from line 1, column 0 in (event):
    JOSC_editPost(-1,-1)

and
Uncaught TypeError: Cannot read property 'value' of null custom.js:5
Uncaught TypeError: Cannot read property 'disabled' of undefined custom.js:38

Problem with sending comment 13 years 2 months ago #13934

  • Daniel Dimitrov
  • Daniel Dimitrov's Avatar
  • Away
  • Administrator
  • Administrator
  • Posts: 9618
  • Karma: 155
  • Thank you received: 1081
Cool, now we will need to change the content of this custom.js file (the story of the magazine template - it was a template that was developed for magazine.joomla.org - and I forgot to delete it from the package... so it is tightly specialized for their website... and that is why when you change the settings in the backend, they are not reflected...)

Anyway, go to the custom.js file and remove this code
if($('temail').value == '' && !$('temail').disabled) {
$('temail').value = 'enter your e-mail address...';
}
if($('twebsite').value == '') {
$('twebsite').value = 'enter your site URL...';
} 

then go to the joscedit function and remove this code
if(!form.temail.disabled) {
if (!validate(form.temail.value, form)) {
return 0;
}
}
if($('twebsite').value == '' || $('twebsite').value == 'enter your site URL...' ) {
$('twebsite').value = '';
}
if ( document.getElementsByName('tnotify')[0] && document.getElementsByName('temail')[0] ) {
if ( form.tnotify.selectedIndex && form.temail.value == '') {
alert(COM_COMMENT_FORMVALIDATE_EMAIL);
return 0;
}
} 

save, reaload the page (make clear to clear all browser caches) and let me know if it works. If it doesn't work would you mind providing me with frp access??? I would fix it for you then.
Cheers,
Daniel

Problem with sending comment 13 years 2 months ago #13937

  • Daniel Dimitrov
  • Daniel Dimitrov's Avatar
  • Away
  • Administrator
  • Administrator
  • Posts: 9618
  • Karma: 155
  • Thank you received: 1081
I couldn't edit the configuration file trough ftp. It works now, but only when you access your website with www..... infront of the url.
You need to edit your configuration and change the live site value from
'your site' to ''

After that it should work without any problems

Problem with sending comment 13 years 2 months ago #13942

  • Greg
  • Greg's Avatar Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 6
  • Thank you received: 0
Hi, i can't change live site cause it crashing rest of my page.
But i will set .htacces to always add www.

In this template recapcha is set to clean, but is showing red...

and there is an "Uncaught SyntaxError: Unexpected end of input" in custom.js

Edit: I found the bug, and fixed it so it should be ok now. Thank you for your help. I hope that you fix this errors with new version and keep the template ;)

Best Regards

Problem with sending comment 13 years 2 months ago #13956

  • Daniel Dimitrov
  • Daniel Dimitrov's Avatar
  • Away
  • Administrator
  • Administrator
  • Posts: 9618
  • Karma: 155
  • Thank you received: 1081
cheers mate!
Daniel
  • Page:
  • 1
Time to create page: 0.182 seconds