CodeIgniter Forums
ODBC "_remove_invisible_characters()" ERROR - 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: ODBC "_remove_invisible_characters()" ERROR (/showthread.php?tid=17847)



ODBC "_remove_invisible_characters()" ERROR - El Forum - 04-17-2009

[eluser]RJ[/eluser]
Quote:Fatal error: Call to undefined method Shop::_remove_invisible_characters() in D:\data\Inetpub\wwwweb_verynew\s\system\database\drivers\odbc\odbc_driver.php on line 248

Below is what I am using that is producing this error. I have to use ODBC, the database is Oracle.
Code:
function check_msisdn($msisdn)
    {
        $TT = $this->load->database('trimtrac', TRUE);
        $this->MSISDN = $msisdn;
        $this->UNITID = $this->input->post('unitid');

        $subversion="empty";
        $devtype = "empty";
        
        $TT->select('devicetype');
        $TT->select('TO_CHAR(subversion)', FALSE);
        $TT->where(array(
            'msidn' => $this->MSISDN,
            'unitid' => $this->UNITID
        ));
        $query = $TT->get('ttdevice');

        if (empty($query))
        {
            return false;
            log_message('error', 'Can not locate MSISDN and UnitID in our system');
        }
        else
        {
            if ($query->num_rows() > 0)
            {
                foreach ($query->result() as $row)
                {
                  var_dump($row);
                }
            }
        }
        
         return true;
    }

Not sure why its erroring on a non-existing method, this is the odbc driver code, erroring on the return line:
Code:
function escape_str($str)    
    {
        // Access the CI object
        $CI =& get_instance();

        // ODBC doesn't require escaping
        return $CI->_remove_invisible_characters($str);
    }


Any ideas why the error, or a possible fix?

Dank je!


ODBC "_remove_invisible_characters()" ERROR - El Forum - 04-17-2009

[eluser]RJ[/eluser]
Commented out the return and added return true regardless. Hopefully this isn't the root of my other problems.