Hi!
When I try to publish a node with 'Send node to subscribers' checked I get a White Screen, looking on the logs I get:
PHP Fatal error: Unsupported operand types in /var/www/vhosts/esporas.org/subdomains/fenologia/httpdocs/includes/common.inc on line 1582

If I set the 'Traffic parameter' on settings I get these warnings:

warning: preg_match_all() [function.preg-match-all]: Unknown modifier '/' in /.../sites/all/modules/postsubscribe/postsubscribe.module on line 420.
warning: Invalid argument supplied for foreach() in .../sites/all/modules/postsubscribe/postsubscribe.module on line 422.

Thank you for this great module, it has all the features I ever need on Drupal, now I can move many blog from Wordpress to Drupal ;-)

Comments

Anonymous’s picture

Please, remove the root path from the first error warning. Thanks

lashad’s picture

jmesam,

Please remove 'Traffic parameter' and 'Domain names' parameter and try again.

Thanks.

Anonymous’s picture

The same warning:
PHP Fatal error: Unsupported operand types in .../includes/common.inc on line 1582

Anonymous’s picture

If I remove the Header image setting, the problem magically solve...
The email is sended, no warning and no WSoD.

:)

lashad’s picture

Strange,

What string you using in Header image setting ?

Anonymous’s picture

The absolute url to the website header icon: http://www.mydomain.com/sites/default/files/my_logo.png.

lashad’s picture

StatusFileSize
new857 bytes

Quick fix, add postsubscribe-6.x-2.6_header_image.patch in postsubscribe module folder

run command:
patch < postsubscribe-6.x-2.6_header_image.patch

Thank you.

Anonymous’s picture

After the patch the header image problem is solutioned. Thanks.

What about the 'Traffic parameter' and 'Domain names' problem? ;-)

Can I use in Traffic parameters settings multiple values separated by ampersands (for example the Google Analytics URL tagger: ?utm_source=source&utm_medium=medium&utm_campaign=name)?

lashad’s picture

Yes sure,

for example:
To append utm_source=source&utm_medium=medium&utm_campaign=name parameter to the url www.example.com, then you set
example.com string in 'Domain names' and utm_source=source&utm_medium=medium&utm_campaign=name string in 'Trafic parameter' on settings page.

When you send a content item through postsubscribe module that contains url http://www.example.com/index.html
the module appends a utm_source=source&utm_medium=medium&utm_campaign=name code to that url like this: http://www.example.com/index.html?utm_source=source&utm_medium=medium&ut...

please note, multiple domains separated by comma in 'Domain names' settings.
example.com,bashmaki.com

Anonymous’s picture

Thanks for the info.

chirale’s picture

Status: Active » Needs review
StatusFileSize
new753 bytes

Make it in Drupal API way:

$header = '<div id="header">'. theme('image', $vars['header_image'], $vars['site_name'], $vars['site_name'], array('style' => 'border: none;'), FALSE) .'</div>';
lashad’s picture

Thank you chirale.

lashad’s picture

Status: Needs review » Closed (fixed)