×

Notice

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

TOPIC: [Solved] Link to the comments don't work

[Solved] Link to the comments don't work 1 year 7 months ago #34006

  • Myster Dog
  • Myster Dog's Avatar Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 7
  • Thank you received: 0
Hello.

Well, first of all, thank you for this great component !
I've been searching a long time for this kind of component, and CComment perfectly matches my expectations !
I only have one issue, concerning the link to the comment (mysite.com/#!/ccomment-comment=xxx) sent in the notification email, or the one in the comments management page (admin).
When I click on the link, I get the "loader.gif", but the comments don't load.

Thanks in advance for your help

Joomla version : 3.5.1
CComment version : 5.3.5

Link to the comments don't work 1 year 7 months ago #34037

  • Daniel Dimitrov
  • Daniel Dimitrov's Avatar
  • Offline
  • Administrator
  • Administrator
  • Posts: 9618
  • Karma: 154
  • Thank you received: 1081
If you see the loading gif and nothing changes, then the response of the ajax request is broken. Either a plugin or something else is getting in the way of it and destroying our json. You can inspect the response with your browser tools yourself. If you give us a link to your page we might be able to help you further.

Regards,
Daniel

Link to the comments don't work 1 year 7 months ago #34068

  • Myster Dog
  • Myster Dog's Avatar Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 7
  • Thank you received: 0
Hello Daniel.

Thank you for your answer, and sorry for this long time before answering you...
I have never used Firebug to debug Json and I can't find any tutorial to analyse the Json response...
Can you please give me some advice to do this ?
Or... if you want to have a look at the problem, you can follow this link to see the bug in action :
s330101700.onlinehome.fr/coopt_v2/test-c...ccomment-comment=211

Thanks in advance
David

Link to the comments don't work 1 year 7 months ago #34086

  • Myster Dog
  • Myster Dog's Avatar Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 7
  • Thank you received: 0
Hi Daniel.

I'm totally lost.
I'm trying to analyze the situation using Firebug, but without help, I won't be able so fix this issue.
In Firebug's "network" tab, the "XHR" tab is empty (0 request).
Where do I have to search for the component that breaks the request ?

David

Link to the comments don't work 1 year 7 months ago #34101

  • Daniel Dimitrov
  • Daniel Dimitrov's Avatar
  • Offline
  • Administrator
  • Administrator
  • Posts: 9618
  • Karma: 154
  • Thank you received: 1081
Hey David,
I don't see the comment system on the page that you've shared.

On the network tab you should see a request made to index.php?option=com_comment. This is what you are looking for.

Regards,
Daniel

Link to the comments don't work 1 year 7 months ago #34103

  • Myster Dog
  • Myster Dog's Avatar Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 7
  • Thank you received: 0
Hello Daniel.

Thanks for your answer.
It's weird. I've just tried to go on the page, and I get the loader.gif image and no comment.
In the network tab, I have this item :
GET ccomment-ccomment=211

In the header sub tab :
The request is :
Accept	
text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
Accept-Encoding	
gzip, deflate
Accept-Language	
fr,fr-FR;q=0.8,en-US;q=0.5,en;q=0.3
Cache-Control	
max-age=0
Connection	
keep-alive
Cookie	
cbrvs=cbrv1_c53b08f22cf9587f7db2dfee0fbd2ca3_12Lb8DkyoMTeTjOL; bb224476a094b8c62fa5138b3b803c9e=de3e873735b01254940da4a809eb60a0
; cbtabsCB=cbtabnav25; cbtabsconfig=cbtabnavconfig7; cea297eae98d612db393beff156c959f=66fe5516a26c89
c2ed306a41a8b463b3
Host	
s330101700.onlinehome.fr
User-Agent	
Mozilla/5.0 (Windows NT 10.0; WOW64; rv:46.0) Gecko/20100101 Firefox/46.0

and the response :
Cache-Control	
no-store, no-cache, must-revalidate, post-check=0, pre-check=0
Connection	
keep-alive
Content-Encoding	
gzip
Content-Type	
text/html; charset=utf-8
Date	
Tue, 03 May 2016 13:04:56 GMT
Expires	
Wed, 17 Aug 2005 00:00:00 GMT
Keep-Alive	
timeout=15
Last-Modified	
Tue, 03 May 2016 13:04:56 GMT
Pragma	
no-cache
Server	
Apache
Transfer-Encoding	
chunked
X-Content-Powered-By	
K2 v2.7.0 (by JoomlaWorks)
X-Logged-In	
False
X-Powered-By	
PHP/5.5.34

For me it's like chinese. I don't know what to search. Can you please try again to check if the link works ?

Link to the comments don't work 1 year 7 months ago #34107

  • Myster Dog
  • Myster Dog's Avatar Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 7
  • Thank you received: 0
OK, I can see the request you're talking about if I go on this page :
s330101700.onlinehome.fr/coopt_v2/test-ccomment
And the response is :
{"info":{"page":0,"countParents":"1","total":"1"},"models":[{"id":211,"parentid":-1,"level":0,"name"
:"L\u00e9a N.","comment":"test","commentModerator":false,"avatar":"https:\/\/secure.gravatar.com\/avatar
\/4304324c02a1f1ef27ebe15db592ccfa?default=http%3A%2F%2Fs330101700.onlinehome.fr%2Fcoopt_v2%2Fmedia%2Fcom_comment
%2Fimages%2Fnoavatar.png&s=64","date":"Il y a 6 heures","votes":0,"published":1,"class":"ccomment-candidat
 ccomment-odd ccomment-comment  ccomment-own"}]}
(and the comments are displayed)

But on this page :
s330101700.onlinehome.fr/coopt_v2/test-c...ccomment-comment=211

There is no request !

So in fact , the global page with all the comments work, but not the page for a specific comment.
(which means that a member who receives an email to inform that a reply has been posted to his/her comment will not be able to see the reply !

Link to the comments don't work 1 year 7 months ago #34108

  • Myster Dog
  • Myster Dog's Avatar Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 7
  • Thank you received: 0
Hey Daniel.

I have found the cause of the malfunction :cheer:
There's a conflict with a JS file in my Joomla template.
The file name is jquery.isotope.min.js.
If I remove this file, the comments are displayed.
Do you know if there are known conflicts between your component and jQuery ?
Do you have any suggestion to fix this issue ?
Thanks in advance.

BR
David

Link to the comments don't work 1 year 7 months ago #34112

  • Daniel Dimitrov
  • Daniel Dimitrov's Avatar
  • Offline
  • Administrator
  • Administrator
  • Posts: 9618
  • Karma: 154
  • Thank you received: 1081
No, we don't have conflicts with jquery. But depending on what that isotope script is doing it might screw our stuff.

Link to the comments don't work 1 year 7 months ago #34113

  • Daniel Dimitrov
  • Daniel Dimitrov's Avatar
  • Offline
  • Administrator
  • Administrator
  • Posts: 9618
  • Karma: 154
  • Thank you received: 1081
I remember seeing an error in mootools on that page, so maybe when you remove the script that doesn't cause the error and our script can execute.

Regards,
Daniel

Link to the comments don't work 1 year 7 months ago #34115

  • Myster Dog
  • Myster Dog's Avatar Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 7
  • Thank you received: 0
Yes, I've seen that mootools error, which disappears when I remove the jquery.isotope.min.js file.
Thank you for your answer, and for confirming that there's no conflict with jQuery.
I have contacted the website which has provided me the template to get some infos on the JS file.
Anyway, now, it's not your problem anymore :lol: I will try to fix it myself.

Thanks again.

Regards
David
  • Page:
  • 1
Time to create page: 0.162 seconds