Hey all,
So I know this sort of thing has been posted before but from what I can tell I have a pretty unique issue.
I recently installed SilverStripe on XP and got the main CMS up and running, however I have not yet been able to get a single module work, theme or otherwise.
So here is what happens, I:
- Download the tar.gz and unpack it using 7zip into the themes folder.
- I then go into the mysite folder and open up the config file in notepad
- I change the SSViewer::set_theme('themename'); line.
- I visit my site and attmept to use the ?flush=1 line in a number of different places. (my site is located at http://localhost/silverstripe/ and no matter where I put the ?flush=1 piece i get the following error. I have checked the theme directory and turned off the read-only setting in case it was part of the permission issue.
[Warning] file_get_contents(c:\inetpub\wwwroot\silverstripe/themes/higherground/templates/Page.ss) [function.file-get-contents]: failed to open stream: Permission denied
GET /silverstripe/index.php?flush=1
Line 320 in C:\Inetpub\wwwroot\silverstripe\sapphire\core\SSViewer.php
Source
311
312 if(isset($_GET['debug_profile'])) Profiler::mark("SSViewer::process", " for $template");
313 $cacheFile = TEMP_FOLDER . "/.cache" . str_replace(array('\\','/',':'),'.',realpath($template));
314
315 $lastEdited = filemtime($template);
316
317 if(!file_exists($cacheFile) || filemtime($cacheFile) < $lastEdited || isset($_GET['flush'])) {
318 if(isset($_GET['debug_profile'])) Profiler::mark("SSViewer::process - compile", " for $template");
319
320 $content = file_get_contents($template);
321 $content = SSViewer::parseTemplateContent($content, $template);
322
323 $fh = fopen($cacheFile,'w');
324 fwrite($fh, $content);
325 fclose($fh);
I experience similar issues with modules as well. I cant seem to get the /dev/build?flush=1 to work. I'm not even sure I putting it in the right spot.
Any help would be greatly appreciated.