Jump to:

17488 Posts in 4473 Topics by 1978 members

Archive

SilverStripe Forums » Archive » Security tab problem

Our old forums are still available as a read-only archive.

Moderators: martimiz, Howard, Sean, Ryan M., biapar, Willr, Ingo, simon_w

Page: 1
Go to End
Author Topic: 3265 Views
  • Pixel
    Avatar
    Community Member
    78 Posts

    Security tab problem Link to this post

    I need to set up some administrators however when I click on the Security tab i get this error

    Fatal error: Access to undeclared static property: ViewableData::$db in /var/www/vhosts/xxxxxxxx.co.uk/httpdocs/sapphire/core/Object.php(324) : eval()'d code on line 1

    I also get the same error for forum members and mailing lists within Security

    The site is almost ready to go live and this is a big issue that i need to resolve soon - how can i fix it.

  • efraimalexander
    Avatar
    Community Member
    3 Posts

    Re: Security tab problem Link to this post

    I am seeing the same error. I tried a fresh install of SilerStripe 2.2.2 but the bug is persistant. Is there any specific requirements on the server side to run the security section. I am using an Ubuntu server.
    Need more details in server? Any ideas on what's wrong? Thanks.

  • efraimalexander
    Avatar
    Community Member
    3 Posts

    Re: Security tab problem Link to this post

    I did two things.
    First I increased the memory_limit in /etc/php5/php.ini from 20M to 32M. This was recommended by the Silverstripe install page.
    This did not make the Security tab in my 2.2.2 site work.
    Then I installed Silverstripe 2.0.2 sr2 the same way, on the same server.
    The security tab in 2.0.2 works fine now.

    A bit closer..

  • efraimalexander
    Avatar
    Community Member
    3 Posts

    Re: Security tab problem Link to this post

    Seem to be discussing this with myself )
    Just like to add; the bug(?) is also affecting the possibility to produce Reports.
    I am receiving this on a blank page:

    Fatal error: Class 'Report_StatsReport' not found in /var/www/mysite/cms/code/ReportAdmin.php on line 70

    So two problems that perhaps are related.

  • Sam
    Avatar
    Administrator
    677 Posts

    Re: Security tab problem Link to this post

    This bug only affects PHP 5.1.2. Would it be possible to upgrade PHP to 5.2.x?

  • Anonymous user
    Avatar
    Community Member
    1 Post

    Re: Security tab problem Link to this post

    Hmmm...I am also getting the following error when I try to access the Reports tab. I am running php 5.2.0-8+etch11 (on Debian) and a new install of SilverStripe 2.2.2. However, my security tab works just fine. Just some more fuel for the fire.

    "Fatal error: Class 'Report_StatsReport' not found in /var/www/silverstripe-v2.2.2/cms/code/ReportAdmin.php on line 70"

    Later...
    Richard

  • Anonymous user
    Avatar
    Community Member
    1 Post

    Re: Security tab problem Link to this post

    OK, it looks like this problem is fixed in another forum thread (http://www.silverstripe.com/website-authors-forum/flat/81305). It appears as if the ecommerce module has that class commented out and un-commenting it seems to fix the problem.

    Later...
    Richard

  • mnemo
    Avatar
    Community Member
    6 Posts

    Re: Security tab problem Link to this post

    I'm also getting this error:

    /var/www/vhosts/domain.co.uk/httpdocs/sapphire/core/Object.php(324) : eval()'d code on line 1

    The php version is 5.1.2, I'm on a VPS and my hosts are unable to upgrade to 5.2.*, something to do with a conflict with the plesk control panel.

    I'm I able to get Silverstripe working with php 5.1.2?

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