Hi,
Randomly I am getting the following error while in dev mode, everything is fine when I switch to live...
[Warning] include(C:\wamp\www\aoa/silverstripe-cache/.cacheC..wamp.www.xxxxxx.themes.xxxxxxxxx.templates.Page.ss) [function.include]: failed to open stream: No such file or directory
GET /aoa/xxxxxxxxxxxx
Line 392 in C:\wamp\www\aoa\sapphire\core\SSViewer.php
Source
383 $subtemplate => $subtemplateViewer->process($item, $cache)
384 ));
385 }
386 }
387
388 $itemStack = array();
389 $val = "";
390 $valStack = array();
391
392 include($cacheFile);
393
394 $output = $val;
395 $output = Requirements::includeInHTML($template, $output);
396
397 array_pop(SSViewer::$topLevel);
398
Trace
SSViewer::process
Line 392 of SSViewer.php
SSViewer->process(BillingPage_Controller)
Line 202 of Controller.php
Controller->handleAction(SS_HTTPRequest)
Line 134 of RequestHandler.php
RequestHandler->handleRequest(SS_HTTPRequest)
Line 147 of Controller.php
Controller->handleRequest(SS_HTTPRequest)
Line 199 of ContentController.php
ContentController->handleRequest(SS_HTTPRequest)
Line 283 of Director.php
Director::handleRequest(SS_HTTPRequest,Session)
Line 127 of Director.php
Director::direct(/xxxxxxxxxxxxxx)
Line 127 of main.php
could it be related to this in my config that should automatically flush the site?
if (Director::isDev()) {
ini_set('display_errors', 1);
error_reporting(E_ALL);
SSViewer::flush_template_cache();
Debug::log_errors_to('err.log');
}
..any ideas?