We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 33969
    • 60 Posts
    I wrote a simple CMP to manage an online contest. The package works on my development server but fails when I moved it to the production server. (I just copied the files over and used the build code found in the 'Doodles' tutorial.)

    Specifically - the lexicon file is not being found by the grid (contests.grid.js) - all the field names are missing. Everything else is working, I can update the data in the grid - I just done have field names.

    When this has happened in the past I have just deleted the namespace and then added everything again - but this time that didn't work. The 'Lexicon Manager' and the 'Components Menu' load the file and have the correct values and it is being loaded into the cache. It just doesn't load in the grid.

    Any ideas on where to look would be appreciated.

    This question has been answered by timrca. See the first response.

      Michael Regan
      TIMR Web Services
      Phone: 250.218.5284
      Eamil: [email protected]
      Website: timr.ca
    • discuss.answer
      • 33969
      • 60 Posts
      [SOLVED]
      I found the answer - still don't know why it is happening - but I found the fix.

      The 'lang_topics' field wasn't being filled in the 'actions' table. I added the default lexicon, in my case 'contests:default' - but that didn't comletely clear the problem.

      I had to go in and manually delete the cache, the 'action_map' doesn't seem to be deleted when you just do a 'Clear Cache'. I logged out and cleared my local cache, and logged back in.

      And it worked.

        Michael Regan
        TIMR Web Services
        Phone: 250.218.5284
        Eamil: [email protected]
        Website: timr.ca
        • 3749
        • 24,544 Posts
        This is a known bug. When you create an action in the Manager, that field doesn't get set. No one noticed because most Extras set the field when installed. It drove me nuts for several days. wink

        FYI, if you create the menu/action in MyComponent, the field gets set when you first run Bootstrap (and your CMP gets a transport package).
          Did I help you? Buy me a beer
          Get my Book: MODX:The Official Guide
          MODX info for everyone: http://bobsguides.com/modx.html
          My MODX Extras
          Bob's Guides is now hosted at A2 MODX Hosting