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.

We've moved the forum!

Please use forum.silverstripe.org for any new questions (announcement).
The forum archive will stick around, but will be read only.

You can also use our Slack channel or StackOverflow to ask for help.
Check out our community overview for more options to contribute.

General Questions /

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

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

Blank gray screen when creating new pages and GridField Items


Go to End


4 Posts   851 Views

Avatar
BFrawley

Community Member, 2 Posts

22 September 2017 at 6:01am

Edited: 22/09/2017 6:02am

I am running version 3.6.1. When i create a new page or a new object in a grid field the right pane in the CMS is solid gray. I have to fresh the page to get the content to actually come up. Any admin navigation also results in a gray right hand pane unless i hit refresh. I can't find any errors anywhere.

Avatar
VPull

Community Member, 58 Posts

26 September 2017 at 11:55pm

Have you checked your log file for error. try Silverstripe Error Handling to locate the exact error.

Avatar
BFrawley

Community Member, 2 Posts

27 September 2017 at 1:48am

I have both silverstripe and PHP logging enabled, I think. Still no errors.

IN _config.php:
Director::set_environment_type("dev");
if(!Director::isDev()) {
// log errors and warnings
SS_Log::add_writer(new SS_LogFileWriter('../silverstripe-errors-warnings.log'), SS_Log::WARN, '<=');

// or just errors
SS_Log::add_writer(new SS_LogFileWriter('../silverstripe-errors.log'), SS_Log::ERR);

// or notices (e.g. for Deprecation Notifications)
SS_Log::add_writer(new SS_LogFileWriter('../silverstripe-errors-notices.log'), SS_Log::NOTICE);
}

my php.ini in /etc/php/7.0/apache2/
log_errors = On
error_log = /var/log/php_errors.log
error_reporting = E_ALL | E_STRICT

Avatar
VPull

Community Member, 58 Posts

29 September 2017 at 5:38pm

Edited: 29/09/2017 5:39pm

Some times I use .htaccess code to display error on my local development machine and it's work for me.

php_flag display_startup_errors on
php_flag display_errors on
php_flag html_errors on

Put This code before silverstripe code start.
Thanks for this post on stackoverflow