Getting a Magento 404 error when accessing the module settings through admin panel


So I downloaded the Magento free blog extension but it only supports a single blog. So I duplicated the extension as I need more than one blog in my magento store. I changed all the references and calls appropriately in my extension copy and was able to install it as a separate extension.

However when I want to create a new post from the admin panel it gives me a Magento 404 error.

I would appreciate if someone could take a look and let me know what I am missing.

Please NOTE that I use two environments for testing:

  1. a local installation of Magento through MAMP/WAMP (prepackaged LAMP desktop environment for Mac and Windows) with PHP 5.2.6, MySQL 5 and Apache 2.0.59

  2. a Webserver with PHP 5.2.10, MySQL 5.x and Apache 2.x

On my local MAMP/WAMP I am able to create a blog without a problem. However when I test it from a live server I am no longer able to create new blog post and the redirection to the admin page of the create post page gives me a magento 404 error.

I have been thinking that this might have to do with some server settings but I am not sure at all and would appreciate if someone else could look into this for me.



10/23/2009 3:07:38 PM

Accepted Answer

First a scold, then some help, because that's how StackOverflow rolls. Unless you're really conversant with Magento conventions, chances are you didn't change enough of the right things.

  1. Read up on the controller distach process in Magento and try tracing its progress

  2. So, that read, you now know your frontname here is "vblog_admin". Are ANY pages with this front name loading? If not, check your <routers> section of your customized module

  3. Your controller name is "manage_vblog", which means in the customized module you should have a controller at the following location: ModuleName/controllers/Manage/Vblog.php.

  4. Once you've ensured that controller is in place, make sure it has a newAction method on it.

If any of the above steps fail, magento will 404 on you. Finally, in


Search for the text getControllerFileName. This is where your controller gets its name, as well as the general area of the system where Magento decides if it has a legitimate request or not.

Update: Based on the file provided below (and private communication) it looks like it's your naming conventions that are causing the problem. Magento is extrodinarly strict about its camel case naming convention


should be


in all instances of class and filenames. While PHP itself doesn't care about case in classnames, msot linux servers DO case about case. Magento can't find your controller class file because of this and that's why you're getting a 404.

9/20/2009 9:56:04 PM

Licensed under: CC-BY-SA with attribution
Not affiliated with: Stack Overflow