Roundcube Community Forum

 

PHP error for ContactUs form

Started by jeffshead, May 02, 2011, 03:57:42 PM

Previous topic - Next topic

jeffshead

The contact us form does not work.

I'm using a WAMP set up and I get the following error in the RC log:

[02-May-2011 15:38:16 -0400]: PHP Error: Failed to load plugin file C:/www/mysite.com/plugins\sendmessage\sendmessage.php in C:\www\mysite.com\program\include\rcube_plugin_api.php on line 196 (POST /?_action=plugin.contactus_send?_task=&_action=)

Please notice the mixture of forward and back slashes.

How can I fix?

rosali

Looks like you are using an outdated version. 'sendmessage' plugin is deprecated and recent 'contactus' should be stand alone.
Regards,
Rosali

jeffshead

OK. I removed sendmail from the main config file and double checked my  contactus config file. Still fails to send the message and now I get the following errors when I try to use the contact us form:


[02-May-2011 17:35:40] Invalid response code received from server (535):

[02-May-2011 17:35:40] Invalid response code received from server (-1):

[02-May-2011 17:35:40] Invalid response code received from server (-1):

rosali

Check plugin config. Did you define valid SMTP credentials?
Regards,
Rosali

jeffshead

#4
Here's what I have and the creditials are correct:

<?php

/* contactus plugin */

// recipient
$rcmail_config['contactus_recipient'] = '[email protected]';

// smtp
$rcmail_config['default_smtp_server'] = "localhost";
$rcmail_config['default_smtp_user'] = "[email protected]";
$rcmail_config['default_smtp_pass'] = "MYPASSWORD";

// subject prefix
$rcmail_config['contactus_subject_prefix'] = '[MYSITE.COM - Webmail - Contact Us]';

?>


Basically, the same settings that were used with the 'sendmail' plugin in my previously working version of RC.

I'm using RC trunk 4713 and roundcube-0.5.2-bundle-v1.1.zip.

jeffshead

Registration is not working either.

I get the following error when I try to create a new account:
[02-May-2011 18:30:13 -0400]: DB Error: _doConnect: [Error message: unable to establish a connection]
[Native code: 0]
 ** mysql(mysql)://root:xxx@localhost/hmailserver in C:\www\MYSITE.COM\program\include\rcube_mdb2.php on line 101 (POST /?_action=register&_ajax=1?_task=&_action=)


Could the issue be that some of your current plugins will not work with trunk 4713?