Home › Forums › Newsletter Plugin Support › Moving website the newsletter refers to the URL before
- This topic has 11 replies, 2 voices, and was last updated 7 years, 10 months ago by
Stefano.
-
AuthorPosts
-
July 23, 2015 at 2:17 pm #16899
cobi
Participanthey,
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
FlorianJuly 23, 2015 at 5:51 pm #16902Stefano
KeymasterCheck 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.
July 24, 2015 at 8:35 am #16909cobi
ParticipantHey 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…
Thanks for supporting me
Greetings
FlorianJuly 24, 2015 at 8:58 am #16912Stefano
KeymasterHi, but when you migrated the site, did you change the main wordpress options with the new wordpress url?
July 24, 2015 at 10:03 am #16915cobi
ParticipantHi,
yes I did. I did it at the wp-config.php and checked the permalinks.
July 24, 2015 at 10:04 am #16916cobi
Participantwhat did you mean changing the URL at the confirmation and welcome messages?
July 24, 2015 at 10:54 pm #16923Stefano
KeymasterOn 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?
July 27, 2015 at 11:31 am #16927cobi
ParticipantThank 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
FlorianJuly 27, 2015 at 11:43 am #16929cobi
ParticipantIf 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?
July 27, 2015 at 2:54 pm #16931Stefano
KeymasterIt seems you’re using a custom form with an absolute address:
action=”http://www.cobinet.floriangrimm.com/wp-content/plugins/newsletter/do/subscribes.php”
just correct that address with the official one of your new site. Probably you’re using one of the then custom forms available.
July 28, 2015 at 3:30 pm #16948cobi
Participantthanks 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
FlorianJuly 30, 2015 at 5:20 pm #16976Stefano
KeymasterIf you look at the page source where the subscription form is you can easily find the
-
AuthorPosts
- You must be logged in to reply to this topic.