We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 4080
    • 139 Posts
    Help! I have a couple MODx sites under my belt (well sort of) and now I’m starting a new one but using MAMP this time around. Everything seems to be going smoothly until I realized that I can’t get to any module settings. When I try to get to Modules -> Doc Manager it simply returns nothing. In Safari’s activity viewer it’s showing that the URL is throwing an "internal server error". Permissions all seem to be good on the files. Is it a setting in a component of MAMP? Any help is always greatly appreciated.
      • 28042 ☆ A M B ☆
      • 24,524 Posts
      I’ve been using bog-standard MAMP installation for some years now, and have never run across anything like this. What version of MODx is this? Are you using friendly URLs? If so, did you also rename the ht.access file in the /manager directory?
        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
        • 4080
        • 139 Posts
        Wow. I’m only several months in to using MODx and the community reputation of being awesomely helpful is definitely the case. It just furthers my confidence in my choice of MODx.

        Susan, thanks so much for the reply. I was in the midst of posting all the "system" specs per Ryan Thrash’s post "Before posting requests for help". I think that was in response to me and now I know the deal! So to answer your questions:

        I’m using Evolution 1.0.4, I do have friendly URLs enabled, and I did rename ht.access to .htaccess. The only other modification to the system I’m trying to do is to use YAMS. Currently I have that module disabled while troubleshooting this issue—both Doc Manager and YAMS are returning the blank page (and throwing the internal server error it looks like).


        Web Server:
        PHP version and how it’s running (suexec, mod_php, CGI, etc.): 5.3.2 (not sure how to find out "how it’s running")
        Apache (Using MAMP/localhost)
        OS X Version 10.6.3 (Snow Leopard)


        Database:
        MySQL version: 5.1.44
        List of any tables over 1MB in size: None


        MODx:
        Version 1.0.4
        Any changes you’ve made: None
        Any snippets you’re running on the page that is not working properly: not sure, whatever the default is
        Any plugins you’re running


        Browser/Client:
        Safari 5
        OS X Version 10.6.3 (Snow Leopard)
          • 4080
          • 139 Posts
          Whoa! I just noticed that this happened to Doc Manager module code. Has anyone ever seen this with MAMP or is something else?

          Update: It appears to be a magic quotes issue with PHP. I’m going to explore disabling it. If anyone knows of the best way to go about this while using MAMP feel free to chime in.

          include_once(MODX_BASE_PATH.\\\\\\\'assets/modules/docmanager/classes/docmanager.class.php\\\\\\\');
          include_once(MODX_BASE_PATH.\\\\\\\'assets/modules/docmanager/classes/dm_frontend.class.php\\\\\\\');
          include_once(MODX_BASE_PATH.\\\\\\\'assets/modules/docmanager/classes/dm_backend.class.php\\\\\\\');
          
          $dm = new DocManager($modx);
          $dmf = new DocManagerFrontend($dm, $modx);
          $dmb = new DocManagerBackend($dm, $modx);
          
          $dm->ph = $dm->getLang();
          $dm->ph[\\\\\\\'theme\\\\\\\'] = $dm->getTheme();
          $dm->ph[\\\\\\\'ajax.endpoint\\\\\\\'] = MODX_SITE_URL.\\\\\\\'assets/modules/docmanager/tv.ajax.php\\\\\\\';
          $dm->ph[\\\\\\\'datepicker.offset\\\\\\\'] = $modx->config[\\\\\\\'datepicker_offset\\\\\\\'];
          $dm->ph[\\\\\\\'datetime.format\\\\\\\'] = $modx->config[\\\\\\\'datetime_format\\\\\\\'];
          
          if (isset($_POST[\\\\\\\'tabAction\\\\\\\'])) {
              $dmb->handlePostback();
          } else {
              $dmf->getViews();
              echo $dm->parseTemplate(\\\\\\\'main.tpl\\\\\\\', $dm->ph);
          }


            • 28042 ☆ A M B ☆
            • 24,524 Posts
            Ah! You must be using MAMP 1.9 (or whatever the latest version is). You’ll need to edit the Applications/MAMP/conf/php5.3/php.ini file, and add the line "magic_quotes_gpc = Off" in there somewhere; around line 381 would be an appropriate spot.
              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
              • 4080
              • 139 Posts
              Excellent! Thank you, Susan. It didn’t seem to work in MAMP’s INI file but I placed one in the root of /manager/ and that seemed to do the trick.