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.

Installing SilverStripe /

Getting SilverStripe up and running on your computer and on your web server.

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

Please Help: CMS can't even load: [Warning] parse_ini_file()


Reply


6 Posts   2368 Views

Avatar
ianbt7

Community Member, 6 Posts

2 January 2010 at 7:53pm

I cannot access my admin CMS page in SS.

http://iturner.org/admin

I get this message:

[Warning] parse_ini_file() has been disabled for security reasons
GET /admin
Line 4 in /home/iturner/public_html/sapphire/parsers/BBCodeParser.php

Here's that Line 4:

<?php
require_once('HTML/HTMLBBCodeParser.php');
/*Seting up the PEAR bbcode parser*/
$config = parse_ini_file('BBCodeParser.ini', true);
$options = &SSHTMLBBCodeParser::getStaticProperty('SSHTMLBBCodeParser', '_options');
$options = $config['SSHTMLBBCodeParser'];
//Debug::show($options);
unset($options);

Please help.

Thanks,

Ian

Avatar
Myrdhin

Community Member, 67 Posts

3 January 2010 at 6:31am

Where are you installing SilverStripe ?

This message means your hosting server administrator has disabled parse_ini_file() PHP functions. If it's your server, try to find in your php.ini config file the line beginning with "disable_functions" directive like :

disable_functions = exec,passthru,shell_exec,system,proc_open,popen,curl_exec,curl_multi_exec,parse_ini_file,show_source

in this example, functions 'exec', 'passthru', etc are disable.

Avatar
DoWe

Community Member, 1 Post

3 January 2010 at 5:28pm

Edited: 03/01/2010 5:29pm

Something wrong

Avatar
ianbt7

Community Member, 6 Posts

4 January 2010 at 9:17am

Thanks to all in this community for good support

I emailed my server/host (host2x.com) about this problem and they told me that deleting the parsing syntax might help; I deleted it and now the CMS works again. I do not know the future repercussions doing this will have, but it works for now.

P.S.: I only experienced this problem with the HIGHERGROUND theme...

Oh, and, by the way, THE BLOG MODULES DO NOT WORK-- FOR ANY OF MY 4 SILVER STRIPE-BASED WEB SITES
eslcloud.com
writerflow.com
iturner.org
tritonubf.com

Thanks again and happy new year

Avatar
Myrdhin

Community Member, 67 Posts

5 January 2010 at 2:08am

Edited: 05/01/2010 2:09am

...they told me that deleting the parsing syntax might help; I deleted it...

What have you changed in Silverstripe ?

...THE BLOG MODULES DO NOT WORK-- FOR ANY OF MY 4 SILVER STRIPE-BASED WEB SITES...

What are the problems ?

Avatar
ianbt7

Community Member, 6 Posts

5 January 2010 at 7:27am

Hi Myrdhin,

Thanks for the reply.

I deleted the first 5-6 lines of parsing syntax (near the top) of: public_html/sapphire/parsers/BBCodeParser.php

Like I said, I hope it does not come back to bite me. I also upgraded to 2.3.4 and have no problems anymore. Hmm...

Thanks!
Ian