Home Tips and Instructions Joomla! Tips and Instructions Fixing 404 - Contact not found Error When Using the HP Router Plugin
Fixing 404 - Contact not found Error When Using the HP Router Plugin PDF Print E-mail

This article explains how to fix the 404 - Contact not found error that is received after a visitor clicks on Send from a Contact form when using the HP Router (version 0.2) Joomla! extension and Joomla! 1.5. (Specifically I have used this fix for Joomla! 1.5.7 and 1.5.8.)

The fix requires making a change to the default_form.php file. The path to this file from your root Joomla! directory is:

components/com_contact/views/contact/tmpl/default_form.php.

You can either download the default_form.php file from this location via FTP, make the changes, and then upload it or you can just make the changes online if you are using cPanel or a similar. Regardless of which method you use be sure to make a backup copy before making any changes to the file!

You need to change the form action from <?php echo JRoute::_( 'index.php' );?> to just simply index.php. (See below.) To do this I recommend using the Find/Search tool built into the software application that you are using to edit the file. (It doesn't matter whether you are in a web browser or a text editing application pressing Ctr + F or Apple/Command + F on your keyboard will open the Find/Search tool.)

Locate

"<?php echo JRoute::_( 'index.php' );?>"

and replace it with:

"index.php"

This should be all that you have to do to get Joomla's Contact