Problem using contact form
Auteur : Bill W.
Visité 1518,
Followers 1,
Partagé 0
I get the following error when I submit the contact form. It says no such file or directory but I'm not sure what they are referring to:
20200526T103304: ststephendp.org/eng/wsx5-20200526143302-c6k6zryi.php PHP Warning: session_start(): open(/var/php_sessions/sess_4ss92gknv7lq7jdtvf7jrstlfrvldacb, O_RDWR) failed: No such file or directory (2) in /hermes/bosnacweb01/bosnacweb01aa/b1413/ipg.ststephendporg/eng/wsx5-20200526143302-c6k6zryi.php on line 83 PHP Warning: session_start(): Failed to read session data: files (path: /var/php_sessions) in /hermes/bosnacweb01/bosnacweb01aa/b1413/ipg.ststephendporg/eng/wsx5-20200526143302-c6k6zryi.php on line 83
Posté le
Hello Bill,
This is a server issue as opposed to a WebSite X5 issue.
Your webhost will be able to help you resolve this. Ask them to verify the validity of your session save path on the server.
https://www.ipage.com/help/article/scripting-how-to-designate-the-php-session-save-path
Kind regards,
Paul
Search the WebSite X5 Help Center
Apparently iPage are one of the few hosts who expect clients to manually change their server session save path:
https://www.atnsolutions.com/questions/385/how-to-change-php-sessions-save-path-on-ipage-hosting
Auteur
Thanks I discovered that i had the wrong host path. I corrected that and that cleared up the connection problem but now i see a row inserted on the database but no data. I can insert into the database in mysql but not from the contact form, any suggestions?
Are the database user credentials and privileges exactly the same for both phpMyAdmin (or whatever software you are using) and WebSite X5?
Are you running at least MySQL version 5.7 on the server?
Did you create the table in the database manually? If so, try deleting it and letting WebSite X5 create it automatically.
What do your server error logs say? This could be another iPage specific hosting issue.
Auteur
I wasn't aware that website X5 would automatically create a database. I can't find any documentation on that.
It won't create the database, but it will create the table:
Table Name: enter the name of the table in the database where you want submitted data to be added. If the table doesn't exist, it will be created automatically.
ref: https://help.websitex5.com/en/v2020.1/pro/index.html?ins_form_tab2.htm
Auteur
I removed the table I created and let website x5 build it and that did the trick. Thanks for your help and patience!