Jump to:

10990 Posts in 2727 Topics by 1818 members

All other Modules

SilverStripe Forums » All other Modules » Can't load saved newsletter (error loading page)

Discuss all other Modules here.

Moderators: martimiz, Sean, biapar, Willr, Ingo, swaiba, simon_w

Page: 1 2 3 4
Go to End
Author Topic: 3775 Views
  • yurigoul
    Avatar
    Community Member
    202 Posts

    Re: Can't load saved newsletter (error loading page) Link to this post

    Thank you for the kind words. Could you test the unsubscribe function for me? To see if it works? With me there used to be a redirect error.

  • TF-35Lightning
    Avatar
    Community Member
    137 Posts

    Re: Can't load saved newsletter (error loading page) Link to this post

    yurigoul, I added the $UnsubscribeLink to my template and successfully unsubscribed.

    The thing that concerns me is that I can simply unsubscribe any email address that I desire (if I guess the correct email) via the link

    http://localhost/silverstripe/silverstripe-v2.4.0/unsubscribe/index/myemail@gmail.com/1

    etc.

    I presume it is up to us to come up with some kind of unique identifier to check an id and an email address against each other to help secure the unsubscription, or is that built into it somewhere or?

  • yurigoul
    Avatar
    Community Member
    202 Posts

    Re: Can't load saved newsletter (error loading page) Link to this post

    That sounds good!!!!

    AFAIK there is no security option there, that is what one of the maintainers told me.

    Am not a very good php ninja that knows how to go about adding a better security option (sending a mail you are unsubscribed). I see it more or less as a very lightweight newsletter add-on and if more functionality is needed, I would simply install phplist or something.

    But on the other hand you could probably add password functionality easily with extra fields in the subscribe form (password and retype password), add the password + email to the user database and activate the 'only logged in members can see this page' to the unsubscribe page in the back-end. 'Send me my password'-functionality is build into silverstripe (though I have never tested it).

  • davepolyester
    Avatar
    Community Member
    47 Posts

    Re: Can't load saved newsletter (error loading page) Link to this post

    Hey everyone,

    I solved my issues with the saved newsletters not loading in SS 2.3.7 (using Newsletter V0.4) by doing the opposite of one of the suggestions in this topic... sort of! All I needed to do was change SS_HTTPRequest to just HTTPRequest in line 140 of NewsletterAdmin.php.

    Obviously I'll need to reverse this once I upgrade to SS 2.4 but happy to stay on 2.3.7 for now.

    It also seems to be working fine with the SubscriptionForm page type without needing UserForms installed.

    Further good news: the Unsubscribe function appears to be working fine.
    I subscribed to the list with one of my many obscure email addresses, checked the Mailing List to confirm subscription had worked, then sent myself a sample email. Email arrived fine, so I then clicked the Unsubscribe link that I had added to the bottom of my email template. This took me back to my site giving me a nice message saying I had now unsubscribed.
    I then logged back in as Admin, checked the Mailing List and my test subscription record had been removed. I checked the Unsubscribers tab and sure enough, there was my name and date of unsubscribing.

    Anything else I should look for to confirm if things are all working?

  • yurigoul
    Avatar
    Community Member
    202 Posts

    Re: Can't load saved newsletter (error loading page) Link to this post

    Not that I can think off. Thanx!!!!

  • dvdsetshop
    Avatar
    Community Member
    8 Posts

    Re: Can't load saved newsletter (error loading page) Link to this post

    I'm having the same problem, So the Unsubscribe button doesn't work either?

    ---------------------------------------------------------------------------------------------------
    www.dvdsetshop.com

  • yurigoul
    Avatar
    Community Member
    202 Posts

    Re: Can't load saved newsletter (error loading page) Link to this post

    Apparently unsubscribe works, confirmed in both 2.3 and .24.

    For the rest, depending on your Silverstripe version you have to replace certain names in the php files. Look up some of my replies in this thread.

  • Dieter
    Avatar
    Community Member
    2 Posts

    Re: Can't load saved newsletter (error loading page) Link to this post

    SS 2.3 & Newsletter 0.3:

    class NewsletterAdmin, line 138:
    Rename HTTPRequest to SS_HTTPRequest.
    Or, for compatibilty issues:
    if($params instanceof HTTPRequest)
    to
    if ($params instanceof SS_HTTPRequest) || $params instanceof HTTPRequest)

    3775 Views
Page: 1 2 3 4
Go to Top

Want to know more about the company that brought you SilverStripe? Then check out SilverStripe.com

Comments on this website? Please give feedback.