Hi,

i've made a Website locally on my PC with XAMPP with Drupal 7 (SQLite Database) and Corporate Clean Theme. I uploded the finished site, made the correct permission settings for Files and Folders, and
everything worked perfect. A few hours later the site gives me this Error at the bottom of the Page:

Warning: Cannot modify header information - headers already sent by (output started at /home/project-web/jdosbox/htdocs/cms/includes/common.inc:2700) in drupal_send_headers() (line 1217 of /home/project-web/jdosbox/htdocs/cms/includes/bootstrap.inc).
PDOException: SQLSTATE[HY000]: General error: 11 database disk image is malformed: INSERT INTO {watchdog} (uid, type, message, variables, severity, link, location, referer, hostname, timestamp) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?); Array ( [0] => 0 [1] => cron [2] => %type: !message in %function (line %line of %file). [3] => a:6:{s:5:"%type";s:12:"PDOException";s:8:"!message";s:205:"SQLSTATE[HY000]: General error: 11 database disk image is malformed: DELETE FROM {cache_bootstrap} WHERE (cid = :db_condition_placeholder_0) ; Array ( [:db_condition_placeholder_0] => variables ) ";s:9:"%function";s:17:"cache_clear_all()";s:5:"%file";s:55:"/home/project-web/jdosbox/htdocs/cms/includes/cache.inc";s:5:"%line";i:165;s:14:"severity_level";i:3;} [4] => 3 [5] => [6] => http://jdosbox.sourceforge.net/cms/ [7] => http://jdosbox.sourceforge.net/cms/node/7 [8] => 127.0.0.1 [9] => 1397898405 ) in dblog_watchdog() (line 160 of /home/project-web/jdosbox/htdocs/cms/modules/dblog/dblog.module).

I don't knew why this happend, it worked before. This is the page: http://jdosbox.sourceforge.net/cms/
Is there a solution for this?

EDIT: the error is now:
Warning: Cannot modify header information - headers already sent by (output started at /home/project-web/jdosbox/htdocs/cms/includes/common.inc:2700) in drupal_send_headers() (line 1217 of /home/project-web/jdosbox/htdocs/cms/includes/bootstrap.inc).
PDOException: There is already an active transaction in dblog_watchdog() (line 160 of /home/project-web/jdosbox/htdocs/cms/modules/dblog/dblog.module).

Comments

nevets’s picture

This part of the message "database disk image is malformed" suggests your database is corrupted.

divinity002’s picture

Ok, database was malformed - i uploaded the older Database from my Harddrive and it works again. Question: How can i backup the database from the server without malforming it? I use Filezilla.

nevets’s picture

Filezilla is just for transferring files. You can not simply copy the database files from one machine to the next. mySql includes tools for backing up the database and if you have phpMyAdmin installed you can use that to make a backup.