function.php error line 10

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • CBo
    Member
    • Dec 2009
    • 39
    • 3.8.x

    [Forum] function.php error line 10

    I get this error
    Unable to add cookies, header already sent.
    File: C:\Inetpub\vhosts\belgium4x4.be\subdomains\forum\httpdocs\includes\functions.php(3032) : eval()'d code
    Line: 10
    and don't know what to do.
    This is a part of the php
    Last edited by Zachery; Sat 2 Jan '10, 7:08am.
  • Dody
    Senior Member
    • Aug 2004
    • 1896
    • 3.8.x

    #2
    When and where you get this error?
    while(true){
    if(
    $someone->needsHelp() && $i->canHelp()) $post->help();
    if(
    $i->findBug()) $post->bug();
    }

    Comment

    • CBo
      Member
      • Dec 2009
      • 39
      • 3.8.x

      #3
      When I click a thread on the main page.

      Comment

      • CBo
        Member
        • Dec 2009
        • 39
        • 3.8.x

        #4
        It happend after I took out this from the config.php
        Originally posted by Lynne
        That error is from a modification.

        Try disabling your modifications/plugins and see if you still have this problem.
        Note: To temporarily disable the plugin system, edit config.php and add this line right under <?php

        PHP Code:
        define('DISABLE_HOOKS'true); 
        In stead of taking it out I maybe better write false?
        Because when I put this line back, everyting works perfect, but without plugins and products...

        Comment

        • fwfp
          New Member
          • Jan 2007
          • 22
          • 3.8.x

          #5
          I found out, that this mod was causing this error at my vb4 testsite.
          Last edited by fwfp; Fri 1 Jan '10, 2:28am. Reason: spelling

          Comment

          • CBo
            Member
            • Dec 2009
            • 39
            • 3.8.x

            #6
            Originally posted by fwfp
            I found out, that this mod was causing this error at my vb4 testsite.
            also on line 10?

            Comment

            • Paul M
              Former Lead Developer
              vB.Com & vB.Org
              • Sep 2004
              • 9886

              #7
              Your problem is not on line 10 of functions.php, you are misreading the error message.

              Your actual error is due to a plugin calling the navbits_complete hook, and it is line 10 of that hook code that is faulty.

              Probably best to locate and disable the modification that is causing the error.
              Baby, I was born this way

              Comment

              • CBo
                Member
                • Dec 2009
                • 39
                • 3.8.x

                #8
                I'll test this. Thank you for the information!

                Comment

                • CBo
                  Member
                  • Dec 2009
                  • 39
                  • 3.8.x

                  #9
                  Originally posted by fwfp
                  I found out, that this mod was causing this error at my vb4 testsite.
                  I removed this mod and have got no error anymore. Thanks!

                  Comment

                  widgetinstance 262 (Related Topics) skipped due to lack of content & hide_module_if_empty option.
                  Working...