select max(vi_id) as max_vi_id from g4_visit

1034 : Incorrect key file for table: 'g4_visit'. Try to repair it

error file : /index.php