I uploaded a Drupal site which I developed local with Mamp.
http://www.lortie.asso.fr/
At first while not being logged in the site looks quit ok, although on the bottom of the page there are 2 errors:

Warning: Cannot modify header information - headers already sent by (output started at /homez.119/lortie/www/includes/common.inc:2575) in drupal_send_headers() (line 1221 of /homez.119/lortie/www/includes/bootstrap.inc).

and

PDOException: SQLSTATE[42000]: Syntax error or access violation: 1142 INSERT command denied to user 'lortiebd2'@'10.0.78.130' for table 'watchdog': INSERT INTO {watchdog} (uid, type, message, variables, severity, link, location, referer, hostname, timestamp) VALUES (:db_insert_placeholder_0, :db_insert_placeholder_1, :db_insert_placeholder_2, :db_insert_placeholder_3, :db_insert_placeholder_4, :db_insert_placeholder_5, :db_insert_placeholder_6, :db_insert_placeholder_7, :db_insert_placeholder_8, :db_insert_placeholder_9); Array ( [:db_insert_placeholder_0] => 0 [:db_insert_placeholder_1] => cron [:db_insert_placeholder_2] => Attempting to re-run cron while it is already running. [:db_insert_placeholder_3] => a:0:{} [:db_insert_placeholder_4] => 4 [:db_insert_placeholder_5] => [:db_insert_placeholder_6] => http://www.lortie.asso.fr/?q=user/register [:db_insert_placeholder_7] => http://www.lortie.asso.fr/?q=user [:db_insert_placeholder_8] => 90.27.197.65 [:db_insert_placeholder_9] => 1336652837 ) in dblog_watchdog() (line 157 of /homez.119/lortie/www/modules/dblog/dblog.module).

When I want to log in the page doesn't show any normal content any more. Just the above error.

What is going wrong here?

Comments

odegard’s picture

The cannot modify header information-part usually happens if you output any text before the headers are sent. This could happen in, say, index.php if you add echo("boom!") before things are initialized. Some times you close the PHP-tag in a file, and then there's a line break. This is enough to trip up the headers. That's why Drupal (and PHP) recommends to never close PHP tags.

The database error *might* be linked to the first, but it seems that the user lortiedb2 either doesn't exist on the new host or that you don't have sufficient SQL permissions.