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

Login with username, password and session length

JoomlaTune Support Forum    JComments component    Bug-reports    Topic: Unsubscribing from comment notifications
Pages: [1]   Go Down
  Print  
Author Topic: Unsubscribing from comment notifications  (Read 2206 times)
0 Members and 1 Guest are viewing this topic.
cristitm
Newbie
*

Karma: 0
Offline Offline

Posts: 1


Email
« on: May 27, 2012, 05:33:59 »

Hello and thank you for this great component!
If a user wants to be notified about follow up comments and then tries to unsubscribe by clicking the "unsubscribe" link that he receives into his e-mail, nothing happens. The "unsubscribe" link is actually not a link, so is not clickable.
Any help will be much appreciated.
Cristi
Logged
iglinatv
Newbie
*

Karma: 0
Offline Offline

Posts: 4


Email
« Reply #1 on: May 28, 2012, 03:33:12 »

Hi
I have a similar problem (look at the topic below yours) - I get an error 500 when click "Unsubscribe".
As far as I understood, this is something to do with the URL forming - there is some mistake in it. Probably it lacks the words "view=html" but I'm not sure.
Let's wait for the experts - their opinion is extremely needed.
Logged
smart
Administrator
Hero Member
*****

Karma: 163
Offline Offline

Gender: Male
Posts: 2161



WWW
« Reply #2 on: May 30, 2012, 16:58:35 »

JComments and Joomla version? Do you use any 3rd party SEF extension? In case of 500 error - could you check your server's error.log and find  there some information about error?
Logged

If you use JComments, please post a rating and a review at the Joomla! Extensions Directory
iglinatv
Newbie
*

Karma: 0
Offline Offline

Posts: 4


Email
« Reply #3 on: June 01, 2012, 15:09:01 »

Hi,
Thanks for your reply.
What I see in error.log file:

PHP Parse error:  syntax error, unexpected T_STRING in /.../components/com_jcomments/jcomments.class.php on line 1741

which is strange because line 1741 contains only "{" - please find the code piece below.

If it matters, I use a standard SEF, included in Joomla.

Code:
1740 public static function getLink($type = 'ajax', $object_id = 0, $object_group = '', $lang = '')
1741 {
1742 global $iso_client_lang;
1743
1744 $app = JCommentsFactory::getApplication();
1745 $config = JCommentsFactory::getConfig();
1746
1747 switch($type)
1748 {
1749 case 'rss':
1750 if (JCOMMENTS_JVERSION == '1.0') {
1751 return $app->getCfg('live_site') . '/index2.php?option=com_jcomments&task=rss&object_id='.$object_id.'&object_group='.$object_group.'&no_html=1';
1752 } else {
1753 $link = 'index.php?option=com_jcomments&task=rss&object_id='.$object_id.'&object_group='.$object_group.'&format=raw';
1754 if ($app->isAdmin()) {
1755 $link = JURI::root(true).'/'.$link;
1756 } else {
1757 $link = JRoute::_($link);
1758 }
1759 return $link;
1760 }
1761 break;
1762
1763 case 'noavatar':
1764 return $app->getCfg('live_site') . '/components/com_jcomments/images/no_avatar.png';
1765 break;
1766
1767 case 'smiles':
1768 $smilesPath = str_replace(DS, '/', $config->get('smiles_path', '/components/com_jcomments/images/smiles/'));
1769 $smilesPath = $smilesPath[strlen($smilesPath)-1] == '/' ? substr($smilesPath, 0, strlen($smilesPath)-1) : $smilesPath;
1770 return $app->getCfg('live_site') . $smilesPath; // '/components/com_jcomments/images/smiles';
1771 break;
1772
1773 case 'captcha':
1774 mt_srand((double)microtime()*1000000);
1775 $random = mt_rand(10000, 99999);
1776
1777 if (JCOMMENTS_JVERSION == '1.0') {
1778 return $app->getCfg('live_site') . '/index2.php?option=com_jcomments&task=captcha&no_html=1&ac=' . $random;
1779 } else if (JCOMMENTS_JVERSION == '1.7') {
1780 return JRoute::_('index.php?option=com_jcomments&task=captcha&format=raw&ac='.$random);
1781 } else {
1782 return JURI::root(true) . '/index.php?option=com_jcomments&task=captcha&tmpl=component&ac=' . $random;
1783 }
1784 break;
1785
1786 case 'ajax':
1787 $config = JCommentsFactory::getConfig();
1788
1789 // support alternate language files
1790 $lsfx = ($config->get('lsfx') != '') ? ('&lsfx='.$config->get('lsfx')) : '';
1791
1792 // support additional param for multilingual sites
1793 if (!empty($lang)) {
1794 $lang = '&lang='.$lang;
1795 } else {
1796 $lang = ($app->getCfg('multilingual_support') == 1) ? ('&lang='.$iso_client_lang) : '';
1797 }
1798
1799 if (JCOMMENTS_JVERSION == '1.0') {
1800 $_Itemid = '&Itemid=' . ((!empty($_REQUEST['Itemid'])) ? $_REQUEST['Itemid'] : 1);
1801 $link = $app->getCfg('live_site') . '/index2.php?option=com_jcomments&no_html=1' . $lang . $lsfx . $_Itemid;
1802 } else if (JCOMMENTS_JVERSION == '1.5') {
1803 $link = JURI::root(true) . '/index.php?option=com_jcomments&tmpl=component'.$lang.$lsfx;
1804 } else {
1805 $link = JRoute::_('index.php?option=com_jcomments&tmpl=component'.$lang.$lsfx);
1806 }
1807 return JCommentsSecurity::fixAJAX($link);
1808 break;
1809
1810 case 'ajax-backend':
1811 if (JCOMMENTS_JVERSION == '1.0') {
1812 $link = $app->getCfg('live_site') . '/administrator/index3.php?option=com_jcomments&no_html=1';
1813 } else {
1814 $link = $app->getCfg('live_site') . '/administrator/index.php?option=com_jcomments&tmpl=component&'.JCommentsSecurity::getToken().'=1';
1815 }
1816 return JCommentsSecurity::fixAJAX($link);
1817 break;
1818
1819 default:
1820 return '';
1821 break;
1822 }
1823 }


