Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

General Questions /

General questions about getting started with SilverStripe that don't fit in any of the categories above.

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

Issues with site on live server - blank admin screens


Reply


3 Posts   1351 Views

Avatar
pingu

Community Member, 75 Posts

23 May 2009 at 12:13pm

Edited: 23/05/2009 2:14pm

Hi,

I'm having issues with a site I've uploaded to a live server. The site has quite a large amount of content (900 product pages with related assets - 1 image per product, also resized to thumbnails). It runs fine on the development servers. However, on the live servers we are having issues in the admin section, possibly due to lack of memory? How much memory would a server need to run a site like this?

Issues encountered are:

- Sometimes the "Files and assets" tab will display a white page. I've added
ini_set('memory_limit','128M');
to the config which appears to resolve this issue.

- When a new security group is added with limited priveleges, when a user from that security group tries to login to the admin all they can see is a blank page. The error log shows timeout errors:

[error] [client 219.88.200.199] PHP Fatal error: Maximum execution time of 30 seconds exceeded in /var/www/vhosts/site/httpdocs/sapphire/core/model/SiteTree.php on line 635, referer: http://site/Security/login
[error] [client 219.88.200.199] PHP Fatal error: Maximum execution time of 30 seconds exceeded in /var/www/vhosts/site/httpdocs/sapphire/core/model/DataObject.php(1313) : eval()'d code on line 1

The PHP configuration of the host is as follows:

Directive Local Value Master Value
max_execution_time 30 30
max_input_nesting_level 64 64
max_input_time 60 60
memory_limit 64M 32M

How can I resolve this issue?
Are there ways to optimise the memory usage of Silverstripe for a site with this much content?

I've already disabled combined files in my config:
Requirements::set_combined_files_enabled(false);

Thanks all for your help.

Avatar
rbquirke

Community Member, 70 Posts

23 May 2009 at 3:04pm

Hmm,

What sort of hosting do you have at the moment? Just a shared hosting account somewhere?

You could try increasing the max execution time for a start.
I'm not sure how much optimisation you can do with the admin.

Avatar
pingu

Community Member, 75 Posts

23 May 2009 at 7:41pm

Yes shared hosting, and we don't get much access to change configuration options.

Users can login fine if they are in the Administrators group but obviously we don't want all users to have admin rights. I think perhaps this is related to the "many subpages" issue raised in the forums before. Is there a patch for this for v. 2.3.1?