[[~[[*id]]]]?sid=[[!+sid]]
http://test.loc/index.php?id=GoodNews Unsubscribe page id ? sid=security key for each subscriber
<a href="http://test.loc:/index.php?id=GoodNews Unsubscribe page id ? sid=security key for each subscriber"...>Unsubscribe</a>
This question has been answered by septon. See the first response.
http://test.loc/index.php?id=GoodNews Unsubscribe page id?sid=security
http://test.loc/index.php?id=GoodNews Unsubscribe page id&sid=security
Hi!
Unfortunately, GoodNews UnSubscription does not work on my website. This does not work on the direct link either for the page (for example, GoodNews Unsubscribe)
GoodNews generates normal Format string with security key for each [[~[[*id]]]]?sid=[[!+sid]]:
http://test.loc/index.php?id=GoodNews Unsubscribe page id?sid=security key for each subscriber, but nothing happens. User is not removed from the User's list.
The same thing happens with the link in the template.
<a href="http://test.loc:/index.php?id=GoodNews Unsubscribe page id?sid=security key for each subscriber" ...="">Unsubscribe</a>
Reset to start page (configured in MODX for error page)
-- Apache 2.4.35
-- PHP 5.6.38
-- MODX Revolution 2.6.5-pl (traditional)
-- MySQL 5.6.43-cll-lve
-- There are no errors on the log
You can check it at the link http://signboard.by/index.php?id=23 for Subscription and UnSubscription
I can not understand what my mistake. Please help.
This does not work on the direct link either for the page (for example, GoodNews Unsubscribe)
GoodNews generates normal Format string with security key for each [[~[[*id]]]]?sid=[[!+sid]]:
http://test.loc/index.php?id=GoodNews Unsubscribe page id?sid=security key for each subscriber, but nothing happens. User is not removed from the User's list.
The same thing happens with the link in the template.
<a href="http://test.loc:/index.php?id=GoodNews Unsubscribe page id?sid=security key for each subscriber" ...="">Unsubscribe</a>
Reset to start page (configured in MODX for error page)
This is not a normal URL:
http://test.loc/index.php?id=GoodNews Unsubscribe page id?sid=security
There should only be one question mark to indicate the query string. It should look like this:
http://test.loc/index.php?id=GoodNews Unsubscribe page id&sid=security
GoodNews may require that you have Friendly URLS on and working. Did you create an .htaccess file with the FURLs part uncommented. And do you have the Friendly URLs System Setting turned on?
http://test.loc/index.php?id=GoodNews Unsubscribe page id&sid=security
http://test.loc/index.php?id=GoodNews Unsubscribe page id?sid=security
GoodNews may require that you have Friendly URLS on and working. Did you create an .htaccess file with the FURLs part uncommented. And do you have the Friendly URLs System Setting turned on?This really fixed the problem. And since I did not use FURL in the test page, of course I did not configure .htaccess.
GoodNews doesn't require to use friendly URLs so that can't be the problem. I think something is wrong in his MODX setup.I also think that the problems in my settings this particular MODX.
# The Friendly URLs part RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule ^(.*)$ index.php?q=$1 [L,QSA]
GoodNews may require that you have Friendly URLS on and working.[s]here is a dependency table (Tested obviously false too for purification of conscience)
I think something is wrong in his MODX setup.[ed. note: septon last edited this post 5 years, 1 month ago.]
It is easier to perceive error than to find truth...Early on in your beginning, I drew your attention to incorrect handling POST requests for sending an unsubscribe:
Goethe
http://test.loc/index.php?id=GoodNews Unsubscribe page id ? sid=security key for each subscriber
GoodNews doesn't require to use friendly URLs so that can't be the problem. I think something is wrong in his MODX setup.But this is not the case, and I'm not the first day of use MODx.
<form action="[[~[[*id]]]]?sid=[[!+sid]]" method="post">
<div class="main"> <h2>One-click unsubscription</h2> [[!+error.message:notempty=` <p class="errorMsg">[[!+error.message]]</p> `]] <p> To immediately unsubscribe from our newsletter service please click the <strong>Unsubscribe now</strong> button below. </p> <form id="profileform" class="gon-form" action="[[~[[*id]]]]?sid=[[!+sid]]" method="post"> <p> <button type="submit" role="button" name="goodnews-unsubscribe-btn" value="Unsubscribe" class="button green">Unsubscribe now</button> </p> </form> </div>
[[~[[*id]]]]&sid=[[!+sid]]
action="[[~[[*id]]]]?sid=[[!+sid]]"
action="[[~[[*id]]&sid=`[[!+sid]]` ]]"