Jump to content
Sign in to follow this  
cassim

PS 1.4.6.1 BUG - SWIFT

Recommended Posts

 

Fatal error: Uncaught exception 'Swift_Message_MimeException' with message 'Something went wrong whilst trying to move some MIME parts during an attach(). The MIME component threw an exception:<br />Cannot remove child part identified by '5032870267469' as it does not exist. Consider using hasChild() to check.' in /home/customda/public_html/tools/swift/Swift/Message.php:543 Stack trace: #0 /home/customda/public_html/classes/Mail.php(182): Swift_Message->attach(Object(Swift_Message_Part)) #1 /home/customda/public_html/cassim/tabs/AdminOrders.php(191): MailCore::Send(4, 'order_merchant_...', 'Ny meddelelse v...', Array, 'frederik.sejer@...', 'Frederik Sejer', NULL, NULL, NULL, NULL, '/home/customda/...', true) #2 /home/customda/public_html/cassim/index.php(106): AdminOrders->postProcess() #3 {main} thrown in /home/customda/public_html/tools/swift/Swift/Message.php on line 543

 

This error am i getting when i try to write a mail to my customer.

Share this post


Link to post
Share on other sites

In /tools/swift/Swift/Message.php at line 623

replace $this->getReference("parent", $old_branch)->removeChild($id);

 

with

 

if($this->getReference("parent", $old_branch)->hasChild($id)){ $this->getReference("parent", $old_branch)->removeChild($id); }

 

 

I have prestashop PrestaShop™ 1.4.6.2 and it works :)

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×
×
  • Create New...

Important Information

Cookies ensure the smooth running of our services. Using these, you accept the use of cookies. Learn More