Logged
smart
Administrator
Hero Member
*****

Karma: 163
Offline Offline

Gender: Male
Posts: 2161



WWW
« Reply #4 on: June 01, 2012, 19:19:50 »

Hi,
Thanks for your reply.
What I see in error.log file:

PHP Parse error:  syntax error, unexpected T_STRING in /.../components/com_jcomments/jcomments.class.php on line 1741
Original file jcomments.class.php has no syntax errors. It's looks like you've changed some code. I suggest you to reinstall component.
Logged

If you use JComments, please post a rating and a review at the Joomla! Extensions Directory
iglinatv
Newbie
*

Karma: 0
Offline Offline

Posts: 4


Email
« Reply #5 on: June 04, 2012, 18:22:35 »

Hi,
I already reinstalled it several times and it is still not working. Now errors are not recorded in the error.log file (no new records in it). But 500 error keeps showing.
What should I do? Angry
Logged
smart
Administrator
Hero Member
*****

Karma: 163
Offline Offline

Gender: Male
Posts: 2161



WWW
« Reply #6 on: June 05, 2012, 14:52:35 »

If error 500 appears then something must be logged in error.log...
Logged

If you use JComments, please post a rating and a review at the Joomla! Extensions Directory
iglinatv
Newbie
*

Karma: 0
Offline Offline

Posts: 4


Email
« Reply #7 on: June 08, 2012, 00:27:02 »

Just checked again - no new records in error.log but the error persists.

Could you please check the look of the unsubcribe URL? My link looks like the following:

administrator/index.php?option=com_jcomments&task=unsubscribe&hash=081cae69bde469dffb40e66f66c62471&format=raw

Probably, there is some mistake in it.

Thanks!
Logged
smart
Administrator
Hero Member
*****

Karma: 163
Offline Offline

Gender: Male
Posts: 2161



WWW
« Reply #8 on: June 08, 2012, 13:07:38 »

It looks like correct link... Could you check your PHP.INI settings - may be display_errors set to off? Or try to set more detailed error reporting's level in Joomla configuration. It is very strange - you got 500 error and empty error.log.


BTW, I see you've email on yandex.ru - if you want you can use russian in our communication.
Logged

If you use JComments, please post a rating and a review at the Joomla! Extensions Directory
Pages: [1]   Go Up
  Print  
JoomlaTune Support Forum    JComments component    Bug-reports    Topic: Unsubscribing from comment notifications
 
Jump to: