CodeIgniter Forums
1.5.4 Bug -> Scaffolding - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20)
+--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23)
+--- Thread: 1.5.4 Bug -> Scaffolding (/showthread.php?tid=5500)



1.5.4 Bug -> Scaffolding - El Forum - 01-23-2008

[eluser]Unknown[/eluser]
First off, I love Codeigniter and its simplicity but i seem to get an error when trying to add a record in scaffolding and i get the error.

Code:
Fatal error: Call to undefined function get_instance() in Input.php on line 855



1.5.4 Bug -> Scaffolding - El Forum - 01-23-2008

[eluser]Seppo[/eluser]
Yeah, this bug it´s fixed for the new version. Meanwhile, you can fix it by replacing the CI_Input::_html_entity_decode_callback method with this code
Code:
function _html_entity_decode_callback($match)
    {
        global $CFG;
        $charset = $CFG->item('charset');

        return $this->_html_entity_decode($match[0], strtoupper($charset));
    }



1.5.4 Bug -> Scaffolding - El Forum - 01-23-2008

[eluser]Unknown[/eluser]
Thank you so much Smile


1.5.4 Bug -> Scaffolding - El Forum - 01-24-2008

[eluser]Derek Allard[/eluser]
Welcome to CodeIgniter Eliterate! You're going to love it. Sorry this has to be your first experience here... Smile