SMFHacks.com

Newsletter Pro => Support => Topic started by: lemontwist on February 09, 2010, 07:10:41 am

Title: Links don't work correctly
Post by: lemontwist on February 09, 2010, 07:10:41 am
I sent out newsletters yesterday for the first time and woke up to several people telling me none of the links in my newsletter work.

For instance the one I had for www.talkfaux.com when clicked went to http://talkfaux.com/forum/newstracking.php?a=l&c=17&i=271&l=91

wth?
Title: Re: Links don't work correctly
Post by: SMFHacks on February 09, 2010, 09:16:52 am
Appears to be a permission issue on newstracking.php chmod that file to 755
Title: Re: Links don't work correctly
Post by: lemontwist on February 09, 2010, 01:46:18 pm
I have no idea what that means.
Title: Re: Links don't work correctly
Post by: SMFHacks on February 09, 2010, 01:52:01 pm
You have to change the file permissions on the newstracking.php in your the root of your forum directory. Make it writable, readable and exectuable you should be able to this either via ftp or the control panel with your webhosting account.
Title: Re: Links don't work correctly
Post by: yol on January 10, 2014, 08:05:54 pm
Hello,

I have got same problem. newstracking2.php is 755 and reinstalled package but links are not working correctly.

opening white blank page (http 500 internal error) when I click links in mail

links looks like this;
http://www.domain.com/newstracking2.php?a=l&c=26&i=141818&l=69

Regards,
Sedat
Title: Re: Links don't work correctly
Post by: SMFHacks on January 10, 2014, 08:15:58 pm
500 internal error is a permission chmod the file to 644 or double check you forum's error log and apache error log if you have access it.
Title: Re: Links don't work correctly
Post by: yol on January 11, 2014, 12:19:54 pm
in error log file;

PHP Parse error:  syntax error, unexpected T_STRING in /home/domain/public_html/newstracking2.php on line 536

what can I do?
Title: Re: Links don't work correctly
Post by: SMFHacks on January 11, 2014, 01:06:43 pm
Attach your newstracking2.php and I will take a look at the issue.
Title: Re: Links don't work correctly
Post by: yol on January 11, 2014, 01:29:48 pm
Thank you :)

But I cant see attached files?
Title: Re: Links don't work correctly
Post by: SMFHacks on January 11, 2014, 01:32:19 pm
Put your license information under http://www.smfhacks.com/index.php?action=license to gain access
Title: Re: Links don't work correctly
Post by: SMFHacks on January 11, 2014, 01:35:06 pm
I am not seeing any errors in that file. You can try removing the code around line 536 and see if it helps
Code: [Select]
    $shareUrl = urlencode($boardurl . '/newstracking2.php?a=share&c=' . $c. '&i=' . $i);
    $campaignRow['message'] = str_replace("{FACEBOOK}","<a href=\"http://www.facebook.com/sharer.php?u=" . $shareUrl . "\"><img src=\"" . $boardurl . "/images/facebook.png\" alt=\"" . $txt['newspro_txt_share_facebook'] . "\" border=\"0\"/></a>",$campaignRow['message']);
    $campaignRow['message'] = str_replace("{TWITTER}","<a href=\"http://twitter.com/share?text=Currently%20reading%20" . $shareUrl . "\"><img src=\"" . $boardurl . "/images/twitter.png\" alt=\"" . $txt['newspro_txt_share_twitter'] . "\" border=\"0\"/></a>",$campaignRow['message']);
    $campaignRow['message'] = str_replace("{LINKEDIN}","<a href=\"http://www.linkedin.com/shareArticle?mini=true&url=" . $shareUrl . "\"><img src=\"" . $boardurl . "/images/linkedin.png\" alt=\"" . $txt['newspro_txt_share_linkedin'] . "\" border=\"0\"/></a>",$campaignRow['message']);
    $campaignRow['message'] = str_replace("{GOOGLE}","<a href=\"https://plus.google.com/share?url=" . $shareUrl . "\"><img src=\"". $boardurl . "/images/google-plus.png\" alt=\"" . $txt['newspro_txt_share_googleplus'] . "\" border=\"0\"/></a>",$campaignRow['message']);
   
    $campaignRow['message'] = str_replace("{FORWARDFRIEND}",'<a href="' . $boardurl . '/newstracking2.php?a=forward&c=' . $c. '&i=' . $i . '">' . $txt['newspro_txt_forwardtoafriend'] . '</a>',$campaignRow['message']);
    $campaignRow['message'] = str_replace("{VIEWWEBPAGE}",'<a href="' . $boardurl . '/newstracking2.php?a=webpage&c=' . $c. '&i=' . $i . '">' . $txt['newspro_txt_viewasawebpage']. '</a>', $campaignRow['message']);
   
Title: Re: Links don't work correctly
Post by: yol on January 11, 2014, 04:08:34 pm
Doesnt work...

How can I cancel link tracking option? I want to bypass recoding the links...
Title: Re: Links don't work correctly
Post by: SMFHacks on January 11, 2014, 10:12:29 pm
Same error in the log?" Same line number?

No easy way since it also does view tracking and unsubscribe links.
Title: Re: Links don't work correctly
Post by: yol on April 02, 2014, 07:38:34 pm
Hello again friend,

I found some error logs about this happen in server. Can you understand anything about the problem? :)


[Thu Apr 03 03:19:46 2014] [error] [client 66] SoftException in Application.cpp:249: File "/home/domain/public_html/newstracking2.php" is writeable by group
[Thu Apr 03 03:19:46 2014] [error] [client 66] Premature end of script headers: newstracking2.php

[Thu Apr 03 03:20:13 2014] [error] [client 176] SoftException in Application.cpp:249: File "/home/domain/public_html/newstracking2.php" is writeable by group, referer: http://www.domain.com/newstracking2.php?a=l&c=30&i=2&l=111

[Thu Apr 03 03:20:13 2014] [error] [client 176] Premature end of script headers: newstracking2.php, referer: http://www.domain.com/newstracking2.php?a=l&c=30&i=2&l=111
Title: Re: Links don't work correctly
Post by: SMFHacks on April 02, 2014, 08:04:07 pm
Just looks like some kind of permission error from what it is saying.