skip to Main Content

We’ve updated a Magento installation from 1.9.0.1 to 1.9.3.6. Had to re-code a custom module. Everything is working just fine on our local dev machines, which are a clone of the production server:

Nginx, PHP 5.6.30, MySQL

When we push the revision to production, everything works just fine, the admin panel shows Magento 1.9.3.6 but this one custom module (which modifies the admin customer detail view) throws a 404 error once a form is submitted.

All of this works perfectly fine on our local dev.

We’ve deleted the cache, re-indexed all data and triple checked that the code was transferred correctly. Everything matches the local dev but the custom module throws a 404 error on the prod server.

My questions:

  1. Any idea what is going on here ?

  2. Since the 404 Magento error page does not state any useful debug information, how can we debug the routing on the prod server?


controller class located at appcodelocalTestCustomCustomerFieldscontrollersAdminhtmlCustomCustomerFieldsIndexController.php:

class Test_CustomCustomerFields_Adminhtml_CustomCustomerFields_IndexController extends Mage_Adminhtml_Controller_Action {}

module config.xml:

...
<admin>
    <routers>
        <adminhtml>
          <args>
              <modules>
                  <customcustomerfields before="Mage_Adminhtml">Test_CustomCustomerFields_Adminhtml</customcustomerfields>
              </modules>
          </args>
        </adminhtml>
    </routers>
</admin>
...

2

Answers


  1. Chosen as BEST ANSWER

    turned out to be a camelcase folder name problem that did NOT affect Ubuntu (local dev, Vagrant) as the custom module worked just fine over there, but on CentOS (prod server), the camelcase error triggered a not readable filepath, which in turn lead to the 404...

    I debugged the routing via the appcodecoreMageCoreControllerVarienRouterStandard.php class.


  2. class Test_CustomCustomerFields_Adminhtml_CustomCustomerFields_IndexController extends Mage_Adminhtml_CustomcustomerfieldsController

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search