Closed (fixed)
Project:
Simplenews
Version:
6.x-1.x-dev
Component:
Usability
Priority:
Normal
Category:
Support request
Assigned:
Reporter:
Created:
17 Oct 2009 at 12:32 UTC
Updated:
3 Nov 2009 at 20:10 UTC
The unsub link is http://192.168.36.1/nbarc/newsletter/confirm/remove/c19b1d8a472t85
instead of the proper url link. I think this happened when I rebuilt my drupal installation offline when I changed my underlying server software from centOS4 to centOS5.
I was at 6.x-1.0-rc6 and installed the .dev version as a "upgrade" from the url address in order to force a refresh but no joy. The links still show private addresses.
How would I go about correcting this?
Thanks..
Paul
Comments
Comment #1
captaindav commentedPaul,
This could be caused by a problem with your new OS/platform (new OS, Apache/MySQL/PHP) or a bug in the dev version of SimpleNews.
To isolate the cause, could you install a fresh copy of Drupal and Simplenews in a test directory on the server and see if that works. If this test configuration names the URL correctly, then we can conclude the problem is probably not caused by the new OS/platform.
If the test configuration fails, then we know the problem is not a new bug introduced by 6.x-1.x-dev, but rather a OS/Platform issue or possibly a configuration issue or bug in SimpleNews 6.x-1.0-rc6.
Thanks,
captaindav
http://drupalanswer.com
Comment #2
captaindav commentedComment #3
captaindav commentedComment #4
va3pc commentedI actually had the symptom before I installed the dev version, I installed the dev version as an upgrade to simplenews to see if that would change the link back to the url "public address" instead of the private address.
I recall having the issue before - and concluded that it cropped up when I did a drupal upgrade "locally." I.e. I used my 192.168. address to access my web server instead of the public url for the upgrade.
I can't remember how I fixed the issue the last time, whether it was a simplenews upgrade or a drupal upgrade.
I've tried to read through the php scripting to see where the unsub link is stored, and also tried diving into the mysql, but couldn't find it in any table, or the reference in the scripting.
I can't seem to find out where the variable is set (to be honest - I learned programming in the dark ages before there was any object oriented stuff - but I am trying to retrain myself...), if I can figure out how, then I would know how to fix it.
I am trying to avoid reinstalling the site (again!). Its for our local ham radio club and there is a bit of stuff there now.
Paul
Comment #5
captaindav commentedPaul,
One setting I would try first is the $base_url setting in the Drupal settings.php file.
If that doesn't work, I would proceed with installing the stock version of Drupal and Simplenews in a test directory. That should only take a few minutes - you don't need to re-create your website - just use the stock theme. Then send a test newsletter and see if the URL is still messed up. If it is messed up, then we know the problem is not related to settings specific to your site, but rather their is probably a platform issue, e.g. PHP.ini setting, Apache httpd.conf setting, etc. Another possiblity is a bug in Drupal or Simplenews.
Thanks,
Dave
Comment #6
va3pc commentedThanks Dave;
I'll try explicitly setting the $base_url - it was not set, relying on the default.
I can see how it could get mucked up if it automagically set it while I was updating using my lan address for the server.
If that doesn't work to cure the link address, I'll install a trial site as per your request.
Either way, I'll let you know.
Paul
Comment #7
va3pc commentedDave, that was it. I changed from the default to an explicit setting and the issue is resolved.
Note to self: Don't use the local address to update the site.. >>>BANG HEAD HERE<<<
Thanks again.
Paul
Comment #8
sutharsan commented