WordPress.org

Ready to get started?Download WordPress

Forums

Fast Secure Contact Form
Image missing/session_start error (4 posts)

  1. glreber
    Member
    Posted 3 years ago #

    Until yesterday your plugin was working great. I am hosted at Godaddy and made a change from a windows/linux hosting to pure linux hosted site. That is when the troubles started.

    At first it was that the captcha image wasn't showing and then i started getting the following errors.

    Warning: session_start() [function.session-start]: open(/var/chroot/home/content/04/8260904/tmp/sess_7d7sah6dp1maohr7gigrrojfk3, O_RDWR) failed: No such file or directory (2) in /home/content/04/8260904/html/wp-content/plugins/si-contact-form/captcha/test/index.php on line 18

    Warning: session_start() [function.session-start]: Cannot send session cookie - headers already sent by (output started at /home/content/04/8260904/html/wp-content/plugins/si-contact-form/captcha/test/index.php:18) in /home/content/04/8260904/html/wp-content/plugins/si-contact-form/captcha/test/index.php on line 18

    Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at /home/content/04/8260904/html/wp-content/plugins/si-contact-form/captcha/test/index.php:18) in /home/content/04/8260904/html/wp-content/plugins/si-contact-form/captcha/test/index.php on line 18

    It seems hit or miss now that i get these errors on my main page or only on the text page provided in the configuration and I still can't see the image regardless. I have removed manually and installed your plugin several times but still not luck.

    I have tried support at Godaddy but they said it is a plugin problem. Any help would be appreciated as your plugin is great.

    Thanks,
    Gary

  2. glreber
    Member
    Posted 3 years ago #

    should have included a link to the page,
    My contact page

    Also note that I have changed themes back to the wp default and still no success. thanks again.

  3. Mike Challis
    Member
    Plugin Author

    Posted 3 years ago #

    I disagree with GoDaddy about this being a plugin problem. Let me explain: PHP is requesting a session cookie when the visitor arrives at the site. The session cookie needs a temporary file to store it's session information. PHP is trying to use this temporary folder to store the session file: open(/var/chroot/home/content/04/8260904/tmp/sess_7d7sah6dp1maohr7gigrrojfk3, O_RDWR)
    The error is failed: No such file or directory

    All this happens at the PHP/server level. The plugin does not control the server, it just tries to open a session. PHP sessions are broken on your hosting account! They need to fix their broken server!

  4. taropaa
    Member
    Posted 2 years ago #

    Well it's both. The plugin was probably not meant for shared hosting.
    You can't really access the sessions directory of a shared server since it would create a world of issues for both you and other users.

    What you can do, is change the session path.
    This link here describes how it is done:

    In your case you would set the session path like this:
    session_save_path(/home/content/04/8260904/html/sessions_folder');
    You can put this code before the session_start() on line 18.

    For some extra security, name your sessions_folder into something random and change the permissions so that it is not web visible. or executable.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic