[TYPO3-english] A problem with swiftmailer, autoloading and open_basedir
Jigal van Hemert
jigal at xs4all.nl
Fri Dec 23 13:45:56 CET 2011
Hi,
On 23-12-2011 10:24, Dmitry Dulepov wrote:
> I am getting the following error message for *every* SwiftMailer class
> when I call a CLI script:
>
> Core: Error handler (BE): PHP Warning: spl_autoload(): open_basedir
> restriction in effect. File(swift_swiftexception.php) is not within the
> allowed path(s):
> (/var/www/vhosts/client/:/var/www/vhosts/client/tmp/:/usr/share/php/:/usr/share/php5/:/var/lib/typo3/:/usr/bin/:/var/www/default/:/etc/hostname:/dev/random:/dev/urandom)
> in /var/lib/typo3/TYPO3_4-5/t3lib/class.t3lib_autoloader.php line 113
The file is of course Swift/SwiftException.php and the translation
should be done by the autoloader of SwiftMailer
(typo3/contrib/swiftmailer/classes/Swift.php).
It looks like the SwiftMailer autoloader isn't used in the CLI context..
Very strange.
--
Kind regards / met vriendelijke groet,
Jigal van Hemert.
More information about the TYPO3-english
mailing list