Joomla Jumpstart

  • Increase font size
  • Default font size
  • Decrease font size
Home General Joomla! Frequently Asked Questions (FAQs) Why a 404 error when clicking a component link after successful installation?

Why a 404 error when clicking a component link after successful installation?

E-mail Print PDF
User Rating: / 10
PoorBest 

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.

 

Warning: file_get_contents(http://search.twitter.com/search.json?q=extension%20component%20installation%20joomla menu) [function.file-get-contents]: failed to open stream: HTTP request failed! HTTP/1.0 400 Bad Request in /home/content/d/a/n/danr72/html/modules/mod_twitter/mod_twitter.php on line 76

Warning: shuffle() expects parameter 1 to be array, null given in /home/content/d/a/n/danr72/html/modules/mod_twitter/mod_twitter.php on line 93

Warning: Invalid argument supplied for foreach() in /home/content/d/a/n/danr72/html/modules/mod_twitter/mod_twitter.php on line 94

Google AdSense


Coffee and Cream Publishing