Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Contact form
#1
Hello! This looks like a great product!

I am trying it at http://www.rbdslite.com.

I made a Contact Us page using the sample data but it will not save.

I keep getting 404 errors sent to me to (which I told it to do). The error message I receive says:

======

This is an automated message from your website....

A 'page not found' error was encountered on the www.rbdslite.com domain

DETAILS:
----------------------------------------------------------------------
When: Sat Aug 22 2009 2:47:43 pm EDT
Who: 74.140.153.250
Failed Page: http://www.rbdslite.com/admin/template/j..._plugin.js
Referrer: http://www.rbdslite.com/admin/edit.php?uri=contact-us
Browser: firefox 3.5.2

======

I just checked and there was no nonbreaking folder in the GetSimple download that I got.

Could it be something in Firefox causing the problem?

Thanks!
Reply
#2
I'm having a similar problem. I can create the contact page, using the code supplied on the How to Create a Contact Page article. And it saves the page. But I cannot EDIT this page. And since pages default to being not visible on the menu bar, I'm stuck. GS goes through the motions of making changes, such as the menu hierarchy, being published to the menu, etc. But when I hit the SAVE button, nothing happens.

And this ONLY happens with the contact page. I am able to successfully save AND EDIT plain HTML pages.

Testbed is here:

http://getsimple.mytestbed.com
Pixelita Designs
http://www.pixelita.com
Visit Serbia's biggest and best internet forum!
http://www.burek.com
Reply
#3
Oh, browsers. That reminds me. {{smacks forehead}}

My problem exists in all three browsers, FF 3.2, Opera 9.61 and IE7. But I'm wondering about your setup. What version of Firefox are you using, and have you tried in any of the other browsers?
Pixelita Designs
http://www.pixelita.com
Visit Serbia's biggest and best internet forum!
http://www.burek.com
Reply
#4
So is this when you are trying to save and edit the contact page template file, or the contact page from within the page edit screen?

I just tried both, and on my test acct, I am not seeing what is described here...
- Chris
Thanks for using GetSimple! - Download

Please do not email me directly for help regarding GetSimple. Please post all your questions/problems in the forum!
Reply
#5
Hmm. Maybe I'm doing something wrong. I took the code from this page:
http://get-simple.info/docs/howto-contact-form

and plopped it into a new page called "Contact".

