#1654 Error: undefined indexes, offsets for tiki-mailin-code.php

v1.8.4
closed
None
5
2004-10-03
2004-09-10
Rob Kelley
No

This error came from a single post to a forum. Upon
reloading the page, everything displays fine. This is
running Tiki 1.8.4.

Notice: Undefined index: content-disposition in
/home/rkelley/public_html/wiki/tiki-mailin-code.php on
line 63

Notice: Undefined offset: 1 in
/home/rkelley/public_html/wiki/tiki-mailin-code.php on
line 65

Notice: Undefined offset: 1 in
/home/rkelley/public_html/wiki/tiki-mailin-code.php on
line 66

Notice: Undefined property: parts in
/home/rkelley/public_html/wiki/tiki-mailin-code.php on
line 77

Notice: Undefined index: content-disposition in
/home/rkelley/public_html/wiki/tiki-mailin-code.php on
line 63

Notice: Undefined offset: 1 in
/home/rkelley/public_html/wiki/tiki-mailin-code.php on
line 65

Notice: Undefined offset: 1 in
/home/rkelley/public_html/wiki/tiki-mailin-code.php on
line 66

Notice: Undefined property: parts in
/home/rkelley/public_html/wiki/tiki-mailin-code.php on
line 77

Discussion

  • Rob Kelley

    Rob Kelley - 2004-09-10

    Logged In: YES
    user_id=466494

    sorry, those errors came from process TWO emails--one
    original and one reply

     
  • Rob Kelley

    Rob Kelley - 2004-09-11

    Logged In: YES
    user_id=466494

    Same problem again:

    Notice: Undefined index: content-disposition in
    /home/rkelley/public_html/wiki/tiki-mailin-code.php on line 63

    Notice: Undefined offset: 1 in
    /home/rkelley/public_html/wiki/tiki-mailin-code.php on line 65

    Notice: Undefined offset: 1 in
    /home/rkelley/public_html/wiki/tiki-mailin-code.php on line 66

    Notice: Undefined property: parts in
    /home/rkelley/public_html/wiki/tiki-mailin-code.php on line 77

    ----

    From the code, it looks like the first item in the names
    array (from the headers[content-disposition]) isn't being set:

    00062 default:
    00063 $names = split(';',
    $obj->headers["content-disposition"]);
    00064
    00065 $names = split('=', $names[1]);
    00066 $aux['name'] = $names[1];
    00067 $aux['content-type'] =
    $obj->headers["content-type"];
    00068 $aux['part'] = $i;
    00069 $parts['attachments'][] = $aux;

    Any ideas?

     
  • Sylvie Greverend

    Logged In: YES
    user_id=784615

    I have also this problem sometimes. It is usually when I have
    an empty message on the server.
    It happens in the pop3 library than is not a Tiki library but a
    external library pop3 de Sivaprasad
    Will take some times to fix this - rewrite the library? Update
    the library? have it correct

     
  • Rob Kelley

    Rob Kelley - 2004-09-15

    Logged In: YES
    user_id=466494

    More of the same today _and_ it deletes the original message(!)

    Any clue as to why this is happening. I'd be happy to patch
    some code in there.

    Nobody likes it when their post vanishes! :(

    Thanks!!!

    Rob

     
  • Sylvie Greverend

    Logged In: YES
    user_id=784615

    I found why I had this problem
    I put in my mailin user: user instead os user@myDomain.com
    I had forgotten that my provider has rewritten that
    Is it the same for you?
    Now I have to find a way to give back the error on tiki

     
  • Rob Kelley

    Rob Kelley - 2004-09-21

    Logged In: YES
    user_id=466494

    I changed the login name, but it didn't fix the problem.

    Wierd though, the page is giving the three error messages
    _after_ it's processed the message. I mean, it loaded three
    messages correctly into the forum. I went back the next day
    and three series of errors came up. But nobody had posted.

    Maybe it's not adequately deleting them, and then it finds
    it has a duplicate and gets unhappy?

    Wierd.

     
  • Sylvie Greverend

    Logged In: YES
    user_id=784615

    Because the forum mailin doesn't use tiki-mailin-code.php.
    Don't ask me why?
    The mailin feature (admin mailin ) is to fill up / deliver
    articles and wiki page.
    To fill a forum you define that in admin forums your_forum.
    To fill articles and wiki pages, you define that in admin
    mailin.
    The 2 checks are not synchronysed. tiki-mailin-code checks
    the mail with the frequence you define in admin /mailin. The
    forum mailin checks when you access the forum (I am not sure)
    So you have error with tiki-mailin-code because one of the
    accounts in admin mailin is wrong. Correct all the accounts,
    or disable mailin synchronisation and the error will
    disappear (At least I think)

     
  • Sylvie Greverend

    • assigned_to: nobody --> sylvieg
     
  • Rob Kelley

    Rob Kelley - 2004-09-21

    Logged In: YES
    user_id=466494

    Updating this item for category / group / subject line or other
    data. No real change to the item, just house-keeping.

     
  • Rob Kelley

    Rob Kelley - 2004-09-21

    Logged In: YES
    user_id=466494

    Thanks Sylvie:

    Your advice helped. I went back and looked at my mailin
    accounts, and saw I had a wiki account.

    There was spam coming into that account and each time it
    read it, it created a page for it. A couple times it
    over-wrote an existing account.

    So I'm thinking that tiki was barfing on the contents of the
    spammed wiki mail account, not the forum's mail account.

    So I deleted the wiki account. If I use one again, I'll be
    sure to make it require "PUT:" in the subject line. Also
    I'll make it more obscure than wiki@[FQDN]

    Rob

     
  • Rob Kelley

    Rob Kelley - 2004-09-21

    Logged In: YES
    user_id=466494

    And the deleting?

    Well, I had an email client that was pulling the messages
    off the server. So if the client got to it before tiki, no
    posting.

    Moral: Make sure your client isn't deleting messages from
    the server.

     
  • Sylvie Greverend

    • status: open --> closed
     

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks