Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length

JoomlaTune Support Forum    JComments component    Integration with third-party extensions    Topic: Jcomments 2.3.0 crash while used in third party component
Pages: [1]   Go Down
  Print  
Author Topic: Jcomments 2.3.0 crash while used in third party component  (Read 3183 times)
0 Members and 1 Guest are viewing this topic.
Vinoth
Newbie
*

Karma: 0
Offline Offline

Posts: 5


« on: September 19, 2012, 17:14:43 »

Hi Support,

  At first, I would like to thank you for your great extension.

  I am from All Video Share. We have clients successfully using JComments with our component. But, recently I came over a strange issue with one of my client. I found that his webpage get crashed while JComments plugin is enabled in All Video Share component. At first I thought the issue is with All Video Share. Then I digged into our code and have commented the following line which executes JComments,
Code:
echo JComments::showComments($video->id, 'com_allvideoshare', $video->title);

  So, I just keep the standard jcomments.php in the page. But still the page get crashed. If removed the code completely, then the page looks fine... Hope you have solution. I would be grateful to give an excellent review if I get the solution...

  Following is the page which I talk about,
http://www.theiamoira.net/index.php?option=com_allvideoshare&view=video&slg=srtr&orderby=latest&Itemid=753&lang=it

Code:
$comments = JPATH_SITE . DS .'components' . DS . 'com_jcomments' . DS . 'jcomments.php';
 
if(file_exists($comments) && $config[0]->comments_type == 'jcomments') {
    require_once($comments);
    //echo JComments::showComments($video->id, 'com_allvideoshare', $video->title);
}

Thanks
Logged
ABTOP
Sr. Member
****

Karma: 17
Offline Offline

Posts: 399



WWW
« Reply #1 on: September 19, 2012, 18:18:41 »

  Following is the page which I talk about,
...
There is nothing in between the head tags in that page. I can't imagine JComments could fail so drastically as to prevent any header output.

Also, what do you make of this error:
"NetworkError: 500 Internal Server Error - http://www.theiamoira.net/index.php?option=com_allvideoshare&view=video&slg=srtr&orderby=latest&Itemid=753&lang=it"
?
Logged

No personal messages unless you are a friend or you have money for me.
Vinoth
Newbie
*

Karma: 0
Offline Offline

Posts: 5


« Reply #2 on: September 19, 2012, 19:43:06 »

Quote
Also, what do you make of this error:
"NetworkError: 500 Internal Server Error - http://www.theiamoira.net/index.php?option=com_allvideoshare&view=video&slg=srtr&orderby=latest&Itemid=753&lang=it"
?

Sorry, I can't get you. Do you mean that you get 500 Error while accessing the page ?

If I commented the following code, then the page will load fine ...Do you need me to show it ?

Code:
require_once($comments);
Logged
Vinoth
Newbie
*

Karma: 0
Offline Offline

Posts: 5


« Reply #3 on: September 19, 2012, 19:48:43 »

I have commented the JComments plugin code and now the page loads good. Kindly check http://www.theiamoira.net/index.php?option=com_allvideoshare&view=video&slg=srtr&orderby=latest&Itemid=753&lang=it
Logged
ABTOP
Sr. Member
****

Karma: 17
Offline Offline

Posts: 399



WWW
« Reply #4 on: September 19, 2012, 21:21:12 »

Sorry, I can't get you. Do you mean that you get 500 Error while accessing the page ?
I sure did.
I have commented the JComments plugin code and now the page loads good. Kindly check http://www.theiamoira.net/index.php?option=com_allvideoshare&view=video&slg=srtr&orderby=latest&Itemid=753&lang=it
Yes, it loads okey now.
Hm...

Well, give me the file name, with its path, and the line number which you comment out.
Logged

No personal messages unless you are a friend or you have money for me.
Vinoth
Newbie
*

Karma: 0
Offline Offline

Posts: 5


« Reply #5 on: September 19, 2012, 22:47:19 »

Does it mean that you're going to inspect the issue directly in All Video Share component ?

Then the file path would be components / com_allvideoshare / tmpl / views / video / tmpl / default_comments.php

I have commented the following lines,

Code:
//require_once($comments);
//echo JComments::showComments($video->id, 'com_allvideoshare', $video->title);

Note : I have also attached the file in this post...

* default_comments.php (1.03 KB - downloaded 97 times.)
Logged
ABTOP
Sr. Member
****

Karma: 17
Offline Offline

Posts: 399



WWW
« Reply #6 on: September 20, 2012, 13:05:18 »

Does it mean that you're going to inspect the issue directly in All Video Share component ?
It means I'll look into it.  Grin
Then the file path would be components / com_allvideoshare / tmpl / views / video / tmpl / default_comments.php

I have commented the following lines,

Code:
//require_once($comments);
//echo JComments::showComments($video->id, 'com_allvideoshare', $video->title);
You are effectively disabling All Video Share plugin for JComments. Of course it will not crash then.

OK, I downloaded the current version of AVS - v.1.2.3 - and the JComments plugin for it from here
Installed, set up a test video from YouTube. Everything works like a charm.
See the sceenshot.

Now, the All Video Share plugin for JComments is not from Smart. it's "third party", namely by MrVinoth, which I guess is you.
I have no reason to believe that there is anything wrong with this plugin. It works just fine for me, as I already said.
Since there seems to be some cases of successful usage and some cases of failure, I would guess the problem is not with JComments per se. Or with All Video Share plugin, for that matter. The problem is most likely with Joomla or Apache in each particular case.

I think you should troubleshoot the site - both the Joomla installation and the server. I'd help you but you know way more about PHP and Joomla than I do.


* AllVideoShareSnap1.jpg (44.46 KB, 777x825 - viewed 254 times.)
Logged

No personal messages unless you are a friend or you have money for me.
Vinoth
Newbie
*

Karma: 0
Offline Offline

Posts: 5


« Reply #7 on: September 20, 2012, 18:12:17 »

Thanks for your valuable time. Let me troubleshoot the site ...
Logged
Pages: [1]   Go Up
  Print  
JoomlaTune Support Forum    JComments component    Integration with third-party extensions    Topic: Jcomments 2.3.0 crash while used in third party component
 
Jump to: