Jump to:

5521 Posts in 1734 Topics by 1223 members

Customising the CMS

SilverStripe Forums » Customising the CMS » GridField Error in Security/Members SS 3.0.2

Moderators: martimiz, Sean, biapar, Willr, Ingo, swaiba, simon_w

Page: 1
Go to End
Author Topic: 265 Views
  • VisualOverdose
    Avatar
    Community Member
    1 Post

    GridField Error in Security/Members SS 3.0.2 Link to this post

    Hey guys,

    First time posting, but I'll try to be as clear as possible.

    I've added some new fields to the "Members" section of my install, and come across a problem when trying to view/edit the members in the CMS through the GridField.

    [User Error] Uncaught LogicException: GridField doesn't have a modelClassName, so it doesn't know the columns of this grid.

    I've seen this error posted in the forums, but for different reasons, so I'm not sure if they apply to this.

    The code I'm using:

    <?php
    class UserDecorator extends DataExtension {
       
       // Add extra database fields
       public static $db = array(
          'Username' => 'Varchar(255)',
          'UserLocation' => 'Text',
          'UserDOB' => 'Date',
          'UserHardwareCase' => 'Varchar(255)',
          'UserHardwareRAM' => 'Varchar(255)',
          'UserHardwareCPU' => 'Varchar(255)',
          'UserHardwareGFX' => 'Varchar(255)',
          'UserHardwareStorage' => 'Varchar(255)',
          'UserHardwareMonitor' => 'Varchar(255)',
          'UserHardwareMotherboard' => 'Varchar(255)',
          'UserHardwareKeyboard' => 'Varchar(255)',
          'UserHardwareMouse' => 'Varchar(255)',
          'UserHardwareMousepad' => 'Varchar(255)'
       );
       
       public static $has_one = array(
          
          'UserAvatar' => 'Image'
                            
       );   
    }

    Any insight would be greatly appreciated. Thanks.

    265 Views
Page: 1
Go to Top

Want to know more about the company that brought you SilverStripe? Then check out SilverStripe.com

Comments on this website? Please give feedback.