Welcome Guest, Not a member yet? Register   Sign In
Facebook sharing Error Message: Cannot modify header information - headers already sent by (output started at /home/wdr/
#1

[eluser]webdevron[/eluser]
I'm using addthis script to share my website pages over Facebook. Whenever I'm going to share my page there is an error message. What to do..?

Error Message:
Error
Message: Cannot modify header information - headers already sent by (output started at /home/user/app/wdr_sys/core/Exceptions.php:185)
#2

[eluser]InsiteFX[/eluser]
It means that you are outputing data before sending the facebook stuff.

Check to see where you are outputting data to your webpage.
#3

[eluser]webdevron[/eluser]
That is my problem.. How to find this..?
#4

[eluser]InsiteFX[/eluser]
best way would be to back up from your error and use exit statements.

Also check where you are loading your views.
#5

[eluser]CroNiX[/eluser]
Since the error message says output is coming from the exceptions class, you can bet you have an error in your code and it's being output to the screen. Check your php error logs.
#6

[eluser]cdechery[/eluser]
Quick tip to try and fix this (I had a similar problem recently).

Check your files for any blank spaces before the initial <?php at the top of the class and after the ?> at the end.




Theme © iAndrew 2016 - Forum software by © MyBB