When I install the Joomla! component I'm developing, it says that installation was successful. Why is it that when I connect a menu item to the component and click on the item, it gives a 404 - File Not Found error?
In the XML descriptor file for the component, the name of the component (ignoring case and whitespace) must match the filename of the component. For example, the following installation descriptor file has these two parameters bolded:
<?xml version="1.0" encoding="utf-8"?>
<install version="1.5.0" type="component">
<name>Content Vacuum</name>
<author>Dan Rahmel</author>
<creationDate>August 2007</creationDate>
<copyright>(C) 2007 Dan Rahmel. All rights reserved.</copyright>
<version>1.0.0</version>
<description>Content Vacuum component</description>
<files>
<filename module="contentvacuum">contentvacuum.php</filename>
</files>
<administration>
<menu>ContentVacuum</menu>
<files>
<filename module="contentvacuum">contentvacuum.php</filename>
</files>
</administration>
</install>
If the name of the component file had been com_contentvacuum.php in the above code, a 404 error would result. Likewise, if the name element in the XML was set to Content Vacuum component a 404 error would be generated when a menu linked to the component was clicked.



Del.ici.ous


