[TYPO3-english] mail2news problem

View: New views
5 Messages — Rating Filter:   Alert me  

[TYPO3-english] mail2news problem

by Christian Hennecke-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hello everybody,

We have just started to use the mail2news extension. It has been working
nicely so far. However, I am a bit concerned about some messages in the
log:

Notice: Undefined index:  ext/mail2news/class.tx_mail2news_imap.php in
/html/typo3conf/ext/mail2news/class.tx_mail2news_imap.php on line 263

Notice: Undefined index:  ext/mail2news/class.tx_mail2news_ttnews.php in
/html/typo3conf/ext/mail2news/class.tx_mail2news_ttnews.php on line 105

Notice: Undefined index:  ext/mail2news/class.tx_mail2news_getmail.php
in /html/typo3conf/ext/mail2news/class.tx_mail2news_getmail.php on line
268

Notice: Only variable references should be returned by reference in
/typo3_src-4.2.6/t3lib/class.t3lib_div.php on line 4605

Notice: Only variable references should be returned by reference in
/typo3_src-4.2.6/t3lib/class.t3lib_div.php on line 4605

Notice: Unknown: Mailbox is empty (errflg=1) in Unknown on line 0

Does anybody else see this? What could be the cause? Is this something
to worry about?

We are running TYPO3 4.2.6 with PHP 5.2. The mail2news script is started
the following: cron starts a shell script that in turn uses the
following call:

/usr/local/php/bin/php_cli /html/typo3/cli_dispatch.phpsh getmail_cli >>
/html/fileadmin/cron_mail2news.log 2>&1
--
"I smell blood and an era of prominent madmen." - W.H. Auden
_______________________________________________
TYPO3-english mailing list
TYPO3-english@...
http://lists.netfielders.de/cgi-bin/mailman/listinfo/typo3-english

Re: [TYPO3-english] mail2news problem

by Loek Hilgersom :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi Christian,

On the sites where I use the mail2news extension I have not encountered this
problem (same TYPO3 and PHP versions). The line numbers where the notices occur
are in all cases the last lines of the class files, the lines added by the
extension kickstarter for including the classes:

if (defined('TYPO3_MODE') &&
$TYPO3_CONF_VARS[TYPO3_MODE]['XCLASS']['ext/mail2news/class.tx_mail2news_imap.php'])
{
include_once($TYPO3_CONF_VARS[TYPO3_MODE]['XCLASS']['ext/mail2news/class.tx_mail2news_imap.php']);
}

I'm not sure what the reason is, but it may be caused by something else than the
extension. Did you try the extension on a different site, or maybe uninstalling
other extensions to see if the notices disappear?

The problem does not seem essential, but I understand you'd prefer to know where
it comes from!
Maybe someone else has a more specific idea?

Loek


Christian Hennecke wrote:

> Hello everybody,
>
> We have just started to use the mail2news extension. It has been working
> nicely so far. However, I am a bit concerned about some messages in the
> log:
>
> Notice: Undefined index:  ext/mail2news/class.tx_mail2news_imap.php in
> /html/typo3conf/ext/mail2news/class.tx_mail2news_imap.php on line 263
>
> Notice: Undefined index:  ext/mail2news/class.tx_mail2news_ttnews.php in
> /html/typo3conf/ext/mail2news/class.tx_mail2news_ttnews.php on line 105
>
> Notice: Undefined index:  ext/mail2news/class.tx_mail2news_getmail.php
> in /html/typo3conf/ext/mail2news/class.tx_mail2news_getmail.php on line
> 268
>
> Notice: Only variable references should be returned by reference in
> /typo3_src-4.2.6/t3lib/class.t3lib_div.php on line 4605
>
> Notice: Only variable references should be returned by reference in
> /typo3_src-4.2.6/t3lib/class.t3lib_div.php on line 4605
>
> Notice: Unknown: Mailbox is empty (errflg=1) in Unknown on line 0
>
> Does anybody else see this? What could be the cause? Is this something
> to worry about?
>
> We are running TYPO3 4.2.6 with PHP 5.2. The mail2news script is started
> the following: cron starts a shell script that in turn uses the
> following call:
>
> /usr/local/php/bin/php_cli /html/typo3/cli_dispatch.phpsh getmail_cli >>
> /html/fileadmin/cron_mail2news.log 2>&1
_______________________________________________
TYPO3-english mailing list
TYPO3-english@...
http://lists.netfielders.de/cgi-bin/mailman/listinfo/typo3-english

