- Posts: 1
COMMUNITY FORUM
Error Message with Disqus
- lylipton
- Topic Author
- Offline
- New Member
Less
More
15 years 3 months ago #25790
by lylipton
Error Message with Disqus was created by lylipton
I've just installed Disqus and this is the error message I get when it is enabled: Parse error: syntax error, unexpected T_OBJECT_OPERATOR in /home/hvblu3/public_html/plugins/content/jw_disqus.php on line 187.
I am a novice and really want to fix this myself (without asking my grandson to help me). Any suggestions? Do you need more information? I am on Joomla 1.5.9, but I also see something that says legacy: 1.0.
Thanks in advance,
Lynn
Here is the section of the file to which it refers:
$output->includes = "
{$plg_copyrights_start}
<script type=\"text/javascript\">
//<![CDATA[
window.addEvent('domready', function(){
// Smooth Scroll
new SmoothScroll({
duration: 500
});
// Disqus Counter
var links = document.getElementsByTagName('a');
var query = '?';
for(var i = 0; i < links.length; i++) {
if(links.href.indexOf('#disqus_thread') >= 0) query += 'url' + i + '=' + encodeURIComponent(links.href) + '&';
}
var disqusScript = document.createElement('script');
disqusScript.setAttribute('charset','utf-8');
disqusScript.setAttribute('type','text/javascript');
disqusScript.setAttribute('src','disqus.com/forums/{$disqusSubDomain}/get_num_replies.js' + query + '');
var b = document.getElementsByTagName('body')[0];
b.appendChild(disqusScript);
});
// Disqus CSS
var disqus_iframe_css = \"".JWHelper::getTemplatePath($plg_name,'css/disqus.css')->http."\";
//]]>
</script>
<style type=\"text/css\" media=\"all\">
@import \"".JWHelper::getTemplatePath($plg_name,'css/template.css')->http."\";
</style>
{$plg_copyrights_end}
";
I am a novice and really want to fix this myself (without asking my grandson to help me). Any suggestions? Do you need more information? I am on Joomla 1.5.9, but I also see something that says legacy: 1.0.
Thanks in advance,
Lynn
Here is the section of the file to which it refers:
$output->includes = "
{$plg_copyrights_start}
<script type=\"text/javascript\">
//<![CDATA[
window.addEvent('domready', function(){
// Smooth Scroll
new SmoothScroll({
duration: 500
});
// Disqus Counter
var links = document.getElementsByTagName('a');
var query = '?';
for(var i = 0; i < links.length; i++) {
if(links.href.indexOf('#disqus_thread') >= 0) query += 'url' + i + '=' + encodeURIComponent(links.href) + '&';
}
var disqusScript = document.createElement('script');
disqusScript.setAttribute('charset','utf-8');
disqusScript.setAttribute('type','text/javascript');
disqusScript.setAttribute('src','disqus.com/forums/{$disqusSubDomain}/get_num_replies.js' + query + '');
var b = document.getElementsByTagName('body')[0];
b.appendChild(disqusScript);
});
// Disqus CSS
var disqus_iframe_css = \"".JWHelper::getTemplatePath($plg_name,'css/disqus.css')->http."\";
//]]>
</script>
<style type=\"text/css\" media=\"all\">
@import \"".JWHelper::getTemplatePath($plg_name,'css/template.css')->http."\";
</style>
{$plg_copyrights_end}
";
Please Log in or Create an account to join the conversation.
- mgladdish
- Offline
- New Member
Less
More
- Posts: 3
15 years 3 months ago #25791
by mgladdish
Replied by mgladdish on topic Re: Error Message with Disqus
I've just installed the plugin on version 1.5.13 and get exactly the same problem:
Parse error: syntax error, unexpected T_OBJECT_OPERATOR in /xxxx/public_html/plugins/content/jw_disqus.php on line 187
It's a shame, as the plugin looks as though it would be a good one...
Parse error: syntax error, unexpected T_OBJECT_OPERATOR in /xxxx/public_html/plugins/content/jw_disqus.php on line 187
It's a shame, as the plugin looks as though it would be a good one...
Please Log in or Create an account to join the conversation.
- mgladdish
- Offline
- New Member
Less
More
- Posts: 3
15 years 3 months ago #25792
by mgladdish
Replied by mgladdish on topic Re: Error Message with Disqus
Ah-ha, I've found the problem.
I was running PHP version 4, whereas this plugin requires PHP 5. I upgraded my host to PHP 5, and this plugin now works as advertised.
I suggest the documentation be amended to show this plugin's technical requirements.
I was running PHP version 4, whereas this plugin requires PHP 5. I upgraded my host to PHP 5, and this plugin now works as advertised.
I suggest the documentation be amended to show this plugin's technical requirements.
Please Log in or Create an account to join the conversation.
- panvspan
- Offline
- New Member
Less
More
- Posts: 1
15 years 3 months ago #25793
by panvspan
Replied by panvspan on topic Re: Error Message with Disqus
well it didnt solve my issue
im running PHP 5.2.9 and still showing 0 comments when there is 2
beatchapel.net
im running PHP 5.2.9 and still showing 0 comments when there is 2
beatchapel.net
Please Log in or Create an account to join the conversation.
- JoomlaWorks
- Online
- Admin
Less
More
- Posts: 6218
15 years 3 months ago #25794
by JoomlaWorks
Fotis / JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)
Replied by JoomlaWorks on topic Re: Error Message with Disqus
I'll make sure the syntax is PHP4 friendly in 2.2. It's no biggie.
Regarding the comments counter, it will only work properly when the article "title alias" is not changed and the state of SEF or no SEF URLs in Joomla! is fixed (e.g. SEF is on or off). If you change any of these 2, the comments counter will break, cause it uses the page's actual URL each time to fetch the count.
Regarding the comments counter, it will only work properly when the article "title alias" is not changed and the state of SEF or no SEF URLs in Joomla! is fixed (e.g. SEF is on or off). If you change any of these 2, the comments counter will break, cause it uses the page's actual URL each time to fetch the count.
Fotis / JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)
Please Log in or Create an account to join the conversation.
- JetJagger
- Offline
- New Member
Less
More
- Posts: 1
15 years 3 weeks ago #25795
by JetJagger
Replied by JetJagger on topic Re: Error Message with Disqus
I'm getting the same error. I'm running Joomla 1.5.14 with PHP Version 4.4.9
My error message is
If I turn-off the plugin, site works. When on, that error message is all I see.
Thanks for the help.
-Jet-
-
My error message is
Parse error: syntax error, unexpected T_OBJECT_OPERATOR in /home/XXXX/public_html/plugins/content/jw_disqus.php on line 187
If I turn-off the plugin, site works. When on, that error message is all I see.
Thanks for the help.
-Jet-
-
Please Log in or Create an account to join the conversation.
- JoomlaWorks
- Online
- Admin
Less
More
- Posts: 6218
15 years 3 weeks ago #25796
by JoomlaWorks
Fotis / JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)
Replied by JoomlaWorks on topic Re: Error Message with Disqus
I'll be updating the Disqus plugin to v2.2 this week fixing the PHP4 incompatibility issue. v2.2 will also add support for K2.
Fotis / JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)
Please Log in or Create an account to join the conversation.
- grahamgscott
- Offline
- New Member
Less
More
- Posts: 1
15 years 2 weeks ago #25797
by grahamgscott
Replied by grahamgscott on topic Re: Error Message with Disqus
Just checking on the status of this update... I am getting the same message and eager to implement disqus on my site.
Thanks,
Scott Graham
Thanks,
Scott Graham
Please Log in or Create an account to join the conversation.
- thirdstage
- Offline
- New Member
Less
More
- Posts: 1
15 years 2 weeks ago #25798
by thirdstage
Replied by thirdstage on topic Re: Error Message with Disqus
I hope the update will be out soon; I'm waiting for the update before I launch my site.
Please Log in or Create an account to join the conversation.
- James Durrant
- Offline
- New Member
Less
More
- Posts: 1
15 years 1 day ago #25799
by James Durrant
Hi Fotis,
I just installed Disqus 2.2 but can not see parameters for K2.
Is there an update for K2 on the way that will connect Disqus?
Cheers,
James
Replied by James Durrant on topic Re: Error Message with Disqus
I'll be updating the Disqus plugin to v2.2 this week fixing the PHP4 incompatibility issue. v2.2 will also add support for K2.
Hi Fotis,
I just installed Disqus 2.2 but can not see parameters for K2.
Is there an update for K2 on the way that will connect Disqus?
Cheers,
James
Please Log in or Create an account to join the conversation.