22407 Posts in 6903 Topics by 2749 members
|Go to End|
3 August 2013 at 12:33am
?flush=all or ?flush=1 does not work in any situation. everything else seems to be working fine.
Has anyone had this happen before or know what might be causing this?
I have no idea...
3 August 2013 at 1:33am
I've never encountered it just 'not working'. I had some issues where erights were not set properly on building the silverstripe-cache for the first time, so that I got a 'not writable' error each time I used ?flush, but...
So no errors? And your template (or yaml) changes are never aplied? Do you have the silverstripe-cache directory in your site root and is it writable?
4 August 2013 at 1:45pm
thanks martimiz, would have never noticed that.
So the silverstripe-cache didnt exist so ive created it. ran dev/build?flush=all and the cache has been populated with files. however all I get in dev/build is an 'Enviroment Builder' title along with my base url and dev breadcrumbs but nothing else.
4 August 2013 at 9:09pm Last edited: 4 August 2013 9:10pm
So no list of database tables and fields? Might be an error along the way, that isn't displayed... Is your site in dev mode? Is your php.ini set to report errors? Uncle Cheese has a page on debugging SilverStripe on his site:
I'm not sure if it includes v3.x but it might give you some clues
Note: basically the flush bit is what updates the SilverStripe cache files, the dev/build is what builds the database table. The combi does all If the silverstripe-cache dir is missing, SilverStripe will use the tmp directory, that doesn't always work well.
5 August 2013 at 6:44pm
Its strange, the database was generated, site was set to dev mode, php.ini was set to report errors and I had a look at the 8 common erros a few time and it didnt help. Dev/build works on its own but with ?flush=all or ?flush=1 it failed. (Had been trying to flush when adding a couple of modules)
I ended up doing another clean install and this time it seems to work. I did noticed that my url would not redirect from mydomain.com.au/silverstripe/ to mydomain.com.au/silverstripe/install.php like normal, as i found this is in the .htaccess file but it seems to be ignored.
When re-installing there were no errors in the installer. but it didnt create silverstripe-cache again, had to do that manually. It does seem to be all working fine at the moment. so thanks for your help @martimiz.
|Go to Top|