Magento contact form gives 404 page on submit? - magento

I searched the net to find a solution for this, but all I could find does not work in my case. I have a contact CMS page under https://example.com/contact-us.
The form displays fine. When I fill in data and hit the submit button, it gives me the 404 error.
I tried all possible URLs for the form URL, but none of them worked so far. This is what I am currently using:
{{block type="core/template" name="contactForm" form_action="https://example.com/index.php/contacts/index/post/" template="contacts/form.phtml"}}
Could the https be the problem? If not, what else could I try?
Thanks!

Try this one:
{{block type="core/template" name="contactForm" form_action="/contacts/index/post" template="contacts/form.phtml"}}
or
{{block type="core/template" name="contactForm" form_action="{{store direct_url='contacts'}}/index/post" template="contacts/form.phtml"}}
Please notice form_action.

Related

I want to view my recent Blog post on my footer (Magento)

I am using this extension on Magento
http://www.magentocommerce.com/magento-connect/nblog-blog-extension-by-neotheme.html
My blog page is working fine but i want show the recent 3 posts on my footer.
i am not getting any solution for it.
If any one Know this please help me
Check your app\design\frontend\base\default\layout\neotheme\blog.xml.
Add this code in the <default> tag
<reference name="footer">
<block type="neotheme_blog/widget_post_list" name="blog.latest.posts"/>
</reference>
use the following code in default tag of blog.xml
<block type="neotheme_blog/widget_post_list" after="blog.category.list" name="blog.latest.posts">
<action method="setPostCount"><param>5</param></action>
</block>
where between param tag you can enter any digit. the blog will show the no. of posts accordingly.

Contact Form gives me a 404 page in MAGENTO

I’m new I magento and it is giving me a lot of headaches. I can’t get the contact form to work, this is the URL
http://blokeundees.com.au/index.php/contact
My code on the contact us block is
{{block type="core/template" name="contactForm" form_action="http://blokeundees.com.au/index.php/contacts/index/post/" template="contacts/form.phtml"}}
also tried
{{block type="core/template" name="contactForm" form_action="/contacts/index/post/" template="contacts/form.phtml"}}
But with this one is sending to a The requested URL /contacts/index/post/ was not found on this server page
My configuration is:
Enable Contact Us -> Yes
I don’t know what to do and can’t find a solution
Hope somebody can help me
Thanks
Make sure the contact form is enabled in the backend:
System -> Configuration -> General -> Contacts -> Contact Us -> Enable
Dude, I just clicked on the above link and filled the contact form and submitted a comment also. But you are saying it gives 404 error. Can you please clear your browser cache(by ctrl+F5) and reload the page once again??
I have the same problem. My solution is as follows:
My domain root URL: www.example.com/online/
The page URL with the contact form: www.example.com/online/contact-us
If you want the post action working, you have to make sure the path for contacts/index/post is under your domain root path. In my case, I use this one
{{block type="core/template" name="contactForm" form_action="../contacts/index/post/" template="contacts/form.phtml"}}
Once I click the sumbit button, the url goes to www.example.com/online/contacts/index/post/ and the page shows that "Your inquiry was submitted and will be responded to as soon as possible. Thank you for contacting us."
In your template
/template/contacts/form.phtml
change form action from contacts/index/post/ to contacts/index/save/

Magento Newsletter form not working

I am trying to add a newsletter signup form to my Magento site creativeinfusion.com.au/shop
The problem is that the email address doesn't get added to the subscribers list.
I have tried both of these below in my content block.
{{block type="core/template" template="newsletter/subscribe.phtml"}}
{{block type="newsletter/subscribe" template="newsletter/subscribe.phtml"}}
Neither one adds the subscribers email address to the CMS. I am assuming that the code above is not linking to the correct file?
This code:
{{block type="newsletter/subscribe" template="newsletter/subscribe.phtml"}}
Works great for V-1.7.x.x.
The correct line to add to the cms is the following:
{{block type="newsletter/subscribe" template="newsletter/subscribe.phtml"}}
Because newsletter/subscribe is the correct block. I added it in a clean Magento installation and it worked fine.
What is happening for you? Is the subscription form not showing at all? Is it not posting? Is it not storing the entered email adresses?
Since it works out of the box it sounds like it could be some other module or js/css that interferes with the process.
{{block type="newsletter/subscribe" template="newsletter/subscribe.phtml"}} <- This works for me.

Frontend Customer Registration and newsletter subcription not working in magento 1.6.2

I can't figure out what the real problem is..
When I click the link login in the header it takes me to the customer login page..
But on that page none of the buttons works after submitting the data..
Login button on customer login page does not work
Submit Button on create account page does not work..
Newsletter subcription button does not work...
Lad, have the same problem with newsletter.
Just installed the new version of Magento, 1.6.2.0 and didn't see the input.
Insert this:
<reference name="footer">
<block type="newsletter/subscribe" name="footer_newsletter" as="footer_newsletter" before="cms_footer_address" template="newsletter/subscribe.phtml"/>
</reference>
into /app/design/frontend/YOUR-PACKAGE/YOUR-THEME/layout/newsletter.xml into block.
Then go to /app/design/frontend/YOUR-PACKAGE/YOUR-THEME/template/page/html/footer.phtml, find there this:
<?php echo $this->getChildHtml() ?>
replace with this:
<?php echo $this->getChildHtml('footer_newsletter') ?>
It worked to me. I havent review login page, but I hope my advice with the newsletter will be useful. Good luck!

Newsletter Signup on CMS page in Magento

How can I add Magento's default newsletter signup module within a CMS page? Thanks
found it.
{{block type="newsletter/subscribe" template="newsletter/subscribe.phtml"}}
The mentioned code adds a signup form to a CMS page, but it was non-working for me.
Changing the block type to newsletter/subscribe fixed that. So working code for me was:
{{block type="newsletter/subscribe" template="newsletter/subscribe.phtml"}}
Real answer has been added already,
{{block type="newsletter/subscribe" template="newsletter/subscribe.phtml"}}
but it does not work for some people (on newer versions of Magento). The reason for this, most likely, are block permissions.
The block (newsletter/subscribe) is not allowed on frontend by default. Go to
System > Permissions > Blocks
and enable it.
Use this in the layout update section of the specific page you want to change.
<reference name="right">
<block type="newsletter/subscribe" name="left.newsletter" template="newsletter/subscribe.phtml"/>
</reference>
My configurations
Check out the image attached above, it worked for me.
I went to home page's design tab, and added those lines in "Page Layout".
<block type="newsletter/subscribe" name="home.footer.newsletter" template="newsletter/subscribe-mini.phtml" />
as you can see those lines in the image too.

Resources