close ad
WARNING: Do Not Install the DREAMWEAVER CC 2017 or 2018 Update »
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

Re: Contact Form Solution Pack

Thread began 11/07/2014 8:19 pm by pasalis379706 | Last modified 11/17/2014 11:15 am by Jason Byrnes | 722 views | 11 replies |

pasalis379706

Re: Contact Form Solution Pack

Hi

I have built a website that uses the Contact Form Solution Pack. It works fine on a site that I use for testing but when it is uploaded onto my client's Web Host it fails. This is most obvious in that the thankyou.php page is successfully loaded in the former case and not in the latter. Please visit http://www.genocharts.com/agentsolarnew/contactus.php and http://www.agentsolar.com.au/contactus.php to view this behaviour. The Web Host for the working former option is www.smartyhost.com.au/ and is www.ipage.com for the latter. Please advise on what action(s) I should take.

Regards

Peter de Salis

Sign in to reply to this post

Jason ByrnesWebAssist

Most likely there is an error causing the redirect to fail, add the following code at line 1 to turn on error reporting:

<?php
error_reporting(E_ALL);
ini_set('display_errors','on');
?>
Sign in to reply to this post

pasalis379706

Hi Jason

I have added the code that you provided and there are a number of errors reported. I would be very grateful If you would complete the form on http://www.agentsolar.com.au/contactus.php to view these errors and advise of what modifications should be made.

Regards

Peter de Salis

Sign in to reply to this post

Jason ByrnesWebAssist

the first error is the cause of the others.

Warning: session_start(): open(/var/php_sessions/sess_aa2d51612e833dc563d5f27f7f48f8b6, O_RDWR) failed: No such file or directory

this means that the path for the session.save_start setting in the php.ini file is not correct.

you will need to contact the host to have them fix this problem for you, it is a server configuration issue.

Sign in to reply to this post

pasalis379706

Hi Jason

Thanks for your help. The Web Host has now updated the php.ini file so that no errors are reported when the http://www.agentsolar.com.au/contactus.php page is loaded. However there are more errors reported when the Contact Form is submitted.

The Form Data is being sent to the nominated Email address successfully though, however the Thank You page is not being loaded.

I would again be very grateful if you would once again complete the form on http://www.agentsolar.com.au/contactus.php to view these new errors and again advise of what modifications should be made.

Regards

Peter de Salis

Sign in to reply to this post

Jason ByrnesWebAssist

attached are updated copies of the WA_ValidationToolkit/WAVT_Scripts_PHP.php and WA_Universal_Email/MailFormatting_PHP.php files to fix the errors.

Attached Files
Archive.zip
Sign in to reply to this post

pasalis379706

Hi Jason

I have uploaded the updated copies of the WA_ValidationToolkit/WAVT_Scripts_PHP.php and WA_Universal_Email/MailFormatting_PHP.php files.

However there are more new errors reported when the Contact Form is submitted.

The Form Data is NO LONGER being sent to the nominated Email address and the Thank You page is still not being loaded.

I would again be very grateful if you would once again complete the form on http://www.agentsolar.com.au/contactus.php to view these new errors and again advise of what modifications should be made. Hopefully we're getting closer to resolving this problem.

If you would like to work directly with the website the account details are listed below in the Private Message section. This may save some time.

Regards

Peter de Salis

Sign in to reply to this post

Jason ByrnesWebAssist

Sorry, i had a syntax error in one of the updated files i sent, I have corrected the error.

Sign in to reply to this post

pasalis379706

Hi Jason

Thanks for all your help. Unfortunately I've just done something stupid and I have over-written the contacus.php file that you edited. I wasn't aware that it had changed. Would you please upload it again so that I can back it up properly. Also would you please retest the Form to see that everything is still working.

Sorry for being so clumsy.

Please note that I use this Form to collect data on many of the other pages. They also require updating so please advise me of how to do this or if you're feeling extremely helpful I would appreciate it if you would update them and then test that these Forms are working properly as well. They are currently sending all of the data to the nominated email address but the Thank You page is not loading as was/is the case with contactus.php.

Kind regards

Peter de Salis

Sign in to reply to this post

Jason ByrnesWebAssist

on testing your contact form, with error reporting enabled, i see the following error:
Warning: Cannot modify header information - headers already sent by (output started at /hermes/bosoraweb010/b80/ipg.agentsolarcomau/contactus.php:17) in

it is pointing to out put on the page around line 17:
output started at /hermes/bosoraweb010/b80/ipg.agentsolarcomau/contactus.php:17

causing the header function which is used for the redirect to fail.

the code at line 15 - 19:

<?php require_once("WA_Universal_Email/MailFormatting_PHP.php"); ?>

<?php $WAGLOBAL_Contact_Email_Subject = "Agent Solar - Contact Form Response" ; ?>

<?php



has blank lines between php code blocks at line 16 and line 18.

there should not be any blank line, space or other between a closing php tag:
?>

and the next opening php tag:
<?php

so that code at 16 - 19, should be:

<?php require_once("WA_Universal_Email/MailFormatting_PHP.php"); ?>
<?php $WAGLOBAL_Contact_Email_Subject = "Agent Solar - Contact Form Response" ; ?>
<?php



i edited that to correct the redirect issue.

attached are properly updated copies of the WA_ValidationToolkit/WAVT_Scripts_PHP.php and WA_Universal_Email/MailFormatting_PHP.php files to fix the deprecated error messages.

Attached Files
Archive.zip
Sign in to reply to this post
loading

Build websites with a little help from your friends

Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.

Build websites from already-built web applications

These out-of-the-box solutions provide you proven, tested applications that can be up and running now.  Build a store, a gallery, or a web-based email solution.

Want your website pre-built and hosted?

Close Windowclose

Rate your experience or provide feedback on this page

Account or customer service questions?
Please user our contact form.

Need technical support?
Please visit support to ask a question

Content

rating

Layout

rating

Ease of use

rating

security code refresh image

We do not respond to comments submitted from this page directly, but we do read and analyze any feedback and will use it to help make your experience better in the future.

Close Windowclose

We were unable to retrieve the attached file

Close Windowclose

Attach and remove files

add attachmentAdd attachment
Close Windowclose

Enter the URL you would like to link to in your post

Close Windowclose

This is how you use right click RTF editing

Enable right click RTF editing option allows you to add html markup into your tutorial such as images, bulleted lists, files and more...

-- click to close --

Uploading file...