How can I solve this kind of error after transferring my magento file and SQL to new hosting?
SQLSTATE[42S22]: Column not found: 1054 Unknown column 'session_id' in 'field list'
Please see this screenshot for the error:
Magento Stack Exchange is a question and answer site for users of the Magento e-Commerce platform. It only takes a minute to sign up.Sign up to join this community
It appears that something has gone wrong when coping over your databases. Maybe it did not complete or something.
The error suggests that the column
session_id is not on the table
log_visitor. Which it should be, at least in version 1.6 and upwards.
I would suggest that you try again with your database copy. Make sure that it completes and validate the old database and new database to see if there are any issues between the two regards structure of the log_visitor table.