On a fresh install of Drupal with the subscriptions module I received the notification below referencing a file based URL rather than the proper web address:
| Greetings, admin.
|
| Your subscriptions on Fujitsinfo
| notify you of the following changes since the previous digest:
|
Test Page
This is a test page to test subscription functionality
| Link: http:///c:\wamp\www\fujitsinfo/index.php?q=node/1
| Direct unsubscribe link (thread):
| http:///c:\wamp\www\fujitsinfo/index.php?q=s/del/node/nid/1/-1/1/df609
| e30af6bc509b1d6073e8a04f457
| --------------------------------------------------------------------
| This is an automated message. Please do NOT reply to the sender address!
| To manage your subscriptions go to
| http:///c:\wamp\www\fujitsinfo/index.php?q=user/1/subscriptions
Environment:
- Drupal 5.7
- Wamp Server 2.0
- Apache 2.2.6
- PHP 5.2.5
- Windows XP
- Modules Installed:
- cck-5.x-1.6-1
- feedapi-5.x-1.0
- feedapi_mapper-5.x-1.0-beta4
- fivestar-5.x-1.11-beta3
- mail_edit-5.x-1.1
- smtp-5.x-1.x-dev
- subscriptions-5.x-2.0-beta11
- views-5.x-1.6
- votingapi-5.x-1.5
Comments
Comment #1
salvisWe've had a similar problem before: http://drupal.org/node/199039
What do you see on admin/settings/site-information?
Comment #2
yellek commentedThis looks like what I would expect:
Default front page: http://localhost/fujitsinfo/?q= [node]
so no file paths present. Setting the $base variable in settings.php to the URL of the machine worked however.
Comment #3
salvisI don't know what's causing this problem, but it's beyond the control of Subscriptions.
Thanks.
Comment #4
xcalibur commentedIn my case it's look like:
| Greetings, my-xcalibur
|
| Your subscriptions on Без тормозов
| notify you of the following changes since the previous digest:
|
Однако
| Link: http:///./node/18
| Direct unsubscribe link (thread):
| http:///./s/del/node/nid/18/-1/2/bcc5bfd9b15f6f9f392c334dfad78b47
SUBSCRIPTIONS_DEFAULT_DIGEST_ITEM_COMMENT| --------------------------------------------------------------------
| This is an automated message. Please do NOT reply to the sender address!
| To manage your subscriptions go to
| http:///./user/2/subscriptions
uncorrected mail-template is.
Comment #5
salvisI wish I knew more about what's causing this, but it's beyond the control of Subscriptions.
Comment #6
Anonymous (not verified) commentedAutomatically closed -- issue fixed for two weeks with no activity.
Comment #7
maedi commentedI'm also experiencing this problem, was anyone able to find a solution?
(mine looks like:
| Category: Professional
| Title: Glossary of Baking terms
| Link: http:///index.php?q=forum/topic/1207
| Direct unsubscribe link (thread):
| http:///index.php?q=s/del/node/nid/1207/-1/56/d05c012e6e0df863d7a65b8882327d20
)
Comment #8
salvisI believe the solution is to set $base_url in settings.php.
This enables core to return the correct URL to whoever wants to know. However, why this is necessary for some installations and not for others is a mystery.
Could it be that this occurs more often (or only?) on Windows? What's your PHP version?
BTW, BETA12 is out...
Comment #9
maedi commentedPHP in my shared hosting environment is 4.4.4 running on Linux. It looks like $base_url did the trick, thanks. I'm using beta12 by the way.
Comment #10
salvisThis cannot be "fixed" in Subscriptions, but we check now for the common wrong URL forms and issue a helpful message to point the admin to setup.php.
Comment #11
Anonymous (not verified) commentedAutomatically closed -- issue fixed for two weeks with no activity.
Comment #12
kip stanning commentedin my case the drupal installation was running from a subdirectory of my domain ( www.mydomain.com/platform-A ). uncommenting the line base url line and inserting the full path to the drupal installation in settings.php fixed the problem for me. links in subscription mails are correct now and can be clicked.
$base_url = 'http://www.mydomain.com/platform-A'; // NO trailing slash!
thx yellek for posting your problem - and for the solution!
karl