popfetcher: external activation problem

Creating and modifying plugins.
Post Reply
pshock
Regular
Posts: 11
Joined: Fri Apr 29, 2005 2:00 am

popfetcher: external activation problem

Post by pshock »

Hi,
I've set up the popfetcher plugin and it works fine from admin when set to internal.

But no mater what url I try when set to external, I can't get it to work.

The instructions say:
The external launch URL for POPfetcher looks like this:
http://www.yourblog.com/serendipity/ind ... ECRET_WORD
Or if Apache URL rewriting is on, you can use this format:
http://www.yourblog.com/serendipity/plugin/SECRET_WORD
How does it pull from the pop box when the plugin directory is actually called pluginS?

Should the actual url be
http://www.URL/serendipity/serendipity_ ... ECRET_WORD
or
http://www.URL/serendipity/serendipity_ ... ECRET_WORD

The closest I've managed to come to getting it working externally is using
url/serendipity/plugins/serendipity_event_popfetcher/serendipity_event_popfetcher.php/SECRET_WORD
but that gave me this error:-
Fatal error: Class serendipity_event_popfetcher: Cannot inherit from undefined class serendipity_event in /path/to/s9y/plugins/serendipity_event_popfetcher/serendipity_event_popfetcher.php on line 44

All other variations give me 404 errors.

Thanks for your time
Kev
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: popfetcher: external activation problem

Post by garvinhicking »

Actually the path "plugin" is correct! It has nothing to do with your "plugins" directory.

"plugin" is a virtual directory that is used to execute internal plugins.

The URL like

Code: Select all

http://www.yourblog.com/serendipity/plugin/SECRET_WORD
does only work when you are using mod_rewrite or apache error handling. If you are using no URL rewriting, the URL would look like this:

Code: Select all

http://www.yourblog.com/serendipity/index.php?/plugin/SECRET_WORD
HTH,
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/
pshock
Regular
Posts: 11
Joined: Fri Apr 29, 2005 2:00 am

Post by pshock »

Thanks Garvin,
That helped loads!

All you need to do now is add something along the lines of:
'and don't forget to double check the spelling of your secret word'
the the instructions ....
:oops: :oops: :oops:

Kev
davidcrickett
Regular
Posts: 83
Joined: Sat Oct 01, 2005 10:25 am
Location: Denmark
Contact:

Post by davidcrickett »

Yes, thanks from me too, it's the first time I have succeeded in making it work! Very nice! :lol:
read my serendipity blog
http://blangstrup.info
walt
Posts: 3
Joined: Sat Sep 30, 2006 1:34 am

Re: popfetcher: external activation problem

Post by walt »

Hi,

I love this OpenSource Blog and have been using it for several months. I love that I can fetch POP3 emails without using the PHP IMAP Extension since GoDaddy won't install it for me. However, I have been launching the PopFetcher from the Admin also, because I can't seem to figure out now to launch it externally. I've tried using both of these
garvinhicking wrote:
"plugin" is a virtual directory that is used to execute internal plugins.

The URL like

Code: Select all

http://www.yourblog.com/serendipity/plugin/SECRET_WORD
does only work when you are using mod_rewrite or apache error handling. If you are using no URL rewriting, the URL would look like this:

Code: Select all

http://www.yourblog.com/serendipity/index.php?/plugin/SECRET_WORD
both with and without mod_rewrite activated. I just used the links as a bookmark, but my test email doesn't get fetched. (I've quadruple checked my spelling as well). I don't have access to crontab or any other way to run cronjobs, even though I tried to turn on that even plugin at one point also with no luck. Any idea what I'm doing wrong? Is there some other way to access this URL that I am not noticing?


It works internally so I don't think it is my settings but here they are anyway:

Serendipity 1.0
PHP 4.3.11
POPFetcher 1.14

Execute When?: daily
Plugin Type: External
External Launch Name: xxxxx_xxxxx


Any help is greatly appreciated.
judebert
Regular
Posts: 2478
Joined: Sat Oct 15, 2005 6:57 am
Location: Orlando, FL
Contact:

Post by judebert »

Hmmm...

It checks for two things: "Plugin Type" set to "External" in POPfetcher configuration, and that you used plugin/SECRETNAME_something. The SECRETNAME is whatever you set up as the "External Launch Name" in the POPfetcher configuration. It can't have underscores, and should probably only use alphanumeric ASCII characters.

The fact that you launch it from admin makes me think that maybe your Plugin Type is set to internal?
Judebert
---
Website | Wishlist | PayPal
walt
Posts: 3
Joined: Sat Sep 30, 2006 1:34 am

Post by walt »

judebert wrote:Hmmm...

It checks for two things: "Plugin Type" set to "External" in POPfetcher configuration, and that you used plugin/SECRETNAME_something. The SECRETNAME is whatever you set up as the "External Launch Name" in the POPfetcher configuration. It can't have underscores, and should probably only use alphanumeric ASCII characters.

The fact that you launch it from admin makes me think that maybe your Plugin Type is set to internal?
judebert,

Thanks for the quick reply. I figured out because my secret word had an underscore it was not launching externally, which brings up a suggestion: maybe in the next version under the "External Launch Name" there could be a friendly note to not use underscores or special characters. However this is probably known by the regular hacks out there. I am still too new to php/sql open source applications.

Thank you sooo much though!!! This really helped and is a testament as to how friendly and quick the developers and contributors of Serendipity. Take note all who are comparing the various OpenSource Blog applications out there. This will help you to see through the fog.
judebert
Regular
Posts: 2478
Joined: Sat Oct 15, 2005 6:57 am
Location: Orlando, FL
Contact:

Post by judebert »

Good idea, and I just added it to CVS for the English language. Unfortunately, I can't do any other languages (except maybe Spanish, but I'm really poor at that) unless I go through Google (which is probably worse than I am).

Anybody want to add the warning for other languages?
Judebert
---
Website | Wishlist | PayPal
walt
Posts: 3
Joined: Sat Sep 30, 2006 1:34 am

Post by walt »

judebert wrote: Anybody want to add the warning for other languages?
Wish I could, unfortunately I don't even know php yet, much less spanish. Maybe someday though. Then I can contribute on many levels. :D
Post Reply