FUDforum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » FUDforum Development » Bug Reports » [SOLVED] Problem with maillist.php (Fatal error: Call to undefined function fud_logerror() in maillist.php on line 320)
Show: Today's Messages :: Polls :: Message Navigator
Switch to threaded view of this topic Create a new topic Submit Reply
icon9.gif  [SOLVED] Problem with maillist.php [message #163387] Mon, 25 October 2010 14:31 Go to next message
herve is currently offline  herve   France
Messages: 22
Registered: October 2010
Karma: 0
Junior Member
Hello,

I succeeded to pipe mailing list messages into the forum without any problem. More than 2,500 messages where imported into the forum last week.

But yesterday evening it suddenly stopped with error. The CRON log displays the following :

Citation :
Connecting to mailbox {pop.xxxxxxxxxx.net:995/POP3/ssl/novalidate-cert}INBOX
Loading message 1 Done. Deleting message.
Loading message 2 Done. Deleting message.

Fatal error: Call to undefined function fud_logerror() in maillist.php on line 320


I applied the patch #5010 (Add Mailing List importing over POP3/SSL and IMAP/SSL) since the beginning of the import process and everything has been working fine until now.

What happens and why just now ? Please help Rolling Eyes

Thank you !
Re: Problem with maillist.php [message #163388 is a reply to message #163387] Mon, 25 October 2010 14:47 Go to previous messageGo to next message
naudefj is currently offline  naudefj   South Africa
Messages: 3771
Registered: December 2004
Karma: 28
Senior Member
Administrator
Core Developer
My guess is you are running on FUDforum 3.0.1 and you've copied a piece of FUDforum 3.0.2 code into it (fud_logerror in new in 3.0.2).
So, maybe you should just upgrade to 3.0.2RC1 since you are half way there anyway.
Re : Problem with maillist.php [message #163390 is a reply to message #163387] Mon, 25 October 2010 15:04 Go to previous messageGo to next message
herve is currently offline  herve   France
Messages: 22
Registered: October 2010
Karma: 0
Junior Member
Yes, I am running FUDforum 3.0.1. But everything worked fine until now. I can try to install 3.0.2RC1 anyway.

I looked at the log in /FUDforum/errors/.mlist/ and effectively found a file for every executed CRON since the problem occurred yesterday evening. And inside each file, this is always the same email message. So I suspect that this message IS the problem.

I can send you this log file without any problem. I hope that it can help you to discover why this message is breaking the pipe. At what address I can send it to you ?

Thanks for your help Razz
Re: Re : Problem with maillist.php [message #163391 is a reply to message #163390] Mon, 25 October 2010 15:08 Go to previous messageGo to next message
naudefj is currently offline  naudefj   South Africa
Messages: 3771
Registered: December 2004
Karma: 28
Senior Member
Administrator
Core Developer
Yes, the message doesn't want to load.
When FUDforum tries to tell you about it, it fails due to the code mix and match.
You can just upgrade to the latest 3.0.2RC1 or mock-up your own error reporting routine.
Re : Problem with maillist.php [message #163393 is a reply to message #163387] Mon, 25 October 2010 15:15 Go to previous messageGo to next message
herve is currently offline  herve   France
Messages: 22
Registered: October 2010
Karma: 0
Junior Member
OK, I will try to upgrade. Is there any FUDforum_web_safe_install_3.0.2RC1.zip ? Can I just install over 3.0.1 ?
Re: Re : Problem with maillist.php [message #163394 is a reply to message #163393] Mon, 25 October 2010 15:20 Go to previous messageGo to next message
naudefj is currently offline  naudefj   South Africa
Messages: 3771
Registered: December 2004
Karma: 28
Senior Member
Administrator
Core Developer
Download FUDforum_3.0.2RC1.zip from SourceForce and see the README file for upgrade instructions (the safe package is no longer required).
Re : Re: Re : Problem with maillist.php [message #163396 is a reply to message #163394] Mon, 25 October 2010 15:32 Go to previous messageGo to next message
herve is currently offline  herve   France
Messages: 22
Registered: October 2010
Karma: 0
Junior Member
OK upgrade to 3.0.2RC1 successful. But all my mailing list rules have been deleted...
icon14.gif  [SOLVED] Re : Problem with maillist.php [message #163397 is a reply to message #163387] Mon, 25 October 2010 15:50 Go to previous messageGo to next message
herve is currently offline  herve   France
Messages: 22
Registered: October 2010
Karma: 0
Junior Member
OK, so once my mailing rules created again, everything is now working fine again. The pending messages are now loaded into the forum.

Thanks for driving me to the 3.0.2RC1 upgrade Cool

[SOLVED]
Re: Re : Re: Re : Problem with maillist.php [message #163399 is a reply to message #163396] Mon, 25 October 2010 16:13 Go to previous messageGo to next message
naudefj is currently offline  naudefj   South Africa
Messages: 3771
Registered: December 2004
Karma: 28
Senior Member
Administrator
Core Developer
Kwoteer:
But all my mailing list rules have been deleted...


What do you mean?
I trust the upgrade script won't delete them!?!
Re : Re: Re : Re: Re : Problem with maillist.php [message #163400 is a reply to message #163399] Mon, 25 October 2010 16:23 Go to previous messageGo to next message
herve is currently offline  herve   France
Messages: 22
Registered: October 2010
Karma: 0
Junior Member
Yes, the upgrade script just deleted the mailing list rules. I just had 2 rules so it was not a big deal to create them again.
Re : Re: Re : Re: Re : Problem with maillist.php [message #163401 is a reply to message #163400] Mon, 25 October 2010 16:31 Go to previous messageGo to next message
herve is currently offline  herve   France
Messages: 22
Registered: October 2010
Karma: 0
Junior Member
By the way, the error log now shows what was the problem :

Citation :
Mon Oct 25 15:45:07 GMT 2010 Invalid date @ /home/data/FUDforum/errors/.mlist/1288021508_6e2f6d05f60c9c6b1fffaaf39b0262 75



And the date of the message as shown if the message header is

Citation :
Date: Sun, 24 Oct 2010 21:11:15 +0200 (Paris, Madrid (heure d'été))
X-Mailer: IncrediMail (5242528)


Is the problem because the timezone is written in French in the header or because there is a ' in it ?

Re: Re : Re: Re : Re: Re : Problem with maillist.php [message #163404 is a reply to message #163400] Mon, 25 October 2010 18:43 Go to previous messageGo to next message
naudefj is currently offline  naudefj   South Africa
Messages: 3771
Registered: December 2004
Karma: 28
Senior Member
Administrator
Core Developer
herve wrote:
Yes, the upgrade script just deleted the mailing list rules.


It's a big deal for me.
I've installed 3.0.1, created a ML rule and upgraded to 3.0.2RC1.
The rule survived and wasn't deleted! Rolling Eyes

herve wrote:
Date: Sun, 24 Oct 2010 21:11:15 +0200 (Paris, Madrid (heure d'été))


This is indeed an invalid date. The stuff in the second set of brackets shouldn't be there. Maybe you should contact them and let them know of the problem.
Re: Re : Re: Re : Re: Re : Problem with maillist.php [message #163405 is a reply to message #163404] Mon, 25 October 2010 18:55 Go to previous messageGo to next message
naudefj is currently offline  naudefj   South Africa
Messages: 3771
Registered: December 2004
Karma: 28
Senior Member
Administrator
Core Developer
To demonstrate the date problem:

Bad:
var_dump( strtotime('Sun, 24 Oct 2010 21:11:15 +0200 (Paris, Madrid (heure d\'été))') );


Good:
var_dump( strtotime('Sun, 24 Oct 2010 21:11:15 +0200 (Paris, Madrid)') );
Re : [SOLVED] Problem with maillist.php [message #163407 is a reply to message #163387] Mon, 25 October 2010 20:58 Go to previous message
herve is currently offline  herve   France
Messages: 22
Registered: October 2010
Karma: 0
Junior Member
The email client of this problematic message is IncrediMail. The company editing this software should be alerted of the problem. I didn't know what IncrediMail was before.

Instead of doing a
var_dump( strtotime('Sun, 24 Oct 2010 21:11:15 +0200 (Paris, Madrid (heure d\'été))') );


could you rather do a
var_dump( strtotime('Sun, 24 Oct 2010 21:11:15 +0200') );


and delete everything between brackets when there are some ?

By the way, "heure d'été" means "daylight saving time". It is probably something that did not need to be translated in the software and should remain in English.

Concerning the problem of mailing list rules deleted during the update, it's weird that you did not succeed to make this problem happening again from your side. Did you try with 2 rules instead of just 1 ? And did you apply the patches that I had on my 3.0.1 installation before upgrading ? They are patch 5010 (Add Mailing List importing over POP3-SSL and IMAP-SSL) and patch 5014 (Fix duplicate headers when posting forum posts to a mailing list). Hope it helps. Smile
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: posting problem
Next Topic: Email issue: only receiving first message
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ]

Current Time: Fri Jul 05 04:09:57 GMT 2024

Total time taken to generate the page: 0.02297 seconds