22001!

Fuel\Core\Database_Exception [ 22001 ]:
SQLSTATE[22001]: String data, right truncated: 1406 Data too long for column 'word' at row 1 with query: "INSERT INTO `mobile_word` (`word`, `count`, `date`) VALUES ('%E5%A4%AA%E7%94%B0%E5%92%8C%E3%81%95%E3%81%8F%E3%82%89', 1, '2024-03-28 23:49:20')"

COREPATH/classes/database/pdo/connection.php @ line 253

248                            {
249                                $error_code 0;
250                            }
251                        }
252
253                        throw new \Database_Exception($e->getMessage().' with query: "'.$sql.'"'$error_code$e);
254                    }
255                }
256
257                // no more attempts left, bail out
258                else

Backtrace

  1. COREPATH/classes/database/query.php @ line 314
    309            catch (\CacheNotFoundException $e) {}
    310        }
    311
    312        // Execute the query
    313        \DB::$query_count++;
    314        $result $db->query($this->_type$sql$this->_as_object);
    315
    316        // Cache the result if needed
    317        if (isset($cache) and ($this->_cache_all or $result->count()))
    318        {
    319            $cache->set_expiration($this->_lifetime)->set_contents($result->as_array())->set();
    
  2. COREPATH/classes/model/crud.php @ line 568
    563
    564            $query \DB::insert(static::$_table_name)
    565                        ->set($vars);
    566
    567            $this->pre_save($query);
    568            $result $query->execute(static::get_connection(true));
    569
    570            if ($result[1] > 0)
    571            {
    572                // workaround for PDO connections not returning the insert_id
    573                if ($result[0] === false and isset($vars[static::primary_key()]))
    
  3. APPPATH/classes/controller/search.php @ line 36
    31                            array("word" => $word,
    32                                        "count" => 1,
    33                                            "date" => date('Y-m-d H:i:s')
    34                            )
    35            );
    36            $o->save();
    37        }
    38
    39        $count Model_Gravurefeed::count();
    40        $ids DB::select("id")->from('gravure_feed')
    41                                                        ->where_open()
    
  4. COREPATH/classes/request.php @ line 454
    449                    // fire any controller started events
    450                    \Event::instance()->has_events('controller_started') and \Event::instance()->trigger('controller_started''''none');
    451
    452                    $class->hasMethod('before') and $class->getMethod('before')->invoke($this->controller_instance);
    453
    454                    $response $action->invokeArgs($this->controller_instance$this->method_params);
    455
    456                    $class->hasMethod('after') and $response $class->getMethod('after')->invoke($this->controller_instance$response);
    457
    458                    // fire any controller finished events
    459                    \Event::instance()->has_events('controller_finished') and \Event::instance()->trigger('controller_finished''''none');
    
  5. DOCROOT/index.php @ line 71
    66            $response Response::forge($response);
    67        }
    68    }
    69    elseif ($e === false)
    70    {
    71        $response Request::forge()->execute()->response();
    72    }
    73    elseif ($route)
    74    {
    75        $response Request::forge($routefalse)->execute(array($e))->response();
    76    }
    
  6. DOCROOT/index.php @ line 92
    87{
    88    // Boot the app...
    89    require APPPATH.'bootstrap.php';
    90
    91    // ... and execute the main request
    92    $response $routerequest();
    93}
    94catch (HttpBadRequestException $e)
    95{
    96    $response $routerequest('_400_'$e);
    97}