gajus / xhprof.io

GUI to analyze the profiling data collected using XHProf – A Hierarchical Profiler for PHP.
http://xhprof.io/
Other
429 stars 103 forks source link

Field 'request_caller_id' doesn't have a default value #65

Open analytys opened 9 years ago

analytys commented 9 years ago

Fatal error: Uncaught exception 'PDOException' with message 'SQLSTATE[HY000]: General error: 1364 Field 'request_caller_id' doesn't have a default value' in /web/xhprof.io/xhprof/classes/data.php:185 Stack trace: #0 /web/xhprof.io/xhprof/classes/data.php(185): PDOStatement->execute() #1 /web/xhprof.io/inc/append.php(26): ay\xhprof\Data->save(Array) #2 [internal function]: {closure}() #3 {main} thrown in /web/xhprof.io/xhprof/classes/data.php on line 185

Jamlee commented 9 years ago

@analytys how do you fix it?

staabm commented 9 years ago

could you check whether this problem also appears on the maintained for at https://github.com/staabm/xhprof.io

Tocacar commented 9 years ago

@staabm It does also appear on that fork

synchronized commented 7 years ago

1.open your mysql command prompt 2.(replace the dbname to yours, my mysql database name is xhprof) use xhprof; 3.execute sql(set COLUMN request_caller_id default to 0): _ALTER TABLE requests CHANGE COLUMN request_caller_id request_caller_id INT(10) UNSIGNED NOT NULL DEFAULT '0' AFTER request_methodid;