We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 30862
    • 14 Posts
    I updated Revo from 2.0 to 2.0.1 yesterday. Codemirror was working fine before. Updated to 1.1.0-pl and updated Revo to 2.0.2. Codemirror is now only displaying an empty display box (doens’t load data in) on any code file (templates, Chunks etc)...Is anyone else experiencing this problem?
      • 162
      • 6 Posts
      Hello there.

      Recently I had the same problem with Revo 2.0.0 installation (but the other one 2.0.0 worked fine).
      Updating to Revo 2.0.2 didn’t fixed the problem.
      After that I had totally reinstalled codemirror:
      1. package manager > uninstall > second radio button (uninstall or something).
      2. remove codemirror’s line from modx_transport_packages table
      3. remove both folder and transport archive of codemirror from /core/packages/ folder.
      4. download codemirror via package manager
      5. install as usually.
      6. clear site and browser cache.

      And I made 2 or 3 such re-installation rituals until it succeeded. Maybe they had smallest differences in steps, may be not.
      I didn’t figured out what was the problem at all and what steps I made was meaningful. It looks like magic to me smiley

      Hope it could help.
        • 30862
        • 14 Posts
        Thanks for the input 7heaven - I’ve tried all that so far without success. I did find an entry into the the error.log in regards to codemirror:

        [2010-09-18 01:23:37] (ERROR @ /var/www/vhosts/thegreenery.ca/httpdocs/core/model/modx/modmanagerresponse.class.php : 297) PHP warning: file_exists() [<a href='function.file-exists'>function.file-exists</a>]: open_basedir restriction in effect. File(/var/www/vhosts/thegreenery.ca/httpdocs/manager/assets/modext/<script type="text/javascript">
        // <[CDATA[
        Ext.onReady(function() {
            Tiny.config = {"apply_source_formatting":true,"browserUrl":"\/manager\/index.php?a=3","button_tile_map":false,"cleanup":true,"compressor":"","content_css":"","convert_fonts_to_spans":true,"convert_newlines_to_brs":false,"element_format":"xhtml","element_list":"","entities":"","entity_encoding":"","file_browser_callback":"Tiny.l
        
        [...a lot of output here...]
        
        is not within the allowed path(s): (/var/www/vhosts/thegreenery.ca/httpdocs:/tmp)



        ---------
        Config:
        Modx Revo 2.0.2m Traditional distro (installed 2.0.0, upgraded to 2.0.1, then upgraded to 2.0.2)
        PHP 5.2.13
        MySQL 5.0.77
        Tested browsers: Firefox 3.6.8 and Safari 5.0.2\
        ---------

        PHP safe mode is off - open_basedir: /var/www/vhosts/thegreenery.ca/httpdocs:/tmp
        Revo core resides within httpdocs folder

        I’ll post here if I find out more...any help/tips are much appreciated!

          • 13736
          • 345 Posts
          I had this problem earlier today. Along with an issue where the documents would lose their parent ID, class key, and template.

          Clearing the modx cache, flushing permissions, and then clearing the browser cache fixed those issues. Then after reinstalling CodeMirror (because I had uninstaller it while trying to fix the other), it worked fine after that.
            • 30862
            • 14 Posts
            Codemirror is working again! Had it uninstalled, updated to 2.0.4-pl2 and reinstalled and it’s working! Hooray! laugh