Fuel cache library throwing errors (Fuel v1)
Hi,
I've been fighting with a server that is using PHP as cgi, and noticing lots of permissions errors I've not encountered before with Fuel or CI.
I've got one issue (?) left to tackle - Cache.php in the Fuel module is complaining about not being able to open certain cache files (.cache and .exp) and outputting "permission denied" messages. I'm not sure these are critical, but something obviously isn't right - or ahem, write. The files don't seem to exist at all, so I assume they are not being written.
I've not noticed the errors in local development (wamp) but then again, I can't see the files being created locally either. Should I be concerned!?
Comments
I've just discovered the constants file in /config, and am wondering what can be done with the settings there.
ERROR - 2013-12-07 08:56:36 --> Severity: Warning --> unlink(D:/wamp2/www/subdomains/someproject/fuel/application/cache/b3b32a2d422265cd25c3323ed0157f81.group/c138fddf198b2f9cfdbc15f875bbe3f6.cache): No such file or directory D:\wamp2\www\subdomains\someproject\fuel\modules\fuel\libraries\Cache.php 209 ERROR - 2013-12-07 08:56:36 --> Severity: Warning --> unlink(D:/wamp2/www/subdomains/someproject/fuel/application/cache/b3b32a2d422265cd25c3323ed0157f81.group/c138fddf198b2f9cfdbc15f875bbe3f6.exp): No such file or directory D:\wamp2\www\subdomains\someproject\fuel\modules\fuel\libraries\Cache.php 210 ERROR - 2013-12-07 08:56:36 --> Severity: Warning --> chmod() expects parameter 1 to be a valid path, resource given D:\wamp2\www\subdomains\someproject\fuel\modules\fuel\libraries\Cache.php 170 ERROR - 2013-12-07 08:56:36 --> Severity: Warning --> chmod() expects parameter 1 to be a valid path, resource given D:\wamp2\www\subdomains\someproject\fuel\modules\fuel\libraries\Cache.php 171
This is in a WAMP enviroment and MY_Parser already has the DIR_WRITE_MODE change in it (SHA 49160b0306d2eb8033a30a30c1697c8c0b666e15).
Additionally, these are also popping up a lot:
ERROR - 2013-12-07 10:38:49 --> Severity: Warning --> Illegal string offset 'attrs' D:\wamp2\www\subdomains\someproject\fuel\modules\fuel\libraries\Asset.php 730 ERROR - 2013-12-07 10:38:49 --> Severity: Warning --> Illegal string offset 'output' D:\wamp2\www\subdomains\someproject\fuel\modules\fuel\libraries\Asset.php 736 ERROR - 2013-12-07 10:38:49 --> Severity: Warning --> Illegal string offset 'output' D:\wamp2\www\subdomains\someproject\fuel\modules\fuel\libraries\Asset.php 739
I've got rid of the Cache lib errors by using is_file() tests around the cache files in lines at issue. The Asset errors are probably to do with using the js() helper with no attributes or output - as per the Fuel footer default.