We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 6825
    • 1 Posts
    Hello, I just completed an install of 1.0. When I navigated to the manager section, I got the following error.

    Warning: include_once(media/style/MODxLight/style.php) [function.include-once]: failed to open stream: No such file or directory in D:\hosting\member\solidlogic\site1\manager\index.php on line 185

    Warning: include_once() [function.include]: Failed opening ’media/style/MODxLight/style.php’ for inclusion (include_path=’.;C:\php5\pear;<Physical Path to Root Omitted>/manager/includes/’) in <Physical Path to Root Omitted>\manager\index.php on line 185

    The error makes it pretty clear that the MODxLight style was not included with the download. I checked in it was indeed missing from the zip.

    To get around this, I downloaded the 0.9.6.3 version and got the style from there. In fact, there are four styles (MODx, MODxGreen, MODxLight and MODxRTL) in 0.9.6.3, none of which are in 1.0. Instead 1.0 has MODxCarbon.

    Was this the best course of action? Or was there some way to tell the system to use MODxCarbon, which I bet was intended. I am a programmer just getting familiar with MODx, so I may have missed something, but I think this may be something you want to correct.

    Thanks,

    Doug
      • 28042 ☆ A M B ☆
      • 24,524 Posts
      Was this a new install, or an upgrade?

      It looks like what happened is that this was an upgrade and the site cache is still using the old values. Did you upload the install folder and run the installer in Upgrade mode? If not, you can manually edit the siteCache.idx.php file to change that to MODxCarbon; you’ll also need to edit the manager_theme setting in the system_settings table in your database.
        Studying MODX in the desert - http://sottwell.com
        Tips and Tricks from the MODX Forums and Slack Channels - http://modxcookbook.com
        Join the Slack Community - http://modx.org
        • 25663 MODX Staff
        • 12,272 Posts
        It had to have been an upgrade and the installer wasn’t run in upgrade mode. The installer should update all instances to MODx Carbon theme.
          Ryan Thrash, MODX Co-Founder
          Follow me on Twitter at @rthrash or catch my occasional unofficial thoughts at thrash.me
          • 10746
          • 126 Posts
          I had the same problem...

          Given that I simply cannot install Revolution, I went back to trying to install Evolution.

          New download, clean install, new database etc. But the siteCache.idx.php contained "MODxLight".

          Manually changed it to MODxCarbon.

          The database field however was ALREADY at MODxCarbon.


          Note: I also had problems setting config.inc.php to world-writeable.... although I "chmod" the file to 777 and did the same to every directory above it up to the root, the installer still complained "cannot write to file" and I had to manually edit it...

          Gordon
            • 10746
            • 126 Posts
            And also....

            I installed the sample site... logged in ok to the manager.

            Didn’t change anything, but just navigated to the home page to see what the sample site looked like

            PHP error debug
            Error: Missing argument 2 for AjaxSearch::AjaxSearch(), called in /u2/gordon/WWW/modx-1.0.0/manager/includes/document.parser.class.inc.php(770) : eval()’d code on line 336 and defined
            Error type/ Nr.: Warning - 2
            File: /u2/gordon/WWW/modx-1.0.0/assets/snippets/ajaxSearch/classes/ajaxSearch.class.inc.php
            Line: 98
            Line 98 source: function AjaxSearch($version,$cfg,$dcfg) {



            Blah... I just can’t seem to get past the install hurdle at the moment, despite spending the best part of a day on it, which is highly frustrating :-(

            Gordon
              • 25663 MODX Staff
              • 12,272 Posts
              Are you saving your config and clearing your cache after doing an installation? You have to save your configuration when doing a new install or after upgrading to rebuild the site cache.
                Ryan Thrash, MODX Co-Founder
                Follow me on Twitter at @rthrash or catch my occasional unofficial thoughts at thrash.me
                • 10746
                • 126 Posts
                Are you saving your config and clearing your cache after doing an installation? You have to save your configuration when doing a new install or after upgrading to rebuild the site cache.

                I don’t know what this means...

                When you say "saving your config" do you mean saving the file "config.inc.php" (i.e. from the Linux command line), or doing something from within the MODx manager? [I never get a chance to do anything from within the manager because I get an fopen() error.)

                And when you say "clearing your cache", how is that done?

                All I am doing each time is blowing away absolutely everything ("rm -fr modx-1.0.0"), doing a "DROP DATABASE modx" and "CREATE DATABASE modx" in MySQL to get a completely clean database, and re-unpacking MODx from the .tar.gz file...

                  • 25663 MODX Staff
                  • 12,272 Posts
                  Install as normal. When you login to the manager after installing, you should immediately go to the Tools > Config page, which should actually already be open. Make sure to press the save button and it should work. That’s the "save your configuration" bit.

                  Clearing the cache: Site → Clear Cache menu item
                    Ryan Thrash, MODX Co-Founder
                    Follow me on Twitter at @rthrash or catch my occasional unofficial thoughts at thrash.me
                    • 10746
                    • 126 Posts
                    Something bizarre is happening in my setup that is causing everything to fail...

                    I reverted once more, and just tried to install 0.9.6.3.

                    The same thing happened where the pre-install check claims that config.inc.php is writable, but then the actual Install process claims that it is not and asks me to manually create the config.inc.php.

                    But then this time I get a NEW error message

                    Warning: fopen(/u2/gordon/WWW/modx-0.9.6.3/manager/media/style//login.html) [function.fopen]: failed to open stream: No such file or directory in /u2/gordon/WWW/modx-0.9.6.3/manager/includes/accesscontrol.inc.php on line 129

                    And indeed... when I got to the directory "media/style/" there are just directories like MODx, MODxGreen etc.

                    So the double slash // in the file name "style//login.html" suggests that somehow a name got omitted..


                    So basically it seems that there is some consistent problem that now prevents me from installing ANY version of MODx...
                      • 5098
                      • 1 Posts
                      I have the exact same problem as dcorbett. I took the light template from the older version and uploaded it which allowed me to login. After trying to change it to Carbon, there were some permission errors I received when I clicked save which I had to change on the server but after that it worked.

                      I had never installed MODx on this site before and I created an entirely new database, so seems like the installation messes up somewhere with the template if there are permissions problems.