[Typo3] [Typo3-directmail] Re: dmailer (class.t3lib_dmailer.php) error on line 487

Thorsten Kahler thorsten.kahler at dkd.de
Thu Oct 6 12:14:00 CEST 2005


Hi Mark,

a little bit more information about your environment would help a lot. At
least your OS and PHP Version are needed to find out the real reason for
your problem.

Generally I would suggest following changes:
1) Copy dmailerd.phpcron to dmailerd.php
2) Drop the first line of dmailerd.php
3) Drop lines 3 and four and replace them with
if ( isset( $_SERVER['argv'] ) ) {
		// script called from command line
	$dir = dirname( $_SERVER['argv'][0] );
} else {
		// script called via web server
	$dir = dirname( $_SERVER['SCRIPT_FILENAME'] );
}
define('PATH_typo3', dirname(dirname(dirname(dirname($dir)))) . '/typo3/');

4) Now you can call the script via your web server or from the command line.


@all: If these changes work, I'd like to have them in the next version of
direct_mail. So testing and feedback is appreciated!

Regards
Thorsten



Mark Gillingham wrote:
> Using T3 3.7, I can send mail to group members if I invoke the Mailer
> Engine from the Web interface--50 messages per click. I can't invoke the
> cron script from the command line without getting an error.
> 
> Fatal error: Call to a member function on a non-object in
> /srv/www/cgi-bin/typo3_src-3.7.0/t3lib/class.t3lib_dmailer.php on line 487
> 
> [...]
> There have been other threads about an error in dmailer.php, but I
> thought that was resolved and this one looks different to me. Thanks for
> any help.
> 
> Mark



More information about the TYPO3-english mailing list