22970 Posts in 11572 Topics by 2823 members
|Go to End|
14 July 2011 at 12:49pm
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> </p> -
$project = 'mysite';
$databaseConfig = array(
"server" => 'localhost',
"username" => 'root',
"password" => 'root',
"database" => 'SS_mysite',
"path" => '',
<p>// This line set's the current theme. More themes can be
// downloaded from http://www.silverstripe.org/themes/
// 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
check your php.ini file and make sure display_errors is on.
another option is to check your errors log.
14 July 2011 at 7:01pm
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
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
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)
|Go to Top|