We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 22835
    • 54 Posts
    This is so bizarre. Everything just started working again while I was updating a page... very strange?

    "Error caching lexicon topic ..."

    so what exactly is this anyway, I'm a little afraid of it coming back again?
      • 22835
      • 54 Posts
      FYI for all.

      I've had another variant on this same error happening again today and with a little help from patrick at skytoaster (thanks man!) think i've got a fix/workaround.

      my cache was getting corrupted leading to display errors in the manager. reading some other forum posts i found that i just needed to delete all the folders inside core/cache. At first I was a little wary about just deleting background files of modx... but it turns out that this is perfectly acceptable.

      I've since researched that the cache files occasionally corrupted all the time in modx is there anything that can be done to stop this from happening. Incidental corrupt cache can it be avoided?

      The other thing is although my deleting of all the cache folders as fixed my error should it be happening so often... twice in the past 3 days. Is there something else... the real cause creating the corruption. On the both occasions it happened I was just plain-old editing resources.
      • Bryte Digital Dialogues Reply #13, 11 years, 5 months ago
        Hi,

        I´m facing the same problems (MODX Revolution 2.2.5-pl (traditional), after trying hours creating .htaccess files and contacting the hosting provider, still without solution ;((

        Putting the "addhandler" in a .htaccess is not working for me. It parsed the php in the browser.

        In my case the server is not parsing:

        /connectors/layout/modx.config.js.php

        /connectors/lang.js.php

        I hope you can help me.





        Quote from: phil87 at Jul 15, 2011, 04:11 PM
        Finally we found out what the problem was. The server didn't parse .js.php files, so the backend couldn't work with these files and was not able to display documents, settings and so on.

        Solution: Create a .htaccess in your main folder with this content:

        RemoveType .php
        AddHandler x-httpd-php53 .php
        AddHandler x-httpd-php53 .js.php

        Now everything seems to be working fine again. Thank you so much for your help!
          Web development (Barcelona, Spain)

          ..............................................
          Bryte Digital Dialogues
          ..............................................
          Calle Nicaragua 48 5º 5ª,
          08029 Barcelona, Spain

          [email protected]
          T +34 93 419 64 39

          www.bryte.es
          www.bryte.nl
        • When tried adding to my .htaccess file this
          RemoveType .php
          AddHandler x-httpd-php53 .php
          AddHandler x-httpd-php53 .js.php


          all I get on the front and back end is:

          <?php
          /*
           * MODX Revolution
           *
           * Copyright 2006-2012 by MODX, LLC.
           * All rights reserved.
           *
           * This program is free software; you can redistribute it and/or modify it under
           * the terms of the GNU General Public License as published by the Free Software
           * Foundation; either version 2 of the License, or (at your option) any later
           * version.
           *
           * This program is distributed in the hope that it will be useful, but WITHOUT
           * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
           * FOR A PARTICULAR PURPOSE. See the GNU General Public License for more
           * details.
           *
           * You should have received a copy of the GNU General Public License along with
           * this program; if not, write to the Free Software Foundation, Inc., 59 Temple
           * Place, Suite 330, Boston, MA 02111-1307 USA
           *
           */
          $mtime= microtime();
          $mtime= explode(" ", $mtime);
          $mtime= $mtime[1] + $mtime[0];
          $tstart= $mtime;
          
          /* define this as true in another entry file, then include this file to simply access the API
           * without executing the MODX request handler */
          if (!defined('MODX_API_MODE')) {
              define('MODX_API_MODE', false);
          }
          
          /* this can be used to disable caching in MODX absolutely */
          $modx_cache_disabled= false;
          
          /* include custom core config and define core path */
          @include(dirname(__FILE__) . '/config.core.php');
          if (!defined('MODX_CORE_PATH')) define('MODX_CORE_PATH', dirname(__FILE__) . '/core/');
          
          /* include the modX class */
          if (!@include_once (MODX_CORE_PATH . "model/modx/modx.class.php")) {
              $errorMessage = 'Site temporarily unavailable';
              @include(MODX_CORE_PATH . 'error/unavailable.include.php');
              header('HTTP/1.1 503 Service Unavailable');
              echo "<html><title>Error 503: Site temporarily unavailable</title><body><h1>Error 503</h1><p>{$errorMessage}</p></body></html>";
              exit();
          }
          
          /* start output buffering */
          ob_start();
          
          /* Create an instance of the modX class */
          $modx= new modX();
          if (!is_object($modx) || !($modx instanceof modX)) {
              @ob_end_flush();
              $errorMessage = '<a href="setup/">MODX not installed. Install now?</a>';
              @include(MODX_CORE_PATH . 'error/unavailable.include.php');
              header('HTTP/1.1 503 Service Unavailable');
              echo "<html><title>Error 503: Site temporarily unavailable</title><body><h1>Error 503</h1><p>{$errorMessage}</p></body></html>";
              exit();
          }
          
          /* Set the actual start time */
          $modx->startTime= $tstart;
          
          /* Initialize the default 'web' context */
          $modx->initialize('web');
          
          /* execute the request handler */
          if (!MODX_API_MODE) {
              $modx->handleRequest();
          }