We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 33982 ☆ A M B ☆
    • 476 Posts
    I’m working on a Localhost environment on MAMP and upon saving a Resource, I get the error message below. I’ve been working on MAMP with MODx on this install for a few hours with no problems and suddenly this error message came up.

    Warning: fopen(/Applications/MAMP/public_html/XXXXX/assets/templates/manager/welcome.html) [function.fopen]: failed to open stream: No such file or directory in /Applications/MAMP/public_html/XXXXX/manager/actions/welcome.static.php on line 192
    
    Warning: filesize() [function.filesize]: stat failed for /Applications/MAMP/public_html/XXXXX/assets/templates/manager/welcome.html in /Applications/MAMP/public_html/XXXXX/manager/actions/welcome.static.php on line 193
    
    Warning: fread(): supplied argument is not a valid stream resource in /Applications/MAMP/public_html/XXXXX/manager/actions/welcome.static.php on line 193
    
    Warning: fclose(): supplied argument is not a valid stream resource in /Applications/MAMP/public_html/XXXXX/manager/actions/welcome.static.php on line 194


    Then I clicked logout to exit the Manager hoping I could logout and then log back in. I get this on the screen:

    Warning: fopen(/Applications/MAMP/public_html/XXXXX/assets/templates/manager/login.html) [function.fopen]: failed to open stream: No such file or directory in /Applications/MAMP/public_html/XXXXX/manager/includes/accesscontrol.inc.php on line 130
    
    Warning: filesize() [function.filesize]: stat failed for /Applications/MAMP/public_html/XXXXX/assets/templates/manager/login.html in /Applications/MAMP/public_html/XXXXX/manager/includes/accesscontrol.inc.php on line 131
    
    Warning: fread(): supplied argument is not a valid stream resource in /Applications/MAMP/public_html/XXXXX/manager/includes/accesscontrol.inc.php on line 131
    
    Warning: fclose(): supplied argument is not a valid stream resource in /Applications/MAMP/public_html/XXXXX/manager/includes/accesscontrol.inc.php on line 132


    I restarted MAMP to try and clear things out, but the above error message shows up. Anyone come across this before?
      Precision Web Development ... SmashStack.com
      • 20413
      • 2,877 Posts
      The first thought: whitespace, utf-booms and/or corrupt files
        @hawproductions | http://mrhaw.com/

        Infograph: MODX Advanced Install in 7 steps:
        http://forums.modx.com/thread/96954/infograph-modx-advanced-install-in-7-steps

        Recap: Portland, OR (PDX) MODX CMS Meetup, Oct 6, 2015. US Bancorp Tower
        http://mrhaw.com/modx_portland_oregon_pdx_modx_cms_meetup_oct_2015_us_bancorp_tower
        • 33982 ☆ A M B ☆
        • 476 Posts
        Corrupt files seems to be the issue. I just did a reinstall over the old files and it’s working again.

        I’ll keep an eye on it.
          Precision Web Development ... SmashStack.com