I am running a personal website off of 1and1.com (free hosting with PHP and MySQL for 3 years by the way, offer ends Jan 21, hurry!). Anyway, I can't figure out how to clear all the errors on the install.
I believe I have the MySQL installed correctly...
I have drupal downloaded and installed correctly, edited the conf.php like the docs say...
(I still have the little error blurb at the top of the page about magic_quotes...)
I can create a user account, and presumably content as well --- I have phpMyAdmin installed and can verify the existence of my first user account...
But, alas, I'm plagued by the following errors:
warning: Cannot add header information - headers already sent by (output started at /homepages/12/d91194582/htdocs/includes/common.inc:86) in /homepages/12/d91194582/htdocs/modules/user.module on line 668.
warning: Cannot add header information - headers already sent by (output started at /homepages/12/d91194582/htdocs/includes/common.inc:86) in /homepages/12/d91194582/htdocs/includes/common.inc on line 478.
What gives, gurus?
TIA,
omigod guy
Comments
Headers already sent
See this FAQ entry, this forum topic or many others posts that can be found by searching the site first.
Nope, that didn't fix it...
I scoured over every php file in my drupal install. None have extra whitespace after the final '?>'. And none of the header errors refer to line numbers beyond the last line in any file.
The problem seems to be with the other error I'm having - that of "magic quotes not being set to 0". In .htaccess (in the htdocs directory), I have the entry "php_value magic_quotes_gpc 0", so maybe this webserver is not seeing the .htaccess file...
But I thought Apache read all .htaccess files automagically?
I figure if I clear up the magic_quotes problem, the headers error will clear...
Any help would be appreciated.
TIA!
JLM
Headers / PHP.ini
The only way I have found to make this work is by putting your own php.ini file into your Drupal installation directory. I think that 1and1 reads SOME of the .htaccess file, but not all of it. The php.ini file definitely clears up the magic quotes thing. I don't know enough about any of the other stuff to tell you how to tweak the file the best way and there is definitely trouble with some of the modules (add 'em one at a time) but it does work. See
for an example.