Home Forums Newsletter Plugin Support Moving website the newsletter refers to the URL before

Viewing 12 posts - 1 through 12 (of 12 total)
  • Author
    Posts
  • #16899
    cobi
    Participant

    hey,

    I move my page from DEV to STAGING. And now the Newsletter Plugin refers still to DEV. Which parts do I have to change so that is refers to STAGING?

    Thanks for your support. I will appreciate it very much.

    Regards
    Florian

    #16902
    Stefano
    Keymaster

    Check the subscription steps panel for the newsletter dedicated page URL. Check even the confirmation and welcome messages: they should contains only relative URLs, but probably they now have absolute URLs to the wrong domain.

    #16909
    cobi
    Participant

    Hey Stefano,

    so I checked the dedicated page URL, I delete the content and waits till the “Generate Button” appears, generate it and now I got the new URL that look like this “http://192.168.100.64/shop/de/newsletter-2”. Is that what it has to be look like?

    I checked also the confirmation and welcome messages, but what did you mean the containing URL’s? There is only an Editor where I can edit the messages. Have a look…

    subscription step panel

    Thanks for supporting me

    Greetings
    Florian

    • This reply was modified 7 years, 4 months ago by cobi.
    #16912
    Stefano
    Keymaster

    Hi, but when you migrated the site, did you change the main wordpress options with the new wordpress url?

    #16915
    cobi
    Participant

    Hi,

    yes I did. I did it at the wp-config.php and checked the permalinks.

    #16916
    cobi
    Participant

    what did you mean changing the URL at the confirmation and welcome messages?

    #16923
    Stefano
    Keymaster

    On subscription steps panel there are few messages that could contain wrong links. Or did you coded a custom form containing the absolute url to the old system?

    #16927
    cobi
    Participant

    Thank you for your reply,

    in the subscription steps are only messages, but this is not the problem, because even if there are wrong URL’s (in my case there are no URL’s at all) inside this would not solve my problem I think. And yess I did “Alternative Forms” here is the code:

    <script type="text/javascript">
    //<![CDATA[
    if (typeof newsletter_check !== "function") {
    window.newsletter_check = function (f) {
        var re = /^([a-zA-Z0-9_\.\-\+])+\@(([a-zA-Z0-9\-]{1,})+\.)+([a-zA-Z0-9]{2,})+$/;
        if (!re.test(f.elements["ne"].value)) {
            alert("The email is not correct");
            return false;
        }
        for (var i=1; i<20; i++) {
        if (f.elements["np" + i] && f.elements["np" + i].value == "") {
            alert("");
            return false;
        }
        }
        if (f.elements["ny"] && !f.elements["ny"].checked) {
            alert("You must accept the privacy statement");
            return false;
        }
        return true;
    }
    }
    //]]>
    </script>
    
    <style type="text/css">
    <!--
    
    /* folgende Definition bezieht sich auf Placeholder im Formularfeld */
    
    ::-webkit-input-placeholder {
       color: #ccc;
    }
    
    :-moz-placeholder { /* Firefox 18- */
       color: #ccc;  
    }
    
    ::-moz-placeholder {  /* Firefox 19+ */
       color: #ccc;  
    }
    
    :-ms-input-placeholder {  
       color: #ccc;  
    }
    
    .newsletter {
    
        text-align: center;
        border: solid;
        border-width: 1px;
        border-color: #fff;
        display: inline-block;
        position: relative;
        width: 100%;
        max-width: 800px !important;
        padding: 0 10px;
    
    }
    
    .newsletter table {
        margin-left: auto;
        margin-right: auto;
        text-align: center;
        border: 1px solid #eee;
        background-color: #fff;
        box-shadow: 0px 0px 10px #999;
        padding: 10px;
        width: auto;
    }
    
    .newsletter th, .newsletter td {
        padding: 10px;
        border: 0;
    }
    
    .newsletter th {
        text-align: right;
    }
    
    .newsletter-td-submit {
        text-align: center;
    }
    
    .newsletter-submit {
        font-size: 28px;
        background-color: #eee;
        padding: 10px;
        border: 1px solid #ddd;
    }
    
    .newsletter-widget
    {
        align:"center";
        text-align: center;
    }
    -->
    </style>
    
    <div class="newsletter newsletter-subscription">
    <center><form method="post" action="192.168.100.64/wp-content/plugins/newsletter/do/subscribes.php" onsubmit="return newsletter_check(this)">
    
    <!-- email -->
    <div align="left">
    <input class="newsletter-email" type="text" name="ne" style="background-color: transparent; font-size: 20px; font-family: Roboto Condensed , sans-serif; color: #fff;  margin-top: 20px; padding-top: 10px; width: 500px ; margin-bottom: 20px; margin-left: 20px; border: none;" value="" placeholder="Geben Sie Ihre E-Mail-Adresse hier ein">
    
    <div align="right" style="float: right; margin-top: 25px; margin-right: 25px;">
    <button class="button" type="submit" title="Subscribe" style="background-color: #e30513; font-size: 20px; font-family: Roboto Condensed , sans-serif; color: #fff; border: none !important; text-transform: none !important;"><span><span>Abonnieren</span></span></button>
    </div>
    </form></center>
    </div>

    So you are the developer is there any part of code inside your plugin core that set an absolute path or somethings else? please help me out that problem, because we love your plugin and are goping to you use the PRO version.

    many thanks
    Florian

    • This reply was modified 7 years, 4 months ago by cobi.
    #16929
    cobi
    Participant

    If i set the adresse 192.168.100.64/wp-content/plugins/newsletter/do/subscribes.php I get an 404, if I set it to the odl domain everything works fine. So It seems that it couldn’t found the subscribes.php, but it is on the same place. Any ideas?

    If it is neccessary, I could bring up my system on a webserver and giv you access?

    #16931
    Stefano
    Keymaster

    It seems you’re using a custom form with an absolute address:

    action=”http://www.cobinet.floriangrimm.com/wp-content/plugins/newsletter/do/subscribes.php&#8221;

    just correct that address with the official one of your new site. Probably you’re using one of the then custom forms available.

    #16948
    cobi
    Participant

    thanks for your support,

    I go thru every step and, check everywhere the URL’s set again the default page with the generate button and now everything works. Didn’t know exactly what was the fault, but it seems it was on my side I guess.

    Again many thanks for standing on my side

    Greetings
    Florian

    #16976
    Stefano
    Keymaster

    If you look at the page source where the subscription form is you can easily find the

    and check the url in the action attribute. If it is correct there we should look further, if it is incorrect we need to find from where that form come comes. for example it can come from the alternative subscription forms in the plugin admin panels.
Viewing 12 posts - 1 through 12 (of 12 total)
  • You must be logged in to reply to this topic.