Bug #35902

fatal error in scheduler / Swift mailer

Added by Stefan Franke over 7 years ago. Updated 11 months ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
scheduler
Target version:
-
Start date:
2012-04-12
Due date:
% Done:

0%

TYPO3 Version:
PHP Version:
Tags:
Complexity:
Is Regression:
Sprint Focus:

Description

While trying to set up the cronjob for the scheduler, something apparently went wrong resulting in the non-accessibility of the scheduler. Now, when trying to access the scheduler, I always get the following error message:

Fatal error: Call to a member function clearAll() on a non-object in /PATH/TO/TYPO3-SRC/typo3/contrib/swiftmailer/classes/Swift/Mime/SimpleMimeEntity.php on line 800

At line 800 I found this code (TYPO3 Version 4.5.14):

$this->_cache->clearAll($this->_cacheKey);

It is trying to clear the cache at that point, but $this->_cacheKey is empty. As long as this line of code is commented out, it is working again.

There should be a check, whether $this->_cacheKey is empty or not.


Related issues

Duplicates Direct Mail - Bug #41975: Scheduler Task Error Rejected 2012-10-14

History

#1 Updated by Francois Suter over 7 years ago

  • Target version deleted (4.5.15)

#2 Updated by Steve over 7 years ago

I already had the same issue. I cleared the "lastexecution_failure" field in db tx_scheduler_task to get the scheduler back to work.

#3 Updated by Lina Wolf about 7 years ago

UPDATE tx_scheduler_task SET lastexecution_failure = '' also temporarily solves the problem until problem arises again.

#4 Updated by André Steiling about 7 years ago

Check your install tool configuration under $TYPO3_CONF_VARS['MAIL']: In my case missconfigured SMTP settings cause the PHP error. Set the mail transport to "mail" and test again. If it works, something with the further mail configuration theems do be wrong ...

#5 Updated by Philipp Gampe about 7 years ago

This sounds more like a bug in swiftmail itself. Swiftmail is a third party product and TYPO3 will not mess in the code. Please check whether this code as been fixed upstream.

#6 Updated by Christian Kuhn about 7 years ago

  • Status changed from New to Resolved

Not an issue with the scheduler itself: If a task send mails or something else, it should have proper error handling on its own (eg. by catching the mailer result and giving proper result values).

#7 Updated by Michael Stucki over 5 years ago

  • Category set to scheduler

#8 Updated by Michael Stucki over 5 years ago

  • Project changed from Scheduler to TYPO3 Core
  • Category changed from scheduler to scheduler

#9 Updated by Gernot Ploiner over 4 years ago

I had the same issue today.
My problem was a missing image in a RTE-Content (bodytext field). It was deleted from the uploads-folder.
After uploading the image again all works fine.

#10 Updated by Benni Mack 11 months ago

  • Status changed from Resolved to Closed

Also available in: Atom PDF