No Comments

Magento route not working at client and need to figure it out remotely

Adding multiple simple products belonging to a configurable product to cart
Attach a schedule in a confirmation email

So here’s the deal – I have an extension made out of several modules, that works on about 10 sites already without any issues.

We just installed on a pretty big client, but for some reason one of the routers simply don’t work (goes 404).

The problem is we can’t talk to this client atm and we can’t access his logs. However, if there were exceptions etc we would know because we have mechanism of sending critical reports back to us (assuming it works).

Here’s what we know:

  • Other routers from other modules work perfectly. just this single route in this module doesn’t work (404).
  • This module and router works on other clients (the exact same code).
  • Its not case-sensitive issue, I doubled checked it + this url works on couple of case-sensitive machines.
  • The module is enabled (xml files are valid), unless he disabled output for this module but I can’t tell if he did.
  • Observers and cronjobs from the module that have the router works. Just the router not.

How can I possibly find this problem? what could be the problem? any guesses and tips would be appreciated.
Like I said, I can’t talk with the client. :/

Here’s the code.

The URL I try to access is:

https://clientdomain.com/company_analytics/CartData/getcart/

And I tried literally any upper/lower case possibility in existence.. so Its not that. Also the url works on other sites.

module/etc/config.xml

<?xml version="1.0"?>
<config>

  <modules>
    <Company_Analytics>
      <version>1.0.0</version>
    </Company_Analytics>
  </modules>

  <global>
    <helpers>
      <company_analytics>
        <class>Company_Analytics_Helper</class>
      </company_analytics>
    </helpers>
    <models>
      <company_analytics>
        <class>Company_Analytics_Model</class>
      </company_analytics>
    </models>
  </global>

  <frontend>
    <events>
        // some events here, all of them work.
    </events>

    // THIS IS THE PROBLEMATIC ROUTER THAT DOESN'T WORK
    <routers>
        <company_analytics>
            <use>standard</use>
            <args>
                <module>Company_Analytics</module>
                <frontName>company_analytics</frontName>
            </args>
        </company_analytics>
    </routers>   

  </frontend>
</config> 

module/controllers/CartDataController.php

<?php

class Company_Analytics_CartDataController extends Mage_Core_Controller_Front_Action
{
    // return the current user cart as json dictionary
    public function getcartAction()
    {
        // do magic here
        // echo magic.
    }
}

I know its not s lot of information and very hard condition but any guesses or maybe you see something that I missed and can explain it?

EDIT: another hint:

Client version is 1.9.1.0, we tested on versions 1.9.1.0, 1.9.2.2, 1.8.1.0 and others.

EDIT 2: is it possible that exception in controller cause 404?

Anything could help. even weird ideas.

Thanks.

Related Posts

  • Magento2: Lots of JS Errors on 2. -> Page Load (0)
    Hi Fellow Magento Users! I have a little problem with loading Javascripts.On first pageload after a cleanup of files and upgrade:setup i experience a page that loads javascripts really slow, and there is a lot of them, but absolutely no errors.however on second load javascripts is […]
  • Magento2 requirejs inclusion (1)
    From what I've read there are 2 ways to include your javascript files: 1) In catalog_product_view.xml you insert <link src="js/product.js"/> and in web/js/product.js you add your js code specific to the product page (old magento1 way). 2) The second way (the way magento2 […]
  • Magento 1: most efficient way to bulk add entities (1)
    So I'm working on a CRUD module that creates entities based on an XML feed. Right now, I'm using Magento system, so I have an array of data that I use to populate my object then call the save() method for my entities. Code example: foreach ($datas as $data) { $entity = […]
  • Disable page cache for a single block (1)
    I have created a new block to sit on the product detail page which contains dynamic content (the customer's recently-viewed products) that should not be cached. How can I switch off caching for that particular block? I've tried the method mentioned in How to disable the cache for […]
  • Magento 2 remove items from wishlist (0)
    I have created a custom module with frontend router as mywishlist_index_index.xml, a custom phtml file contains button on click of which the items should remove from wishlist.There are other button also such as Add to cart. the add to cart is working fine but remove wishlist items is […]
  • Magento – Export product data, with category names and all images (0)
    Magento v 1.9.2.1 I am trying to export all products from a Magento store that includes the SKU, Category Names, and all image paths (preferably on 1 row, and in some delimited field). In a perfect world, I would end up with a CSV with the following headings: sku - product_name - […]
  • Large “error_log” file (0)
    Site is working fine but Apache generate big error log every time I hit the website. As I have investigate : it is cause of illegal char in XML [26-Sep-2016 11:40:47] invalid cache data for cacheId[config_global] {<config><global><install><date>Mon, 22 Jun […]
  • Large “error_log” file (0)
    Site is working fine but Apache generate big error log every time I hit the website. As I have investigate : it is cause of illegal char in XML [26-Sep-2016 11:40:47] invalid cache data for cacheId[config_global] {<config><global><install><date>Mon, 22 Jun […]
  • Grouped product rich snipppets (0)
    We're currently using the Rich Snippet Suite extension in v1.5.1 of Magento. We deal with a lot of variations and grouped product pages with different pricing per item. I'm trying to figure out how to show each products snippet information on each grouped landing page but I'm not […]
  • my.cnf for local MySQL server – several Magento projects with big catalogs (1)
    I've read tons of times there is no magical my.cnf file for a Magento project, but... I want to believe there should be some params specifically relevant for Magento catalog pages when dealing with really big catalogs What I am asking here is some tips to correctly tune those […]
Adding multiple simple products belonging to a configurable product to cart
Attach a schedule in a confirmation email

Be the first to post a comment.

Add a comment

To create code blocks or other preformatted text, indent by four spaces:

    This will be displayed in a monospaced font. The first four 
    spaces will be stripped off, but all other whitespace
    will be preserved.
    
    Markdown is turned off in code blocks:
     [This is not a link](http://example.com)

To create not a block, but an inline code span, use backticks:

Here is some inline `code`.

For more help see http://daringfireball.net/projects/markdown/syntax