contact form plugin error

Random stuff about serendipity. Discussion, Questions, Paraphernalia.
Post Reply
Dawn
Regular
Posts: 69
Joined: Thu May 04, 2006 11:46 am

contact form plugin error

Post by Dawn »

Hi,

I've tried to install the contact form plugin via Spartacus. As always in the last time it didn't work via Spartacus (in the past it worked without any problems). All rights and owners are correct as I know. So I logged into the server via ssh and installed the plugin manualy (as I did it always since Spartacus doesn't work for me). Then I removed it and reinstalled it again (to fire the correct mysql statements). For about 1s there is an error message which doesn't say much:

Fehler:

Code: Select all

serendipity_event_contactformf15a5219e3ad88b6b88c379fbb639587 (serendipity_event_contactformf15a5219e3ad88b6b88c379fbb639587)
Then the configuration dialog show: I entered everything as needed. But then I tried to access the contact form manualy in both ways: Via index.php?serendipity[subpage]=contactform and /blog/pages/contactform.html. I've turned rewriting on so I think the second one would be the correct one. I don't have other static pages on my blog.

Can I provide some logs or settings to help me?

Any help would be nice...

Greets and best regards,
Dawn
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: contact form plugin error

Post by garvinhicking »

Hi Dawn!

What doesn't work for you in spartacus? Do you have more precise information about that? Which mirror are you using? Did you webserver configuration change, maybe someone installed suhosin or mod_security?

The error message you get comes, when s9y does not find the PHP classfile to include.

How does your serendipity_plugins DB table look like for the contactform plugin entry? And is that plugin completely uploaded to plugins/serendipity_event_contactform?

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/
Dawn
Regular
Posts: 69
Joined: Thu May 04, 2006 11:46 am

Post by Dawn »

Hi Garvin,

Thanks for your fast answer. The settins for Spartacus are still as I described it here: http://board.s9y.org/viewtopic.php?t=11081. The plugindir is still 777 with the owner www-data:www-data.

As I am the the admin of the server where Serendipity is hosted on, I can you give you detailed feedback about the modules: mod_securty isn't installed but I've got PHP 5.2.4 running which has suhosin included. Is this a problem?

The upload of the plugin was correctly. I've downloaded the module via "wget", unziped it via SSH and set the right owner for it (www-data:www-data).

I took a look at the DB: There is an entry called (I have to say I tried around again and istalled it again):

name:
serendipity_event_contactform:73acf498909c18710f619bdc1af49258
placement: event
sort_order: 25
authorid: 0
path: serendipity_event_contactform:73acf498909c18710f619bdc1af49258

Please let me know if I can provide more infos or access to my blog...

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

Post by garvinhicking »

Hi!

Can you try to use the SF.Net server as the mirror for testing if it works then?

And yes, suhosin can be responsible for the problem. Can you temporarily please disable it?
name:
serendipity_event_contactform:73acf498909c18710f619bdc1af49258
placement: event
sort_order: 25
authorid: 0
path: serendipity_event_contactform:73acf498909c18710f619bdc1af49258
The "path" value should always be set to a path. I wouldn't know how it can happen that it contains the same like your "name".

Please remove that column, then go to your s9y blog, go to configure plugins and add the contactform plugin from there.

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/
Dawn
Regular
Posts: 69
Joined: Thu May 04, 2006 11:46 am

Post by Dawn »

I tried to use the sourceforge.net server, but it doesn't work like netmirror.org :(

Disabling suhosin is nearly impossible for me because it's not a loaded module but its compiled int directly in php and it's hard enough to get a working version of PHP 5.2.x together with MySQL 5 for debian. I don't have such a version and I think it would be a security risk. I tought suhosin is nearly the standard for every new php version?

I edited the "path"-field manualy and removed the ":73acf498909c18710f619bdc1af49258 "-part. Then it works! :) Other plugins doesn't have such values in the path value.

There is another problem with the contact form: I use ReCaptcha for my comments with is more secure than a normal captcha I think. To use it, I had to disable captchas in the Anti-Spam Plugin. Is there a way how I can use the contact form with captcha without enabling it for the coments? The nicest thing would be if it would possible to use ReCaptchas for this form but I think then I have to code a new module....

Greets and thanks,
Dawn
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Post by garvinhicking »

Hi!
Dawn wrote:I tried to use the sourceforge.net server, but it doesn't work like netmirror.org :(
Then it must definitely be because of security implications on your site.
Disabling suhosin is nearly impossible for me because it's not a loaded module but its compiled int directly in php and it's hard enough to get a working version of PHP 5.2.x together with MySQL 5 for debian. I don't have such a version and I think it would be a security risk. I tought suhosin is nearly the standard for every new php version?
No, it isn't. You can also search for the INI values to disable everything suhosin related. It can definitely be the root of your problem for spartacus plugins. I'm about 80% sure of it, actually :) The other 20% stem from other connectivity issues that can be caused by certain network connections.
There is another problem with the contact form: I use ReCaptcha for my comments with is more secure than a normal captcha I think. To use it, I had to disable captchas in the Anti-Spam Plugin. Is there a way how I can use the contact form with captcha without enabling it for the coments?
No, there isn't currently.

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