Feng Forum
Support => Older versions => : soj June 26, 2009, 06:44:01 AM
-
This is a continuation of my post about the email encoding problem. After I sorted out the encoding business, I deleted the emails with the broken characters. Then I try to empty the trash can, but errors are produced.
When I click to delete, say 50 objects permanently, the Error window pops up saying "failed to delete 50 objects".
Then when I click to the last page of the trash can, following error occurs:
"Fatal error: Call to a member function getOwner() on a non-object in /public_html/intranet/application/models/mail_contents/MailContent.class.php on line 476"
Looking at the log, the following appear:
-------------------------------------------------------------------------------
Session "default" started at 2009-06-26T09:17:36+0000
#1 ERROR: Error: Undefined variable: types in '/public_html/intranet/application/controllers/ObjectController.class.php' on line 1023 (error code: 8)
#2 ERROR: Error: Undefined variable: types in '/public_html/intranet/application/controllers/ObjectController.class.php' on line 1028 (error code: 8)
Time since start: 0.784224033356 seconds
-------------------------------------------------------------------------------
Session "default" started at 2009-06-26T09:17:41+0000
#1 ERROR: Error: Undefined offset: 0 in '/public_html/intranet/application/controllers/MailController.class.php' on line 308 (error code: 8)
#2 ERROR: Error: Invalid argument supplied for foreach() in '/public_html/intranet/application/controllers/MailController.class.php' on line 347 (error code: 2)
Time since start: 0.498067140579 seconds
-------------------------------------------------------------------------------
Session "default" started at 2009-06-26T09:04:54+0000
#1 ERROR: Error: Undefined variable: ws in '/public_html/intranet/application/controllers/MessageController.class.php' on line 98 (error code: 8)
Time since start: 0.682073116302 seconds
-------------------------------------------------------------------------------
Anyone know what the problem is?? I suspect it's the emails which have unreadable characters in them,, but I am not a programmer so I can't be sure.
Please help!
-
Ok, so I restore everything back to inbox, then turn off the email module from the config menu.
Now when i click trash can, everything is ok.
I test create a note, then delete, then empty trash can without any problem...
hmm...
-
Hi,
Seems that one problem is that the account was not found. Was it deleted?
to avoid that you can edit the file 'application/models/mail_contents/MailContent.class.php' , replace lines 476-480 with these ones:
"createdBy" => ($this->getAccount() instanceof MailAccount ? $this->getAccount()->getOwner()->getDisplayName() : ''),
"createdById" => ($this->getAccount() instanceof MailAccount ? $this->getAccount()->getOwner()->getId() : 1),
"dateCreated" => $sentTimestamp,
"updatedBy" => ($this->getAccount() instanceof MailAccount ? $this->getAccount()->getOwner()->getDisplayName() : ''),
"updatedById" => ($this->getAccount() instanceof MailAccount ? $this->getAccount()->getOwner()->getId() : 1),
Then try deleting again...
regards