Article ID: 10050, created on Mar 10, 2011, last review on Aug 12, 2014

  • Applies to:
  • Plesk 10.1 for Linux/Unix
  • Plesk Sitebuilder for Linux/Unix

Symptoms

On published site validation of captcha in Contact Form always fails at first time.

Steps to reproduce

  1. Open your domain in subscriber's Control Panel of Parallels Plesk Panel 10.
  2. On page Home click button 'Launch SiteBuilder' to open the domain in Sitebuilder Wizard.
  3. In the main Sitebuilder menu window on page Modules find module 'Contact Form'. Drag the module to any place on the site's page.
  4. Publish the site.
  5. Open the published site and find the Contact Form. Fill in all required fields and captcha and then click button 'Send e-mail'.
There is error "Please fix this field" appear near 'Reload Captcha' even the captcha was put correctly.

Resolution

The problem will be fixed in future update of Sitebuilder that will be released after version 5.1. The component will be included into Parallels Plesk Panel after version 10.1.1.

Hotfix for Sitebuilder 5.1 (Parallels Plesk Panel 10.1.1) is in the attachment. Download the attached archive to the server and execute the following command to install it:

~# tar -zxf sitebuilder_510_capture_patch.tgz -C /usr/local/sb

After the hotfix was installed please remove all files /var/www/vhosts/DOMAIN.TLD/httpdocs/*_publication_list.xml and publish the site anew.  Where DOMAIN.TLD is domain name that experiences the problem.

Please remember to clean cache in your web browser.

Additional information

If the issue remained after the hotfix was installed take a look into domain's Apache error log file for details. The following error may be shown in log:

/var/www/vhosts/DOMAIN.TLD/statistics/logs/error_log
--->8---
[Tue Apr 05 06:44:02 2011] [warn] [client NNN.NNN.NNN.NNN] mod_fcgid: stderr: PHP Warning:  session_start() [<a href='function.session-start'>function.session-start</a>]: open(/var/lib/php/session/sess_2pn492ki7pheqsk2guc7ueh833, O_RDWR) failed: Permission denied (13) in /var/www/vhosts/DOMAIN.TLD/httpdocs/components/kcaptcha/index.php on line 31, referer: http://DOMAIN.TLD/page7.php
[Tue Apr 05 06:44:02 2011] [warn] [client NNN.NNN.NNN.NNN] mod_fcgid: stderr: PHP Warning:  Unknown: open(/var/lib/php/session/sess_2pn492ki7pheqsk2guc7ueh833, O_RDWR) failed: Permission denied (13) in Unknown on line 0, referer: http://DOMAIN.TLD/page7.php
[Tue Apr 05 06:44:02 2011] [warn] [client NNN.NNN.NNN.NNN] mod_fcgid: stderr: PHP Warning:  Unknown: Failed to write session data (files). Please verify that the current setting of session.save_path is correct (/var/lib/php/session) in Unknown on line 0, referer: http://DOMAIN.TLD/page7.php
---8<---


This is caused by lack of permissions for session file:

~# grep ^session.save_path /etc/php.ini
session.save_path = "/var/lib/php/session"
~#


Consider either switch PHP processing mode onto "Apache module" or deal with it as described in the article:
7056 -- PHP on domain running via CGI/FastCGI can't use session by default

Attachments

d055be4fdc562a8ecb8e6d0bf419f946 fad6dc0c8e983c17ae70a51ac7952cd0 def31538ba607bde27398f48ab5956be a914db3fdc7a53ddcfd1b2db8f5a1b9c 29d1e90fd304f01e6420fbe60f66f838 dd0611b6086474193d9bf78e2b293040 56797cefb1efc9130f7c48a7d1db0f0c

Email subscription for changes to this article
Save as PDF