Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 5 of 5
  1. #1
    New to the CF scene
    Join Date
    Aug 2012
    Posts
    5
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Website not working in internet explorer (sometimes)

    I've just made this website moneyontoast .leewebsites.com and had a look at it on internet explorer but having a few issues.

    40% of the time, the page loads perfectly, 40% of the time only the background loads, 20% the time, the page loads but in a totally different font.

    Secondly, I'm getting the error

    Code:
    Warning: Cannot modify header information - headers already sent by (output started at /home/ichl13/public_html/moneyontoast/wp-content/plugins/WP-Client/wp-client.php(22) : eval()'d code(1) : eval()'d code(1) : eval()'d code(1) : eval()'d code(129) : eval()'d code:2) in /home/ichl13/public_html/moneyontoast/wp-login.php on line 362
    Occasionally when a page on the site loads, and 100% of the time when I try to log in. Could anyone help me with these problems?

    By the way, these issues are only present in internet explorer. The site works flawlessly in firefox and chrome.

    Thanks
    Ian

  • #2
    Senior Coder
    Join Date
    Feb 2011
    Location
    Your Monitor
    Posts
    4,341
    Thanks
    60
    Thanked 527 Times in 514 Posts
    Blog Entries
    4
    Headers are sent before html output. Therefore once they are sent, thats it, they're sent. You can't change them. I have a link about this in my signature.

    Also your error message shows you are making use of the eval() function a lot of times. eval is very useful but it does make debugging a little more complex if you don't know what you're doing and even those of us that do can't help you if you have no code to show.

    If you're seeing differing things each time you load the page then you need to start by seperating your html and php because this suggests you have them mixed and are suffering logic flow / output issues because of it.
    See my new CodingForums Blog: http://www.codingforums.com/blogs/tangoforce/

    Many useful explanations and tips including: Cannot modify headers - already sent, The IE if (isset($_POST['submit'])) bug explained, unexpected T_CONSTANT_ENCAPSED_STRING, debugging tips and much more!

  • #3
    New to the CF scene
    Join Date
    Aug 2012
    Posts
    5
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Thanks for the reply. I've tried temporarily removing all the html code from the php files but still get the same problem.

    Why is it that the problem only occurs in internet explorer? Also, any chance you can take a look at the site's code for me if I give you access? I'm really stuck for ideas.

  • #4
    New to the CF scene
    Join Date
    Oct 2012
    Posts
    5
    Thanks
    0
    Thanked 1 Time in 1 Post
    Good day, Maybe you have issues on your coding. I do have an experience in creating websites. Sometimes, this error message shows up when your PHP code should be executed first before the header tag like accessing the database records.

    Review your codes to ensure that you will not experience this error again.

    Also, I advice that you work not only in internet explorer for there are new browser now being used by people. Don't get stuck with IE try to explore new things.

    Good luck. =)

  • #5
    Senior Coder
    Join Date
    Feb 2011
    Location
    Your Monitor
    Posts
    4,341
    Thanks
    60
    Thanked 527 Times in 514 Posts
    Blog Entries
    4
    Quote Originally Posted by ichl13 View Post
    Thanks for the reply. I've tried temporarily removing all the html code from the php files but still get the same problem.

    Why is it that the problem only occurs in internet explorer? Also, any chance you can take a look at the site's code for me if I give you access? I'm really stuck for ideas.
    I'm not logging into your site I'm afraid. To you, I'm a complete stranger and that opens the way for accusations of hacking, file damage, etc. Sorry I don't want that! Addionally, you could be a hacker with stolen login details wanting to get a 3rd party to login to a site to test it / get their IP logged. That technique is called social engineering because you're convincing someone else to do something for you without them being aware of the consequences.

    You can however post your code here by replying to this thread. Please be sure to put your code inside [php][/php] tags for php / mixed html and php OR [code][/code] tags for plain html.

    Quote Originally Posted by JohnRomanPHP View Post
    Sometimes, this error message shows up when your PHP code should be executed first before the header tag like accessing the database records.

    Review your codes to ensure that you will not experience this error again.

    Also, I advice that you work not only in internet explorer for there are new browser now being used by people. Don't get stuck with IE try to explore new things.
    Thats not really helping is it. Also the op is clearly working with multiple browsers because they have said this error only happens in IE (meaning it doesn't happen in others that they've tested it in). How does reviewing code mean that the error will not happen again? You need to find and fix the bug
    See my new CodingForums Blog: http://www.codingforums.com/blogs/tangoforce/

    Many useful explanations and tips including: Cannot modify headers - already sent, The IE if (isset($_POST['submit'])) bug explained, unexpected T_CONSTANT_ENCAPSED_STRING, debugging tips and much more!


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •