- 08 Jul 2011, 07:39
#1272
When I use joomla connectors and apply for a job and after adding all my credentials click "ubmit Applicatioon ow" I get following fatal Error: Cannot redeclare class PHPMailer in ... lib/Mailer.php ...
In Mailer.php if found:
include_once('./lib/phpmailer/class.phpmailer.php');
Of course this is needed if mailer functionality is used from cats itself, so cannot just // it so tried to check whether class exists with following expression:
if (!class_exists('phpmailer')) {
include_once('./lib/phpmailer/class.phpmailer.php');
}
However this always executes include_once...., e.g. check does not work.
Maybe because the execution comes from Joomla connector and not cats itself?!?
Has anybody come accross this problem or even better anyone who can help me to solve this
Thanks
Jens
In Mailer.php if found:
include_once('./lib/phpmailer/class.phpmailer.php');
Of course this is needed if mailer functionality is used from cats itself, so cannot just // it so tried to check whether class exists with following expression:
if (!class_exists('phpmailer')) {
include_once('./lib/phpmailer/class.phpmailer.php');
}
However this always executes include_once...., e.g. check does not work.
Maybe because the execution comes from Joomla connector and not cats itself?!?
Has anybody come accross this problem or even better anyone who can help me to solve this
Thanks
Jens