News:

Wondering if this will always be free?  See why free is better.

Main Menu

Cache Error: failed to open stream

Started by InfoStrides, May 20, 2012, 04:56:50 PM

Previous topic - Next topic

InfoStrides

I occasionally receive these error messages when viewing my pages. I don't know what could have been causing them. Please help!

QuoteWarning: require(/home/xxxxxxx/public_html/cache/data_557435de69e5934aa0062731f5973da8-SMF-modSettings.php) [function.require]: failed to open stream: No such file or directory in /home/xxxxxxx/public_html/Sources/Load.php on line 2820

Fatal error: require() [function.require]: Failed opening required '/home/xxxxxxx/public_html/cache/data_557435de69e5934aa0062731f5973da8-SMF-modSettings.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/xxxxxx/public_html/Sources/Load.php on line 2820

emanuele

The bug is this one.
I remember Spuds did something for 2.1, but at the moment I don't have the code at hand...


Take a peek at what I'm doing! ;D




Hai bisogno di supporto in Italiano?

Aiutateci ad aiutarvi: spiegate bene il vostro problema: no, "non funziona" non è una spiegazione!!
1) Cosa fai,
2) cosa ti aspetti,
3) cosa ottieni.

Arantor

SMF 2.1 handles this as a soft include rather than a hard require and doesn't throw errors on it.

I've added some changes to my collection of patches that will become 2.0.7 if we need to release it, though, which changes the require to an include, and also uses file_put_contents if available instead of the flock'd fwrite. Of course if the 2.0.7 patch grows big enough I'll just release it as a bug fix package anyway.
Holder of controversial views, all of which my own.


Advertisement: