Welcome Guest, Not a member yet? Register   Sign In
PHP Fatal error: Call to undefined method CI_DB_mysql_result::\xb0\xd7\xcd\x19\xf6*() in xxxxxx.php
#1

[eluser]鰯[/eluser]
I need a help!! I don't know what happened.

Code:
[Tue Aug 31 04:12:02 2010] [error] PHP Fatal error:  Call to undefined method CI_DB_mysql_result::`3\xcc\x19\xf6*() in xxxxxxxxx.php on line 62
[Tue Aug 31 04:12:02 2010] [error] PHP Fatal error:  Call to undefined method CI_DB_mysql_result::`3\xcc\x19\xf6*() in xxxxxxxxx.php on line 62
[Tue Aug 31 04:12:02 2010] [error] PHP Fatal error:  Call to undefined method CI_DB_mysql_result::x\xc9\xcd\x19\xf6*() in xxxxxxxxx.php on line 62
[Tue Aug 31 04:12:02 2010] [error] PHP Fatal error:  Call to undefined method CI_DB_mysql_result::\xb0\xd7\xcd\x19\xf6*() in xxxxxxxxx.php on line 351
[Tue Aug 31 04:12:02 2010] [error] PHP Fatal error:  Call to undefined method CI_DB_mysql_result::\xb0\xd7\xcd\x19\xf6*() in xxxxxxxxx.php on line 62

Suddenly it all session error messages.

Error line is 'result' method call. it all.

probrem a this code?
Code:
function find($condition) {
    $this->db->stop_cache();
    $this->db->flush_cache();
    if (!is_array($condition)) {
      $condition = array('id' => $condition);
    }
    $entity_list = $this->db->get_where($this->table_name(), $condition);
    if ($entity_list->num_rows == 0) {
      return false;
    }

    $entity = NULL;
    foreach ($entity_list->result() as $row) {
      if (!isset($row->deleted)) {
        $entity = $row;
        break;
      }
    }
    $this->db->start_cache();
    return isset($entity) ? $entity : FALSE;
  }

I'm japanease. im sorry bad english.... X(
#2

[eluser]WanWizard[/eluser]
Table column names in utf-8?
#3

[eluser]鰯[/eluser]
Yes. my database encoding is utf8.

database is MySQL. and MyISAM. Collation is "utf8_general_ci".

[quote author="WanWizard" date="1283433153"]Table column names in utf-8?[/quote]
#4

[eluser]WanWizard[/eluser]
I wasn't asking about the database, I was asking about the column names of your table.

If you use result() after a query, every row is returned as an object, and all column names are used as property names of the object, so you can do $row->property. It is possible to create a table with column names that are valid in MySQL, but not valid as PHP variable names.
#5

[eluser]鰯[/eluser]
I'm sorry.

database column name and table name is all /[_a-z]+/ pattern matched.

Not propety access error. The characters are garbled name is 'result' method. why 'result' method is garbled.

I think, this probrem is not a from database. database 1, application server 2 arrangement.

Error message is just one application server only.

[quote author="WanWizard" date="1283449308"]I wasn't asking about the database, I was asking about the column names of your table.

If you use result() after a query, every row is returned as an object, and all column names are used as property names of the object, so you can do $row->property. It is possible to create a table with column names that are valid in MySQL, but not valid as PHP variable names.[/quote]
#6

[eluser]鰯[/eluser]
Server environment.
- CentOS release 5.4 (Final)
- PHP Version => 5.2.11 with XCache v1.3.0
- Linux SMP x86_64
- MySQL 5.1.40
#7

[eluser]Unknown[/eluser]
Did you fix your problem? I'm having the same problem. Restarting httpd solves it. But it could fall back into this state anytime. Seems like a bug in apache. I'm using httpd-2.2.4-2.1.fc6.




Theme © iAndrew 2016 - Forum software by © MyBB