View Single Post
12-09-2011, 11:59 AM
#4
pinzdesign.com is offline pinzdesign.com
Status: I'm new around here
Join date: Feb 2011
Location: Copenhagen/DK
Expertise: php
Software: Paint
 
Posts: 15
iTrader: 0 / 0%
 

pinzdesign.com is on a distinguished road

  Old

Originally Posted by Village Genius View Post
Because people may come with the same issue and find this on Google could you explain what you did to fix it? On that subject:
well i don't think this can help much, as i had a quite unique error - i removed one of the emails from the table, but didn't remove the subscribed mail categories.

My first query selects all mails, from categoriesmap where category is equal to the one used in to-be-send mail. The table holds only relations, as if it says: mail 5 subscribed to category 7. So when i was getting id's of "broken" mails from this table, and adding them with addTo() in a loop, it inserted a null value, thereafter Zend made a "," and tries to fetch another broken(unexistant) mail(or maybe once is enuf)

So the recipient field was getting something like "mymail@mail.com,,,," on which, of course, Zend was throwing an error.