Category Archives: Silverstripe

Our sivlerstripe tips and codes

Silverstripe 2.4.* running on PHP5.4

If your website is still powered by Silverstripe 2.4.* but your hosting server already upgrades PHP from 5.3 to 5.4, you will have this error in a couple of places [Notice] Array to string conversion Line 386 in …../sapphire/core/control/Controller.php Source … Continue reading

Posted in PHP Programming, Silverstripe |

GridField return ‘No Items Found’

First thing you need to check is the related object of the data source of the Gridfield is viewable or not. For example, if you need to manage the has_one Profile object of class Member, you need to define this … Continue reading

Posted in Silverstripe |

Siteconfig for content authors

In Silversripe 2.4.7, if you need to allow content authors to edit your site config settings, you need to click on the permission tab and give ‘Manage site settings’ to the right user. However, this doesn’t work on SS3.0. Here … Continue reading

Posted in Silverstripe | Tagged , , , , |

Saving POINT() geometries in SilverStripe DataObjects

I encountered an issue while trying to set up a POINT field with a spatial index. A spatial index in MySQL allows us to do some very fast searches based on locations of ‘objects’ in the database. However, the requirement … Continue reading

Posted in Silverstripe | Tagged |