Page 1 of 1

[SOLVED]Help. new host. only errors

PostPosted: Tue Sep 26, 2006 11:59 am
Author: MadUser
Hi.
i changed a host from unix to NT.
moved all files. dumped the DB.
gave permissions(i am not sure all correct).
when i load my home page, i get lots of errors.

this are the errors:
------------------------------------------

Warning: Cannot modify header information - headers already sent by (output started at C:vhostspcrage.orghttpdocsim140includestemplate.php:4749) in C:vhostspcrage.orghttpdocsim140includessessions.php on line 412

Warning: Cannot modify header information - headers already sent by (output started at C:vhostspcrage.orghttpdocsim140includestemplate.php:4749) in C:vhostspcrage.orghttpdocsim140includessessions.php on line 414

Warning: Cannot modify header information - headers already sent by (output started at C:vhostspcrage.orghttpdocsim140includestemplate.php:4749) in C:vhostspcrage.orghttpdocsim140includespage_header.php on line 1761

Warning: Cannot modify header information - headers already sent by (output started at C:vhostspcrage.orghttpdocsim140includestemplate.php:4749) in C:vhostspcrage.orghttpdocsim140includespage_header.php on line 1765

Warning: Cannot modify header information - headers already sent by (output started at C:vhostspcrage.orghttpdocsim140includestemplate.php:4749) in C:vhostspcrage.orghttpdocsim140includespage_header.php on line 1767

---------------------- then ---------------------------

Could not read list informations

DEBUG MODE

SQL Error : 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'AND pa.pic_cat_id = 0)' at line 3

SELECT pa.*, (pa.pic_id) AS _list_key, (pa.pic_title) AS _list_txt, (pa.pic_id) AS _list_img
FROM (phpbb_album AS pa)
WHERE (pa.pic_user_id = AND pa.pic_cat_id = 0)



Line : 962
File : def_userfuncs.php

-------------------------------- then ----------------------

Critical Error!
message_die() was called multiple times.
Error #1
Could not read list informations

Line : 962
File : C:vhostspcrage.orghttpdocsim140profilcpdefdef_userfuncs.php
SQL :

SELECT pa.*, (pa.pic_id) AS _list_key, (pa.pic_title) AS _list_txt, (pa.pic_id) AS _list_img
FROM (phpbb_album AS pa)
WHERE (pa.pic_user_id = AND pa.pic_cat_id = 0)


Error #2


Line : 262
File : C:vhostspcrage.orghttpdocsim140includesfunctions_jr_admin.php
SQL : SELECT * FROM phpbb_jr_admin_users WHERE user_id =
Please, contact the webmaster. Thank you.

------------------------------------

what is going on???

you can see it for yourself: http://www.pcrage.org/im140

PostPosted: Tue Sep 26, 2006 4:30 pm
Author: computerz
did you edit your sessions.php file recently? If so, I would replace it with a clean copy of the same version. That error is saying that the page heard is bein called twice.

Re: Help. new host. only errors

PostPosted: Tue Sep 26, 2006 11:32 pm
Author: MadUser
i did not made any changes.
its the same site on a different server.
i dont know what did i forgot to do.
maybe it got somthing to do with the php version?
or the mysql version?

idont know the php new host ver. but the mysql is 4.18-nt.

Re: Help. new host. only errors

PostPosted: Wed Sep 27, 2006 1:04 am
Author: Helter
Any text (including blank lines) placed after ?> at the end of a page will result in 'Header already sent'

check includes/page_header.php and template.php
make sure they are properly closed with ?>
also be sure there is no code following the php close symbol ?>
If your unsure, and you have a stock forum, you can reupload those two files

PostPosted: Wed Sep 27, 2006 2:34 am
Author: MadUser
Thanks, i will try it and inform.

btw.
congratulations.
last time i saw you, you where blue!

Re: Help. new host. only errors

PostPosted: Sat Oct 07, 2006 6:58 am
Author: MadUser
well I had a lot of it but it fix my problem.
i dont get this but if I have (and i had) empty lines after the closing tag (?>
) it throws this error. so I deleted them all.

thanks!!

Re: Help. new host. only errors

PostPosted: Sat Oct 07, 2006 6:59 pm
Author: Teelk
Blank spaces after the ?> is the most common reason for getting the dreaded "headers already sent" error. It can sometimes occur if you compress your files using a compression utility such as winzip or transfering the files from one OS to another(such as your Unix to WinNT move).