Page 1 of 1

popfetcher: external activation problem

Posted: Mon Jan 23, 2006 10:36 am
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

Re: popfetcher: external activation problem

Posted: Mon Jan 23, 2006 10:37 am
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

Posted: Mon Jan 23, 2006 11:12 am
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

Posted: Tue Mar 07, 2006 8:31 am
by davidcrickett
Yes, thanks from me too, it's the first time I have succeeded in making it work! Very nice! :lol:

Re: popfetcher: external activation problem

Posted: Sat Sep 30, 2006 2:00 am
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.

Posted: Sat Sep 30, 2006 9:50 pm
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?

Posted: Mon Oct 02, 2006 4:53 am
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.

Posted: Mon Oct 02, 2006 7:20 pm
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?

Posted: Tue Oct 03, 2006 3:32 am
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