But I bet I should have just told it to use contact.php, right? That is template code above, not page code, then? (Be patient with me, I'm a newborn at GS!)
Pixelita Designs
http://www.pixelita.com
Visit Serbia's biggest and best internet forum!
http://www.burek.com
Reply
#6
Hmm. That's not working either. When I select the contact.php template and just put plain HTML in the page text area (like I did with my Test Page), I still get this same behavior. The Save button just won't work. Sad
Pixelita Designs
http://www.pixelita.com
Visit Serbia's biggest and best internet forum!
http://www.burek.com
Reply
#7
aaahhh, i see what the problem here is. the code listed here http://get-simple.info/docs/howto-contact-form is for the template file. I get this "save" problem when i paste it into the textarea on the edit screen.

This brings up one other problem now... I need to do a simple htmlspecialchars on that textarea so no other php will break it.

EDIT: I just fixed the encoding so that PHP code wont break the editor anymore. This will come out in the next release.
- Chris
Thanks for using GetSimple! - Download

Please do not email me directly for help regarding GetSimple. Please post all your questions/problems in the forum!
Reply
#8
Here's what's weird. On the contact page, the buttons are a bit different. It's got a place for email and a button for that plus the SUBMIT button. This is the page that isn't working.

http://getsimple.mytestbed.com/temp/gs-c...having.png

But on the TestPage page that I am able to create and edit without problem, there's just a SAVE button and everything works fine:

http://getsimple.mytestbed.com/temp/gs-t...s-okay.png
Pixelita Designs
http://www.pixelita.com
Visit Serbia's biggest and best internet forum!
http://www.burek.com
Reply
#9
pixelita - i was typing, then i saw your response... you are exactly right. I probably didn't make that clear in the documentation.
- Chris
Thanks for using GetSimple! - Download

Please do not email me directly for help regarding GetSimple. Please post all your questions/problems in the forum!
Reply
#10
My problem was solved anyway. By plopping that template code in at the beginning, I confused GS. I deleted that page, and created a new Contact page, this time choosing the contact.php template, and putting in my leader text and it works perfectly!

http://getsimple.mytestbed.com

Thanks for your time, Chris! I'm loving this little program more and more every minute!
Pixelita Designs
http://www.pixelita.com
Visit Serbia's biggest and best internet forum!
http://www.burek.com
Reply
#11
My contact form is now working thanks to the diligence of Pixelita & Chris! Smile

rhondab Wrote:Hello! This looks like a great product!

I am trying it at http://www.rbdslite.com.

I made a Contact Us page using the sample data but it will not save.

I keep getting 404 errors sent to me to (which I told it to do). The error message I receive says:

======

This is an automated message from your website....

A 'page not found' error was encountered on the www.rbdslite.com domain

DETAILS:
----------------------------------------------------------------------
When: Sat Aug 22 2009 2:47:43 pm EDT
Who: 74.140.153.250
Failed Page: http://www.rbdslite.com/admin/template/j..._plugin.js
Referrer: http://www.rbdslite.com/admin/edit.php?uri=contact-us
Browser: firefox 3.5.2

======

I just checked and there was no nonbreaking folder in the GetSimple download that I got.

Could it be something in Firefox causing the problem?

Thanks!
Reply
#12
Do i need to set "Use Fancy URLs" = on for using the Contact Form?

I tried <form action="/contact" method="post"> and <form class="yform" action="index.php?id=contact" method="post">

I have "Use Fancy URLs" = off and no cURL.
Reply
#13
I don't know if it works without mod_rewrite (pretty URLS), but it works with them turned on. This is the standard code that ships with the contact.php template, doesn't look a thing like what you've described above but works flawlessly.

Code:
<form action="<?php get_page_url(); ?>" method="post" class="contactform" >
                    <?php set_contact_page(); ?>
                    <div><b>Name:</b> <input class="text" type="text" value="<?php print($_POST['contact']['name']); ?>" name="contact[name]" /></div>
                    <div><b>Email:</b> <input class="text" type="text" value="<?php print($_POST['contact']['email']); ?>" name="contact[email]" /></div>
                    <div><b>Subject:</b> <input class="text" type="text" value="<?php print($_POST['contact']['subject']); ?>" name="contact[subject]" /></div>
                    <div><b>Message:</b> <textarea class="text" name="contact[body]" ><?php print($_POST['contact']['body']); ?></textarea></div>
                    <div class="pot" ><input class="text" type="text" value="" name="contact[pot]" /></div>
                    <div><input type="submit" value="Send Email" id="contact-submit" name="contact-submit" /></div>
                </form>

NOTE this code that is required for the form to work at all:
Code:
<?php set_contact_page(); ?>
Pixelita Designs
http://www.pixelita.com
Visit Serbia's biggest and best internet forum!
http://www.burek.com
Reply
#14
Now it works.

I just had to put the url of my contact form in
<form class="yform" action="index.php?id=kontakt" method="post">
Reply
#15
If you don't mind, I'll go back to the original issue here Smile

I have the same 404 problem, but that's everytime I use tiny MCE to edit a page.

Can we safely remove the call to admin/template/js/tiny_mce/plugins/nonbreaking/editor_plugin.js, wherever it is, so that the error no longer occurs ?
Black holes occur when God divides by zero
Reply
#16
tinyMCE is going away anyway - http://get-simple.info/forum/viewtopic.php?id=114
- Chris
Thanks for using GetSimple! - Download

Please do not email me directly for help regarding GetSimple. Please post all your questions/problems in the forum!
Reply
#17
Oh yes, ok, thanks for the notice.
fckeditor is a pretty good choice, I used to implement it in a j2ee based application, which was a bit messy because the java connector was an add_on project but I think it natively supports PHP.
OK, so good !
Black holes occur when God divides by zero
Reply
#18
Uh. ok,.. how do I get this to work? If I use the contact.php page template it is not picking up my style info and I get a 404. if I paste the code into the editor(toggled of course) I get my template but the form does not look right and simply throws me to site.com/<?php get_page_url(); ?> which is how I have it currently. What am I missing? Something simple I would imagine.

would this be because I have and index.html file in front of the site or something?

I am supposed to go live with this stuff tomorrow Sad I dont care if I have to pay someone to fix it.

thanks,
Nigel

Edit: I cant believe I am still awake. I managed to get a fairly complicated php form working but not the contact form. I am off to bed Smile I need to fix this though. I am going to deck for a few hours and hope that someone woke up that can help with this.

N.
Reply
#19
Ive created many contact forms, some pretty complicated and none of them seem to have this issue. When people have this type of problem (seems like there might be some problem on some type of server config) please attach the template file that has the contact form code in it.
- Chris
Thanks for using GetSimple! - Download

Please do not email me directly for help regarding GetSimple. Please post all your questions/problems in the forum!
Reply
#20
I think the problem lies with the questions people are asking. The form works by default.

- The form does not get input into the visual page editor.

- Fancy URL's has absolutely nothing to do with the submission of the form.

- If the form doesn't look right, it's because you need to theme the forms page as well.
Clients always want to be able to change the content of their pages, but they are unwilling to do so.

Have you ever coded in your underwear before?
Reply
#21
I am currently having an issue with my contact form not sending as well..

it works on my test copy www.nickburd.com/development/currietireltd.com
but it does NOT work on the live version www.currietireltd.com

I did a fresh install of the CMS on the live FTP.. still no change.

This is the EXACT code i have for my template contact form...
please advise! This is urgent, the client isn't very satisfied with this issue.

Code:
<form action="<?php get_page_url(); ?>" method="post" class="contactform" >
                                <?php set_contact_page(); ?>
                                <p><label>Name:</label><br />
                                <input type="text" class="text" name="contact[name]" /></p>
                                <p><label>Email:</label><br />
                                <input type="text" class="text" name="contact[email]" /></p>
                                <p><label>Message:</label><br />
                                <textarea class="text" name="contact[message]" ></textarea></p>
                                <div class="pot" ><input class="text" type="text" value="" name="contact[pot]" /></div>
                                <p><input type="submit" class="submit" value="Send Email" id="contact-submit" name="contact-submit" /></p>
                            </form>
Reply
#22
when the user submits the form, what is shown? What if you add the debug.xml file as listed here: http://get-simple.info/theme-developer-tips ?
- Chris
Thanks for using GetSimple! - Download

Please do not email me directly for help regarding GetSimple. Please post all your questions/problems in the forum!
Reply
#23
Your <title></title> tags are wrapped around your meta data. (Nothing to do with your issue though)

Give this code a shot instead.
I've modified everything for you so you can drop it right in. You just need to modify the TO field.
Code:
<?
// PUT THIS ABOVE THE FORM
// MODIFY THE DETAILS
if($_POST["submit"] == true) {
    $to = "your@emailaddress.com";
    $subject = "Contact From Website";
    $message = "Name: ".$_POST["name"];
    $message = $message."\n". "E-mail: ".$_POST["email"];
    $message = $message."\n". "Message: ".$_POST["message"];
    mail($to, $subject, $message);
    $successmsg = "<div id=\"successmsg\">Form Submitted Successfully</div>"; // Use CSS to style the id successmsg
} else {
    $successmgs = "";
}
?>

<?php // PUT THIS IN PLACE OF YOUR CURRENT FORM ?>

<?php echo $successmsg; ?>
<form action="<?php echo $_SERVER['PHP_SELF']; ?>" method="post" class="contactform" >
    <p><label>Name:</label><br />
    <input type="text" class="text" name="name" /></p>
    <p><label>Email:</label><br />
    <input type="text" class="text" name="email" /></p>
    <p><label>Message:</label><br />
    <textarea class="text" name="message" ></textarea></p>
    <p><input type="submit" class="submit" value="Send Email" id="contact-submit" name="submit" /></p>
</form>

I haven't tested it, but it should work.
Clients always want to be able to change the content of their pages, but they are unwilling to do so.

Have you ever coded in your underwear before?
Reply




Users browsing this thread: 1 Guest(s)