problem with s9y 1.0 / POPfetcher 1.13

Creating and modifying plugins.
Post Reply
michelsweb
Regular
Posts: 5
Joined: Tue Jul 11, 2006 8:59 am
Location: Hamburg, Germany
Contact:

problem with s9y 1.0 / POPfetcher 1.13

Post by michelsweb »

I have a problem with s9y 1.0 / POPfetcher 1.13:
After installing the POPfetcher I tried to fetch the test mail from the server.
This is the result:
POPfetcher v1.13 @ Tue Jul 11 8:57:46 CEST 2006

FEHLER: Während des Abholvorgangs sind Fehler aufgetreten.:

Fatal error: Call to a member function on a non-object in /home/htdocs/web0/html/blog/plugins/serendipity_event_popfetcher/serendipity_event_popfetcher.php on line 520
Line 520 looks like this:
$pop3->quit();
Does anyone have the same problem with his POPfetcher?!?

Regards,

Michael
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: problem with s9y 1.0 / POPfetcher 1.13

Post by garvinhicking »

Hi!

How did you configure your popfetcher? To me this sounds as if the POP3 login fails or the server is not properly configured/entered?

Regards,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
michelsweb
Regular
Posts: 5
Joined: Tue Jul 11, 2006 8:59 am
Location: Hamburg, Germany
Contact:

Re: problem with s9y 1.0 / POPfetcher 1.13

Post by michelsweb »

garvinhicking wrote:Hi!

How did you configure your popfetcher? To me this sounds as if the POP3 login fails or the server is not properly configured/entered?

Regards,
Garvin
The POP3 settings work fine with my email client. I chose the default folder for storage purposes.

Is it possible that this failure occures due to safe_mode restrictions as safe_mode is set to "on" by default on my root server?!?

Regards,

Michael
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: problem with s9y 1.0 / POPfetcher 1.13

Post by garvinhicking »

Hi!

Are you sure that you are connecting to a POP3 account, and not an IMAP account?

To see what is happening, maybe you could open the plugin file at around line 517 and change that if block to this:

Code: Select all

            // Should have an array. If not, there was an error
            if ( (!$MessArray) or (gettype($MessArray) != "array")) {
                $output = MF_ERROR4.': '.$pop3->ERROR;
                echo '<br />'.$output.'<br />';
                print_r($pop3);
                print_r($MessArray);
                $pop3->quit();
                return true;
            }
This should give you more verbose output and we might see what the problem is.

Regards
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
michelsweb
Regular
Posts: 5
Joined: Tue Jul 11, 2006 8:59 am
Location: Hamburg, Germany
Contact:

Re: problem with s9y 1.0 / POPfetcher 1.13

Post by michelsweb »

garvinhicking wrote:This should give you more verbose output and we might see what the problem is.
I'll give it a try. Thanks so far. I will post the results!

Cheers,

Michael
michelsweb
Regular
Posts: 5
Joined: Tue Jul 11, 2006 8:59 am
Location: Hamburg, Germany
Contact:

Post by michelsweb »

Here it is: the path issue should be easy to solve, but the rest?!?
POPfetcher v1.13 @ Tue Jul 11 14:28:42 CEST 2006

Warning: file(): open_basedir restriction in effect. File(/home/garvin/cvs/serendipity/mail.rfc) is not within the allowed path(s): (/home/htdocs/web0/html/:/home/htdocs/web0/phptmp/:/home/htdocs/web0/files/:/home/htdocs/web0/atd/) in /home/htdocs/web0/html/blog/plugins/serendipity_event_popfetcher/serendipity_event_popfetcher.php on line 513

Warning: file(/home/garvin/cvs/serendipity/mail.rfc): failed to open stream: Operation not permitted in /home/htdocs/web0/html/blog/plugins/serendipity_event_popfetcher/serendipity_event_popfetcher.php on line 513

FEHLER: Während des Abholvorgangs sind Fehler aufgetreten.:

Fatal error: Call to a member function on a non-object in /home/htdocs/web0/html/blog/plugins/serendipity_event_popfetcher/serendipity_event_popfetcher.php on line 522
Regards,

Michael

PS.: Yes, I'm absolutely sure. It's POP3, not IMAP!
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Post by garvinhicking »

Hi!

Oh dang, it's all my fault. I committed a debug versiono f the plugin, which set the debug_file to my test file.

Please upgrade to version 14, or manually search for "$debug_file" and make sure it'S set to "null", by disabling the next line.

Best regards,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
michelsweb
Regular
Posts: 5
Joined: Tue Jul 11, 2006 8:59 am
Location: Hamburg, Germany
Contact:

Post by michelsweb »

Now it works perectly. I already thought that it might have something to do with the path to the debug file, but last time I tried to make POPfetcher work I just removed path and filename ... and of course that didn't work at all.

But now you made me happy!!!
Thanks alot!!!

Cheers,

Michael
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Post by garvinhicking »

Hi!

Great to hear that. Have fun!

Best regards,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
Post Reply