We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 25307
    • 114 Posts
    Getting this error message after a bit of wackyness earlier. If there’s an obvious "hey just do this dummy" fix that I’m overlooking please sing it loud and proud. I will post full details after I deploy a static version of the site to continue debugging the MODx/server situation..

    « MODx Parse Error »
    MODx encountered the following error while attempting to parse the requested resource:
    « PHP Parse Error »

    PHP error debug
    Error: fread() [function.fread]: Length parameter must be greater than 0
    Error type/ Nr.: Warning - 2
    File: /home/sitename/www/sitename.com/manager/includes/document.parser.class.inc.php(766) : eval()’d code
    Line: 85

    Parser timing
    MySQL: 0.0007 s (0 Requests)
    PHP: 0.0296 s
    Total: 0.0303 s
      • 22303 MODX Staff
      • 10,725 Posts
      Without further details, this is going to be difficult, but you simply have a snippet that has a function call to fread() and it must have a length parameter greater than 0 passed to it...
        • 25307
        • 114 Posts
        ok so - all fixed, unfortunately without much helpful explanation of what happened. I ended up grabbing a backup of of the directory structure from last night at midnight, importing a mysql backup (created via the MODx manager smiley ) and all was restored. We dealt with a handful of other wacky server issues today that had to do with some serverwide changes which randomly screwed up some permissions across the board.

        I did however have to do abandon the Customize Manager Fields plugin. I can’t say for certain that it ’broke’ anything, but before I ran into my spew of errors the plugin seemed to be causing some slowdown as it was working. I think it also threw an error regarding the jquery.js inclusion. I broke the big fat rule - don’t dev on live site! I’ll take the thing back into the lab and see if I can get it tuned up then try to share any findings. Thanks for the reply. =]