version 3.0.2: Call to undefined function logaction [message #164003] |
Sun, 26 December 2010 08:01 |
|
Marianne
Messages: 13 Registered: December 2010
Karma: 0
|
Junior Member |
|
|
Hello,
I have defined a job to launch mailling.php (name: maillist import)
When I call mailling.php in a command line, it works fine.
When I launch the job, I have these error:
Connected to mailbox {XXX:110/POP3/novalidate-cert}INBOX
Load message 2. Done. Delete message.
Fatal error: Call to undefined function logaction() in
/XXXX/FUDforum/include/theme/default/iemail.inc on line 75
The message is integrated but, the job is stopped. It is not launched again by itself, following the rules.
Here is the code
if (defined('forum_debug')) {
logaction(_uid, 'SEND EMAIL', 0, 'To=['. implode(',', (array)$to) .']<br />Subject=['. $subj .']<br />Headers=['. str_replace("\n", '<br />', htmlentities($header)) .']<br />Message=['. $body .']');
}
logaction is defined in FUDforum/include/theme/default/logaction.inc
Does iemail.inc miss an include ?
Or do I have misconfigured something ? the "debug forum" seting is set to off.
What can I do ?
|
|
|
|
|
|
|
|
Re : Re: Re : Re: Re : Re: version 3.0.2: Call to undefined function logaction [message #164036 is a reply to message #164034] |
Thu, 30 December 2010 06:21 |
|
Marianne
Messages: 13 Registered: December 2010
Karma: 0
|
Junior Member |
|
|
Hello,
naudefj a écrit le Wed, 29 December 2010 22:29No errors and no messages means there is nothing in the queue to run.
To convince yourself, add a couple of echo statements to make it more verbose.
I have had a lot of echo, launch it by manuel command like that
/GOOD PATH/php /GOOD PATH/FUDforum/scripts/cron.php >>mlist.log 2>&1
And in mlist.log, I see often "no job, return" (echo added line 54 (test if (!$job) ...)), and sometimes echos that I have added after this test.
In the database, I have :
MEL@LISTE-DOMAIN * * * * * maillist.php 1 1293696960 1293696953 0 0
When there is no job detected, it returnes, so how can be it call again ?
and when there is job, the fonction plugin_call_hook is called. So, maybe, I must investigate this one to understand why cron.php is not called again and again.
In all cases, in my log file, there is only one call. The LAST_CRON_RUN date is updated only by the call and not after.
What do you suggest ?
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Re: version 3.0.2: Call to undefined function logaction [message #165205 is a reply to message #164471] |
Tue, 10 May 2011 11:06 |
eclipsewebmaster
Messages: 46 Registered: November 2009 Location: Ottawa, Ontario, Canada
Karma: 0
|
Member |
|
|
I encountered the logaction and _uid bugs as well, and after examining vercheck.php I fixed them like this:
+++ FUDforum/scripts/nntp.php 10 May 2011 14:30:04 -0000
@@ -79,6 +79,7 @@
fud_use('isearch.inc');
fud_use('replace.inc');
fud_use('rev_fmt.inc');
+ fud_use('logaction.inc');
fud_use('iemail.inc');
fud_use('post_proc.inc');
fud_use('is_perms.inc');
@@ -92,6 +93,7 @@
fud_use('nntp.inc', true);
fud_use('mime_decode.inc', true);
fud_use('scripts_common.inc', true);
+ define('_uid', 1);
|
|
|
|