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

salvis’s picture

Category: bug » support

We've had a similar problem before: http://drupal.org/node/199039

What do you see on admin/settings/site-information?

yellek’s picture

This 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.

salvis’s picture

Status: Active » Fixed

I don't know what's causing this problem, but it's beyond the control of Subscriptions.

Thanks.

xcalibur’s picture

Category: support » bug

In 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.

salvis’s picture

Category: bug » support

I wish I knew more about what's causing this, but it's beyond the control of Subscriptions.

Anonymous’s picture

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for two weeks with no activity.

maedi’s picture

Status: Closed (fixed) » Active

I'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

)

salvis’s picture

I 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...

maedi’s picture

PHP 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.

salvis’s picture

Version: 5.x-2.0-beta11 » 5.x-2.0-rc1
Status: Active » Fixed

This 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.

Anonymous’s picture

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for two weeks with no activity.

kip stanning’s picture

in 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