• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
ODBC "_remove_invisible_characters()" ERROR

#1
[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!

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


Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2019 MyBB Group.