Hello there,
I'm having a problem with my Drupal installation :(
Here's exactly what happened and what I did.
My drupal installation was under an addon domain in a cpanel account.
I've decided to transfer this addon domain to it's own account so as to be visible with whm.
I've done:
1) deleted the addon domain with cpanel
2) exported the database with phpmyadmin
3) created the new account with whm
4) created a new mysql database and imported the previously done backup
5) with ssh copied the drupal folder to the /public_html folder of the new account
6) chown'ed -R newuser *
6) edited line 87 of /sites/default/settings.php with the new mysql database and user information
Opened up my browser and was greeted by my drupal site. So far so good.
However I tried to login and upon pressing submit I was greeted by an empty white page.
Refreshing the page, It loaded the page but with a message in read:
* warning: session_regenerate_id() [function.session-regenerate-id]: Cannot regenerate session id - headers already sent in /home/poetry/public_html/modules/user.module on line 966.
* warning: Cannot modify header information - headers already sent by (output started at /home/poetry/public_html/themes/arcmateria/template.php:49) in /home/poetry/public_html/includes/common.inc on line 269.
I was logged in however, so I proceeded to check if the rest of the site works.
Browsing gives no problem, changing some settings works as well.
But changing others, like block code gives me:
The block configuration has been saved.
warning: Cannot modify header information - headers already sent by (output started at /home/poetry/public_html/themes/arcmateria/template.php:49) in /home/poetry/public_html/includes/common.inc on line 269.
Here's the vps configs:
CentOS
cPanel/Whm
PHP 4.4.3
What I've tried to do is:
1) repair the database with cpanel
2) delete all sess_* in /tmp/
None of those helped :(
What could be the solution to my problem?
Any input would be greatly appreciated.
Thank You
-Wojtek
Comments
Sorry, forgot to add two
Sorry, forgot to add two things:
1) the MySQL version is 4.1.21-standard
2) before transferring the account I made sure everything was working fine, aka, I had no logins/white page problems
Thank You
-Wojtek
Check your template.php
Check your template.php file, make sure you don't have ?> and a newline at the end.
Thank you for your
Thank you for your reply,
template.php did indeed have two empty return lines at the end.
After removing them and trying the site, I can happily say that the problem is fixed :)
Thanks again John
-Wojtek
Thanks !! I'v got this same
Thanks !!
I'v got this same problem, but now always work ok.
Using Marinelli, no ?> at the end of template.php
Using Marinelli, no ?> at the end of template.php
Hi,
I have the same problem and using Marinelli theme I just found that there is no ?> at the end of the file, is it normal ?
Thanks.
Hmm, I got this warning in
Hmm, I got this warning in Drupal 5.1 when I moved whole drupal installation to a new server.
I can't get a session id so login isn't working.
warning: session_regenerate_id() [function.session-regenerate-id]: Cannot regenerate session id - headers already sent in C:\AppServ\www\includes\session.inc on line 103.
At first it helped deleting spaces in template.php (in my theme) but then after some database fixes it was back and can't get rid of it.
Any other method to fix this problem?
Adding some more info
I had the very same "session_regenerate" problem. I had two
<?php ... ?>tags on my template.php file, solved by setting the two php codes inside a single<?php ... ?>tagConfirmed
This solution worked for me. We kept getting a white screen when submitting any kind of form. Drupal 6.13
Thanks eforth!