Jump to:

1840 Posts in 1598 Topics by 557 members

Blog Module

SilverStripe Forums » Blog Module » Fatal error : Class 'Widget' not found in

Discuss the Blog Module.

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

Page: 1
Go to End
Author Topic: 2005 Views
  • omyzach
    Avatar
    Community Member
    3 Posts

    Fatal error : Class 'Widget' not found in Link to this post

    Fatal error : Class 'Widget' not found in on line /home/content/31/9926731/html/test-cms/blog/code/widgets/BlogManagementWidget.php

    First time SilverStrip user here. I installed the blog and it works fine, but when I go to add roles, I get this error.. this there something I missed? I didn't find much for installation or help documentation on the module site.

    I'd be grateful for any help. Thanks!

  • omyzach
    Avatar
    Community Member
    3 Posts

    Re: Fatal error : Class 'Widget' not found in Link to this post

    I fixed the issue by updating to the latest version on Github.

  • RobboDev
    Avatar
    Community Member
    20 Posts

    Re: Fatal error : Class 'Widget' not found in Link to this post

    Hey mate,

    I've got this, I can't edit the user permissions.

    Latest version of what? I'm running the latest blog version : 0.6

    Cheers
    Rob

  • quamsta
    Avatar
    Community Member
    29 Posts

    Re: Fatal error : Class 'Widget' not found in Link to this post

    I was able to fix this by installing the silverstripe-widgets module from GitHub

    https://github.com/silverstripe/silverstripe-widgets/downloads

  • Lime Blast
    Avatar
    Community Member
    22 Posts

    Re: Fatal error : Class 'Widget' not found in Link to this post

    I'm having the same issue - when I try to edit a user in the Security section of the CMS I get:

    Fatal error: Class 'Widget' not found in /srv/www/new.sworcs.ac.uk/public_html/blog/code/widgets/BlogManagementWidget.php on line 6

    I've tried fixing it by adding silverstripe/widgets to my composer.json (and running composer update), but this hasn't helped any.

    At first I tried using (which I got from: https://packagist.org/packages/silverstripe/widgets):

    "silverstripe/widgets": "dev-master"

    but it complained about not running the correct verson of silverstripe, so I changed this to

    "silverstripe/widgets": "0.1.*@dev"

    But it still doesn't work

  • Lime Blast
    Avatar
    Community Member
    22 Posts

    Re: Fatal error : Class 'Widget' not found in Link to this post

    Quick update - I got it working..

    After the composer method didn't work, I removed the line from my composer.json file, run composer update, then manually installed the module by downloading it from https://github.com/silverstripe/silverstripe-widgets/downloads (as suggested - duh), and copying it into a folder (in the root) called 'widgets'.

    At first, this also didn't work - but then I remembers to run /build/dev, and now it's working.

    It's possible that it might have worked if I had run /build/dev after installing it via composer - but I don't care anymore as it's working now

    2005 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.