My site is seoitc.com, we are using joomla for this site, but have 1 problem when i try auto redirect to anypage that show error: Warning: Cannot modify header information - headers already sent by ().
I tried change redirect to use js but cant use same status(302,303...) same as in php. Please help to fix this problem please.
Thanks!
pham.vanmanh.50 0 Newbie Poster
Recommended Answers
Jump to PostYour header() is declared after output to the page. Ensure that no html , whitespace or php-derived html or php errors are output before the header()
Jump to PostOk. Unless you post your code, I can't see how we can be of further assistance. It would be guesswork on our part.
Jump to PostI can't see the point of the js - does it ever get implemented? The header() or return false will stop the function before the js is reached.
The code seems OK, but I don't know what happens with the external function calls:
$status = apply_filters('wp_redirect_status', …
Jump to PostWarning: Cannot modify header information - headers already sent by ()
Does it give a line number for the headers sent by... ? If so, print the block of code to which it belongs.
All 16 Replies

diafol
pham.vanmanh.50 0 Newbie Poster

diafol
pham.vanmanh.50 0 Newbie Poster

diafol
pham.vanmanh.50 0 Newbie Poster
R0bb0b 344 Posting Shark

diafol
pham.vanmanh.50 0 Newbie Poster
pham.vanmanh.50 0 Newbie Poster
pham.vanmanh.50 0 Newbie Poster

diafol
pham.vanmanh.50 0 Newbie Poster

diafol
pham.vanmanh.50 0 Newbie Poster

diafol
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.