Message of the day:
Latest 3.x release: 3.7.3 - it runs on php 7! This is the channel for any SS3-related questions
Backend discussions on SilverStripe 3. For version 4 or newer, see #C36U3BDHN|ss4 or #C0QSDASKT|general. If you are using a version lower than SS3.4, please state, because it makes a difference!
500 can be anything from a missing semicolon in your php code to... Does it work on your dev machine? what's different to live? any php error logs available?
Has anyone an idea on what is going wrong when i suddenly can’t run dev/build?flush on a live site? It only returns 500. I am logged in as admin and i have changed the environment type to dev. I have no idea on what has changed. I know for sure that it has worked.
i´ll try that thank you
either translate in js somehow (ss comes with a tool for it), or pass the locale param to the ajax request. Or at least the cookie. If no locale is set, it uses the default locale
would you mind explaining this a bit more
You'll need to translate at runtime, not at render time
How would i translate variables on a template the is called by ajax like:
i used the
- return $this->customise(['Partners' => $partners])->renderWith('AjaxPartnersList');
function on the template but it doesn’t work.
- <%t %>
thanks for the tip 🙂