Hi everyone
I am in a tricky situation. I don't know much about Silver Stripe and started digging into some files. I changed a couple of .ss in themes and played around with a php file in mysite. Things were fine but a few hours later when I reloaded the website the layout was all messed up.
I had to copy the silverstripe-cache over to get things back to normal. But today again the website layout went wrong. In the meantime I read on this forum that you needed to flush the cache when you were doing changes to the files in mysite. So I tried different things today:
- played with www.awebsite.com/admin/dev/build?flush=all
and flush=1 on individual pages and got a bunch of errors:
////
Notice: Undefined index: SSViewer in /data/13/1/1/160/1327812/user/1422783/htdocs/sapphire/core/ManifestBuilder.php on line 459
Warning: There are two files both containing the same class: '/data/13/1/1/160/1327812/user/1422783/htdocs/sapphire/core/#SSViewer.php' and ''. This might mean that the wrong code is being used. in/data/13/1/1/160/1327812/user/1422783/htdocs/sapphire/core/ManifestBuilder.php on line 461
Notice: Undefined index: SSViewer_FromString in /data/13/1/1/160/1327812/user/1422783/htdocs/sapphire/core/ManifestBuilder.php on line 459
Warning: There are two files both containing the same class: '/data/13/1/1/160/1327812/user/1422783/htdocs/sapphire/core/#SSViewer.php' and ''. This might mean that the wrong code is being used. in/data/13/1/1/160/1327812/user/1422783/htdocs/sapphire/core/ManifestBuilder.php on line 461
Notice: Undefined index: SSViewer_PartialParser in /data/13/1/1/160/1327812/user/1422783/htdocs/sapphire/core/ManifestBuilder.php on line 459
Warning: There are two files both containing the same class: '/data/13/1/1/160/1327812/user/1422783/htdocs/sapphire/core/#SSViewer.php' and ''. This might mean that the wrong code is being used. in/data/13/1/1/160/1327812/user/1422783/htdocs/sapphire/core/ManifestBuilder.php on line 461
Notice: Undefined index: SSViewer_Cached_PartialParser in /data/13/1/1/160/1327812/user/1422783/htdocs/sapphire/core/ManifestBuilder.php on line 459
Warning: There are two files both containing the same class: '/data/13/1/1/160/1327812/user/1422783/htdocs/sapphire/core/#SSViewer.php' and ''. This might mean that the wrong code is being used. in/data/13/1/1/160/1327812/user/1422783/htdocs/sapphire/core/ManifestBuilder.php on line 461
////
I removed the #SSView file and I tried the dev/build again and got the following message
The action 'dev' does not exist in class CMSMain
But even if I roll back to an older version that used to work (before I made changes to the ss file in template) and do a flush after that, the layout ends up messed up right way. Why isn't flush working in my case ?
This is so frustrating because I just don't know what I am doing, why I need to do that and why I get these error messages. And I really want to get my site back on track and be able to make small changes to the layout. Right now I rolled back to an old version of the website.
I hope I gave you guys enough info to help me out. I must say that at the end the layout is messed up even if I only change .ss files in the themes/MYTHEME/template directory. I even haven't changed the php files in the directory mysite.
If I could get some help from one of you would be GREATLY appreciated. Really it would help me to sleep better... ;-)
Thanks a lot for your your help -ma