Jump to:

4873 Posts in 7242 Topics by 1471 members

Installing SilverStripe

SilverStripe Forums » Installing SilverStripe » Please Help: CMS can't even load: [Warning] parse_ini_file()

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

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

Page: 1
Go to End
Author Topic: 2106 Views
  • ianbt7
    Avatar
    Community Member
    6 Posts

    Please Help: CMS can't even load: [Warning] parse_ini_file() Link to this post

    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

  • Myrdhin
    Avatar
    Community Member
    67 Posts

    Re: Please Help: CMS can't even load: [Warning] parse_ini_file() Link to this post

    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.

  • DoWe
    Avatar
    Community Member
    1 Post

    Re: Please Help: CMS can't even load: [Warning] parse_ini_file() Link to this post

    Something wrong

  • ianbt7
    Avatar
    Community Member
    6 Posts

    Re: Please Help: CMS can't even load: [Warning] parse_ini_file() Link to this post

    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

  • Myrdhin
    Avatar
    Community Member
    67 Posts

    Re: Please Help: CMS can't even load: [Warning] parse_ini_file() Link to this post

    ...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 ?

  • ianbt7
    Avatar
    Community Member
    6 Posts

    Re: Please Help: CMS can't even load: [Warning] parse_ini_file() Link to this post

    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

    2106 Views
Page: 1
Go to Top

Want to know more about the company that brought you SilverStripe? Then check out SilverStripe.com

Comments on this website? Please give feedback.