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

Blank Page


5 Posts   1049 Views


14 July 2011 at 12:49pm Community Member, 1 Post

Hi. I am following the tutorial for beginners. I keep getting a blank page for admin and all the pages in my site. I am using Mac OS X 10.5.3 and SilverStripe-v2.4.5. Tried ?flush=1 and dev=1 but made no difference. In my MAMP php error log it says [14-Jul-2011 10:39:58] PHP Parse error: syntax error, unexpected '<' in /Applications/MAMP/htdocs/silverstripe/SilverStripe-v2.4.5/mysite/_config.php on line 9. When I look at this _config.php page I cannot find the error. This is the code - line 9 is <p>&nbsp;</p> -


global $project;
$project = 'mysite';

global $databaseConfig;
$databaseConfig = array(
   "type" =>

   "server" => 'localhost',
   "username" => 'root',
   "password" => 'root',
   "database" => 'SS_mysite',
   "path" => '',

<p>// This line set's the current theme. More themes can be
// downloaded from

// Set the site locale

// enable nested URLs for this site (e.g. page/sub-page/)

Grateful for any help!


14 July 2011 at 2:41pm Community Member, 35 Posts

check your php.ini file and make sure display_errors is on.

another option is to check your errors log.


Bruce B

14 July 2011 at 7:01pm Community Member, 145 Posts

somehow, a stack of html tags have ended up in your _config.php file. That is what is causing the problem. You may have opened this file in some program that thought it was a web page and tried to format it.

Find a clean version of _config.php and try again.

If you don't have a decent text editor, grab Text Wrangler (free) from the App store. If you are serious, go for its big brother BBEdit. You will need something like this to do your file editing.


17 July 2011 at 1:41pm Community Member, 2 Posts

Thanks Bruce

I opened the file in dreamweaver so I guess it placed the html tags in it. I'll get the programs you mentioned and try again with a fresh config file . Thanks again for your help. I'm familiar with css and html but as you can see new to php. (Im veronique but could not sign in again under that name so had to reregister name to veronique1)


17 July 2011 at 1:44pm Community Member, 2 Posts

Hi Chris

Thanks for you quick reply. I am using the error logs in my MAMP application. So I can view them. But I will try your suggestion too. Thanks again for you help. (Im veronique but could not sign in again under that name so had to reregister name to veronique1)