We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 10241
    • 57 Posts
    i just updated to MODX 0.9.6.1, now the manager side works but i can’t get the front end to pull up. it says this:

    Warning: main(./includes/protect.inc.php): failed to open stream: No such file or directory in /root/html/onlinejcom/index.php on line 59

    Fatal error: main(): Failed opening required ’./includes/protect.inc.php’ (include_path=’.:/usr/local/lib/php’) in root/html/onlinejcom/index.php on line 59

    does anyone know why this is happening or have suggestions?

    thanks
      • 25663 MODX Staff
      • 12,272 Posts
      It’s missing the includes/protect.inc.php file. Make sure it’s uploaded and/or not corrupt.
        Ryan Thrash, MODX Co-Founder
        Follow me on Twitter at @rthrash or catch my occasional unofficial thoughts at thrash.me
        • 28042 ☆ A M B ☆
        • 24,524 Posts
        Take a look at that path... it’s ./includes/protect.inc.php, it should be /manager/includes/protect.inc.php
        require_once(dirname(__FILE__).'/manager/includes/protect.inc.php');
        
          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
          • 10241
          • 57 Posts
          thank you so much. i looked at that part. it looks like it was coded right, but i copied and pasted it anyway just because i tried everything else and it worked.

          Quote from: sottwell at Dec 12, 2007, 11:02 PM

          Take a look at that path... it’s ./includes/protect.inc.php, it should be /manager/includes/protect.inc.php
          require_once(dirname(__FILE__).'/manager/includes/protect.inc.php');