Re: [TYPO3-english] mail2news problem

by Christian Hennecke-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On Tue, 7 Jul 2009 08:36:58 UTC, Loek Hilgersom <hilgersom@...>
wrote:

Hi Loek,

> On the sites where I use the mail2news extension I have not encountered this
> problem (same TYPO3 and PHP versions). The line numbers where the notices occur
> are in all cases the last lines of the class files, the lines added by the
> extension kickstarter for including the classes:

[snip]

> I'm not sure what the reason is, but it may be caused by something else than the
> extension. Did you try the extension on a different site, or maybe uninstalling
> other extensions to see if the notices disappear?

Unfortunately, I don't have access to other sites at the moment.

> The problem does not seem essential

Well, that's good to know. So far I haven't noticed any wrong
processing.

>, but I understand you'd prefer to know where
> it comes from!

Yes. I'd hate to be badly surprised one day. ;-)
--
"I smell blood and an era of prominent madmen." - W.H. Auden
_______________________________________________
TYPO3-english mailing list
TYPO3-english@...
http://lists.netfielders.de/cgi-bin/mailman/listinfo/typo3-english

Re: [TYPO3-english] mail2news problem

by Jigal van Hemert-3 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Christian Hennecke wrote:
> We have just started to use the mail2news extension. It has been working
> nicely so far. However, I am a bit concerned about some messages in the
> log:
>
> Notice: Undefined index:  ext/mail2news/class.tx_mail2news_imap.php in
> /html/typo3conf/ext/mail2news/class.tx_mail2news_imap.php on line 263
(...)
> We are running TYPO3 4.2.6 with PHP 5.2. The mail2news script is started
> the following: cron starts a shell script that in turn uses the

Nothing to worry about. These are notices; a low level of "errors"
(errors in a very broad definition).

Apparently your CLI version of PHP has somewhere in php.ini (or other
places where it can be set):
        error_reporting(E_ALL);
or
        error_reporting(-1);

Default for PHP is:
        error_reporting(E_ALL ^ E_NOTICE);
which displays/logs all error except for notices.

The "cause" is the second part of the if-statement:
if (defined('TYPO3_MODE') &&
$TYPO3_CONF_VARS[TYPO3_MODE]['XCLASS']['ext/mail2news/class.tx_mail2news_imap.php'])

This is a very normal way of checking if that element of the array is
defined; in your case it returns FALSE and triggers a notice about the
array index being undefined.

Try to configure your error_reporting to the default and you can sleep
well :-)

Regards,

--
Jigal van Hemert.
_______________________________________________
TYPO3-english mailing list
TYPO3-english@...
http://lists.netfielders.de/cgi-bin/mailman/listinfo/typo3-english

Re: [TYPO3-english] mail2news problem

by Christian Hennecke-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On Tue, 7 Jul 2009 18:06:11 UTC, Jigal van Hemert <jigal@...>
wrote:

> > We have just started to use the mail2news extension. It has been working
> > nicely so far. However, I am a bit concerned about some messages in the
> > log:
> >
> > Notice: Undefined index:  ext/mail2news/class.tx_mail2news_imap.php in
> > /html/typo3conf/ext/mail2news/class.tx_mail2news_imap.php on line 263
> (...)
> > We are running TYPO3 4.2.6 with PHP 5.2. The mail2news script is started
> > the following: cron starts a shell script that in turn uses the
>
> Nothing to worry about. These are notices; a low level of "errors"
> (errors in a very broad definition).
>
> Apparently your CLI version of PHP has somewhere in php.ini (or other
> places where it can be set):
> error_reporting(E_ALL);
> or
> error_reporting(-1);
>
> Default for PHP is:
> error_reporting(E_ALL ^ E_NOTICE);
> which displays/logs all error except for notices.
>
> The "cause" is the second part of the if-statement:
> if (defined('TYPO3_MODE') &&
> $TYPO3_CONF_VARS[TYPO3_MODE]['XCLASS']['ext/mail2news/class.tx_mail2news_imap.php'])
>
> This is a very normal way of checking if that element of the array is
> defined; in your case it returns FALSE and triggers a notice about the
> array index being undefined.
>
> Try to configure your error_reporting to the default and you can sleep
> well :-)

Thank you very much. Although it worked, I had a bad feeling about this.
--
"I smell blood and an era of prominent madmen." - W.H. Auden
_______________________________________________
TYPO3-english mailing list
TYPO3-english@...
http://lists.netfielders.de/cgi-bin/mailman/listinfo/typo3-english