We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 49124
    • 16 Posts
    Hello,
    I am facing a problem that I do not understand. I have installed and then uninstalled two packages : MinifyX and Articles (don't know if it's related but it could be).
    When I tried to access one resource I get a blank right page and my error report tells me this :
     [2014-12-14 12:29:45] (ERROR @ [mysitepath]\manager\min\lib\Minify\Cache\File.php : 100) PHP warning: fopen(C:/Users/Guillaume/CloudStation/06_Dev/01_Web/projets/collectif-extra-muros/site/core/cache/mgr/min/minify_datetime,modx.panel.tv.renders,modx.grid.resource.security,modx.panel.resource.tv,modx.panel.resource,update,articles,container.common,container.articles.grid,a_42764eea3d4a9c52040771fca3d7e9cc): failed to open stream: Invalid argument
    [2014-12-14 12:29:45] (ERROR @ [mysitepath]\manager\min\lib\Minify\Cache\File.php : 101) PHP warning: flock() expects parameter 1 to be resource, boolean given
    [2014-12-14 12:29:45] (ERROR @ [mysitepath]\manager\min\lib\Minify\Cache\File.php : 102) PHP warning: stream_get_contents() expects parameter 1 to be resource, boolean given
    [2014-12-14 12:29:45] (ERROR @ [mysitepath]\manager\min\lib\Minify\Cache\File.php : 103) PHP warning: flock() expects parameter 1 to be resource, boolean given
    [2014-12-14 12:29:45] (ERROR @ [mysitepath]\manager\min\lib\Minify\Cache\File.php : 104) PHP warning: fclose() expects parameter 1 to be resource, boolean given
    [2014-12-14 12:29:45] (ERROR @ [mysitepath]\manager\min\lib\Minify\Cache\File.php : 100) PHP warning: fopen(C:/Users/Guillaume/CloudStation/06_Dev/01_Web/projets/collectif-extra-muros/site/core/cache/mgr/min/minify_datetime,modx.panel.tv.renders,modx.grid.resource.security,modx.panel.resource.tv,modx.panel.resource,update,articles,container.common,container.articles.grid,a_42764eea3d4a9c52040771fca3d7e9cc.gz): failed to open stream: Invalid argument
    [2014-12-14 12:29:45] (ERROR @ [mysitepath]\manager\min\lib\Minify\Cache\File.php : 101) PHP warning: flock() expects parameter 1 to be resource, boolean given
    [2014-12-14 12:29:45] (ERROR @ [mysitepath]\manager\min\lib\Minify\Cache\File.php : 102) PHP warning: stream_get_contents() expects parameter 1 to be resource, boolean given
    [2014-12-14 12:29:45] (ERROR @ [mysitepath]\manager\min\lib\Minify\Cache\File.php : 103) PHP warning: flock() expects parameter 1 to be resource, boolean given
    [2014-12-14 12:29:45] (ERROR @ [mysitepath]\manager\min\lib\Minify\Cache\File.php : 104) PHP warning: fclose() expects parameter 1 to be resource, boolean given


    I have upgraded with the last MODX revo setup (2.3.2) but the error is still there. Do you have a clue ?
      • 49124
      • 16 Posts
      I'm making some progress. The following bug is appearing on a modx fresh install :
       [2014-12-15 21:12:43] (ERROR @ [mysitepath]\manager\min\lib\Minify\Cache\File.php : 100) PHP warning: fopen([mysitepath]/core/cache/mgr/min/minify_modx.view,package.browser.tree,package.browser.panels,combos,package.grid,package.windows,package.panels,package.containers,provider.grid,workspace.panel,lightb_0283872508b97648162d3af564b3f940): failed to open stream: Invalid argument
      [2014-12-15 21:12:43] (ERROR @ [mysitepath]\manager\min\lib\Minify\Cache\File.php : 101) PHP warning: flock() expects parameter 1 to be resource, boolean given
      [2014-12-15 21:12:43] (ERROR @ [mysitepath]\manager\min\lib\Minify\Cache\File.php : 102) PHP warning: stream_get_contents() expects parameter 1 to be resource, boolean given
      [2014-12-15 21:12:43] (ERROR @ [mysitepath]\manager\min\lib\Minify\Cache\File.php : 103) PHP warning: flock() expects parameter 1 to be resource, boolean given
      [2014-12-15 21:12:43] (ERROR @ [mysitepath]\manager\min\lib\Minify\Cache\File.php : 104) PHP warning: fclose() expects parameter 1 to be resource, boolean given
      

      I have unzipped "modx-2.3.2-pl", created my database and runnned http://mylocalurl/setup and then logged in as admin. Then I open one tab on the extension manager and one tab one the error log : each time I refresh the extension manager tab I have exception trace written in my error log.
      Can you guide me ?
        • 49124
        • 16 Posts
        I found this post :
        https://wordpress.org/support/topic/failed-to-open-stream-no-such-file-or-directory-12
        that gives a quick and dirty solution. If someone has found the origin of this bug, please tell me !