Re: Import CSV with $belongs_many_many records
At this point I don't think you can csv-import many_many relations out of the box... Maybe someone can prove me wrong, but else you could do something like this:- in your csv-file create a column...
View Articleflush=all from a function
Hi guysI am using$cache = SS_Cache::factory('foo');$cache->clean(Zend_Cache::CLEANING_MODE_ALL);to mimic a ?flush=all, but it's not having the same affect. In fact its not clearing the silverstripe...
View ArticleReally weird problem
Hey guys, I am wondering why does this works:<?phpclass ArticleHolder extends Page { private static $allowed_children = array('ArticlePage');}class ArticleHolder_Controller extends Page_Controller {...
View ArticleRe: Import CSV with $belongs_many_many records
Ok, cool thanks for that. I had a slight feeling it wouldn't do it automatically and then the spec came up. I should be able to get it working with those instructions. Thanks very much for your help :...
View ArticleRe: Really weird problem
Testing() is a method, so you need to use $this->Testing() to call it.Posted to: Really weird problem | Show Thread | Post Reply
View ArticleCan’t access /admin, all URLs include index.php
Hi there,I have a SilverStripe 3 site running locally on MAMP but can’t access the admin — http://localhost/admin gives a page not found. Friendly URLs don’t seem to be working. Every page URL includes...
View ArticleRe: CSRF error on form submission: "There seems to have been a technical...
A few updates and clarifications:- The issue isn't intermittent - it's quite repeatable now.- It seems to start when the PHP session expires. Then after that, gets itself in a strange cycle of...
View ArticleRe: Really weird problem
that would explain why $this.Testing(); wasn't working either. Thank you, I will give this a shot tonight.Posted to: Really weird problem | Show Thread | Post Reply
View ArticleRe: SearchContext and ModelAdmin issue
Ok the solution is to create my own custom filter class and update the getSearchContext method to point to that new filter class.BEFORE:public function getSearchContext(){...$filters = array( 'Email'...
View ArticleRe: Virtual Pages problems
the fix is to update the sitetree.php method validate and add an if statement.look for this: if(!in_array($subject->ClassName, $allowed)) {...}and wrap it in a parent if statement like...
View ArticleRe: Virtual Pages problems
Could be that this was already raised as an issue on Github 8 months ago, with another possible solution.https://github.com/silverstripe/silverstripe-cms/issues/773Maybe you could have a look and...
View ArticleRe: Can’t access /admin, all URLs include index.php
Hey mate,What version of mamp have you installed? Also which version of apache web server does it install? If you are using Apache 2.4 then add this piece of code in the Apache conf file (depends on...
View ArticleRe: Can’t access /admin, all URLs include index.php
Hi Mike! Long time no see.It’s MAMP 2.2 and according to this page, http://www.mamp.info/en/documentation/releases.html, it’s running Apache HTTP Server 2.2.25. I’ve added those options into httpd.conf...
View ArticleRe: CRITICAL: Missing / Disappearing Images
Sorry for the bump - just checking to see if anyone can help with this problem before I stop using FlushGeneratedImageTask entirely.Cheers.Posted to: CRITICAL: Missing / Disappearing Images | Show...
View ArticleRe: CSRF error on form submission: "There seems to have been a technical...
Further findings:- It only happens with Safari (both desktop & iOS). Doesn't happen with Opera, Firefox & Chrome.- The site is full https (set up both in .htaccess and with forceSSL()) but the...
View ArticleRe: Can’t access /admin, all URLs include index.php
Indeed mate : )Because it is Apache 2.25 you shouldn't need the code so revert what you have done.The only other thing is to check if mod_rewrite is enabled by adding a php file with just the following...
View ArticleRe: CSRF error on form submission: "There seems to have been a technical...
Interestingly, examining the session files reveals that after the CSRF mismatch error, that the SessionID stops getting written into the session file:Session file with a clean session and Safari...
View ArticleRe: CSRF error on form submission: "There seems to have been a technical...
SecurityToken->getValue() generates a new token if the session is empty...public function getValue() { $value = Session::get($this->getName()); // only regenerate if the token isn't already...
View ArticleRe: CRITICAL: Missing / Disappearing Images
Don't use FlushGeneratedImageTask. It will "Remove all cached/generated images created as the result of an image manipulation" and "Actually clear out all the images".All resized images inside...
View ArticleRe: CSRF error on form submission: "There seems to have been a technical...
Hi Devlin,Thanks for that suggestion. Just ran it and all tests passed. I guess that's what's perplexing… 1) Why only from Safari? 2) Why does it get itself in this strange state of generating a new...
View Article