A newbie to php - Cannot modify header information - headers already sent

Hi, I am working at transferring a website over to WP. I am very new to .PHP
Can anybody help identify the problem. The website as far as I am aware is a customer built CMS with WP BLOG integrated (news page)

I have seen this kind of error on WP sites and have found white space in wp.config. The strange thing is this wp.config doesnt even exist.

I have attached a snapshot of the file structure of the WP folder.


So, what error? You just showed us a list of folders and files… What error are you getting?

A custom built CMS is not the same as a WP site… Are you starting from scratch or trying to change the custom site
into a WP site? More info would help…

This is the error.

Warning: Cannot modify header information - headers already sent by (output started at /home/fhlinux188/b/buckinghampools.com/user/htdocs/includes/header.php:68) in /home/fhlinux188/b/buckinghampools.com/user/htdocs/news/wp-includes/functions.php on line 3286
Error establishing a database connection

I previously showed you the NEWS FOLDER file structure, as there are cut down wordpress files in it.
There is a mysql database as well, for the wp elements I guess.

I have attached an overall screen shot of the whole website folder/file structure. NEWS(WP) folder is highlighted. Just to reiterate. When collapsed, NEWS FOLDER contains certain WP elements.


This is the original website

http://www.buckinghampools.com/home.php

A picture is for hanging on the wall. You have posted absolutely no code. No one can help you until you do.

As I previously said I am new to this. Which code would I post? Everybody starts somewhere my friend.

The pages shown in the error message would be a good start.

Warning: Cannot modify header information - headers already sent by (output started at /home/fhlinux188/b/buckinghampools.com/user/htdocs/includes/header.php:68) in /home/fhlinux188/b/buckinghampools.com/user/htdocs/news/wp-includes/functions.php on line 3286 Error establishing a database connection

I can not possibly answer this better than this stackoverflow post:

Your problem is that some code in header.php line number 68 outputs some data (may be empty space outside PHP tags as you mentioned). Your code then calls some function (I guess) in functions.php in line 3286 that tries to set some headers (cookie?) - which can not happen after data output has started.

glhf, you will get very well aquainted with stackoverflow as you learn to hone your google-fu… err… programming skills

Sponsor our Newsletter | Privacy Policy | Terms of Service