Mike,

Have you come across this...?

I get this (for my main title link in the text email) :
http:///
e.g. very top portion before date would look like this

The Big Bird Site
http:///

This is from a new, edited XSI file based on the plain text file - all the beginning stuff (that would create this top portion) was not touched - I only added a few more fields below it. The default text XSI still works fine.

This also happens to the LINK value within each of the entries...
(from this line in the XSI )
Thus it prints...
http:///659/October/test-file.html

It appears as if there is a dropping of the site domain, resulting in http:/// instead of say, http://bigbird.com/

Ideas?

Thanks.

Comments

Mercury500’s picture

UPDATE: Confirmed. Even default text XSL drops the domain when called by cron.

Also, fyi, the preview of this new xsi template DOES work and inserts the domain name.

(need to test via cron trigger to confirm)

I've gone over the permissions several times and just about everything cck field wise is "allowed" viewing for anonymous users (the cron)...

Mercury500’s picture

With a new XSL file, all the tests were fine. But when the cron triggers the email, the domain name is dropped as indicated above.

Thus it's probably permissions or something. I've given access to anon for everything I can think of and not sure if I can go any further.

Thoughts?

Thanks.

Mercury500’s picture

Update - still can't get to work. Domain being dropped in all urls.

Mike, is there a way I could hard-code my domain url into this module? And if so, where? This is taking far too long for me to get going...

UPDATE: So far, fingers crossed, the solution/problem was "how cron was being called." I have never had a problem using PHP for the cron job (usr/bin/php -f) in many years and modules.

But, to make this module work I had to change to wget for my cron jobs which "solved" this issue and the domain name is now being inserted into the links.

Mike Wacker’s picture

Status: Active » Fixed

SunMailer uses a pretty standard function call to drop links in the XML.

url("node/{$node->nid}", array('absolute' => TRUE))

This is pretty much the the standard Drupal way of generating an absolute link, so if there's a problem it's an external one.

Status: Fixed » Closed (fixed)

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

rsutaria’s picture

Priority: Normal » Major

I'm facing this exact same problem.

In the submailer newsletter sent out by the cron job, this is the link:
http:///kshana-diwali-event

whereas, when I send a newsletter from content management->Email newsletter->[name of newsletter]->Send, this is the link sent in the newsletter triggered from the admin console:
http://www.karmayog.in/events/kshana-diwali-event

hence, the triple slashes and dropped domain are only happening when the email is sent via the cron job.

The only change that has happened in the past few weeks is that I've moved my drupal setup from shared hosting (on bluehost) to a VPS server (also on bluehost). This problem started as soon as I've moved onto the VPS.

I'm not sure why the triple slashes and domain dropped has suddenly started. any ideas?

Thanks,
Ronak