die 4 true filling my logs

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • fingerstand
    New Member
    • Oct 2012
    • 5
    • 4.2.X

    [Forum] die 4 true filling my logs

    After days of troubleshooting and trying to figure out what exactly is filling up my php error logs, I finally found this god forsaken incredibly vague error in packages/vbforum/attach/album.php

    I updated the code to this just so I could verify that it is indeed spamming my error logs:
    PHP Code:
            {            error_log('packages/vbforum/attach/album.php:116  die 4 ' var_export($this->attachmentinfo['albumstate'] == 'private'                    AND                !can_view_private_albums($this->attachmentinfo['userid']), true));            // echo clear.gif, not permissions error. This may only be needed for 'albumstate' == 'profile'            return 0;        } 
    and it is the culprit.

    can you guys give me some suggestions on what i can do to fix this error?
  • Hartmut
    Senior Member
    • Nov 2007
    • 2870
    • 4.2.x

    #2
    i don't see any problem with the original source code, what error message did you find in your php error logs?
    No private support, only PM me when I ask for it. Support in the forums only.

    Comment

    • fingerstand
      New Member
      • Oct 2012
      • 5
      • 4.2.X

      #3
      here is the full error from my logs:

      [12-Oct-2012 21:16:11 UTC] die 4 true

      Comment

      • Amaury
        Senior Member
        • Mar 2012
        • 1807
        • 4.2.X

        #4
        Originally posted by fingerstand
        here is the full error from my logs:

        [12-Oct-2012 21:16:11 UTC] die 4 true
        That seems kind of short to me. Is there anything else?
        Former vBulletin user

        Comment

        • Zachery
          Former vBulletin Support
          • Jul 2002
          • 59097

          #5
          How are you sure that line of code is what is causing the problem?

          Comment

          • fingerstand
            New Member
            • Oct 2012
            • 5
            • 4.2.X

            #6
            Originally posted by Zachery
            How are you sure that line of code is what is causing the problem?
            hmm, apparently i'm not being clear enough between the two posts.

            so, re: my first post in this thread. i edited line 116 in packages/vbforum/attach/album.php so that instead of

            PHP Code:
            error_log('die 4 ' var_export($this->attachmentinfo['albumstate'] == 'private' 
            it said

            PHP Code:
            error_log('packages/vbforum/attach/album.php:116  die 4 ' var_export($this->attachmentinfo['albumstate'] == 'private' 
            when i changed this line in that file, my error logs started looking like this:

            Code:
            [13-Oct-2012 13:15:36 UTC] die 4 true[13-Oct-2012 13:15:52 UTC] die 4 true
            [13-Oct-2012 13:16:06 UTC] die 4 true
            [13-Oct-2012 13:16:08 UTC] die 4 true
            [13-Oct-2012 13:16:08 UTC] die 4 true
            <---- The above being before I edited the album.php, the below being immediately after I edited the album.php, verifying that file and line are indeed what are filling my error logs ---->
            [13-Oct-2012 13:16:11 UTC] packages/vbforum/attach/album.php:116  die 4 true
            [13-Oct-2012 13:16:22 UTC] packages/vbforum/attach/album.php:116  die 4 true
            [13-Oct-2012 13:16:34 UTC] packages/vbforum/attach/album.php:116  die 4 true
            [13-Oct-2012 13:16:44 UTC] packages/vbforum/attach/album.php:116  die 4 true
            [13-Oct-2012 13:17:01 UTC] packages/vbforum/attach/album.php:116  die 4 true
            [13-Oct-2012 13:17:03 UTC] packages/vbforum/attach/album.php:116  die 4 true


            so hopefully that makes some more sense to you and explains my troubleshooting process here.


            - - - Updated - - -

            Originally posted by Amaury25
            That seems kind of short to me. Is there anything else?
            man, tell me about it, that's why it took me so long to figure out where the error was coming from. not even so much as a line announcement or anything, just that super vague error. see above for my exact cut & paste from the php error logs.

            Comment

            • Hartmut
              Senior Member
              • Nov 2007
              • 2870
              • 4.2.x

              #7
              Are you using lightspeed cache on your server?
              No private support, only PM me when I ask for it. Support in the forums only.

              Comment

              • fingerstand
                New Member
                • Oct 2012
                • 5
                • 4.2.X

                #8
                Originally posted by Hartmut
                Are you using lightspeed cache on your server?
                nope, i don't even know what that is.

                Comment

                • Lynne
                  Former vBulletin Support
                  • Oct 2004
                  • 26255

                  #9
                  Originally posted by fingerstand
                  nope, i don't even know what that is.
                  Go to your admincp and what shows up at the top where it says:

                  Server Type xxxx
                  Web Server xxxx
                  PHP xxxx

                  Please don't PM or VM me for support - I only help out in the threads.
                  vBulletin Manual & vBulletin 4.0 Code Documentation (API)
                  Want help modifying your vbulletin forum? Head on over to vbulletin.org
                  If I post CSS and you don't know where it goes, throw it into the additional.css template.

                  W3Schools &lt;- awesome site for html/css help

                  Comment

                  • Oracle simsim
                    Senior Member
                    • Jul 2009
                    • 117

                    #10
                    I know this thread is old

                    it seems that vBulletin programmer forgot to remove/comment those error_log lines in this file after finishing his/her tests

                    upload\packages\vbforum\attach\album.php

                    I suffered for months from this error
                    منتديات درر العراق

                    Comment

                    • ZeroHour
                      Senior Member
                      • Sep 2007
                      • 167

                      #11
                      Wow this error has been annoying me for ages, well diagnosed.
                      Like you said Oracle, it looks like left over debugging code as some of the Die lines are commented.

                      Basically all the error_log(); lines are debugging lines and not actually something that should be enabled in production code I suspect.

                      Comment

                      • Art Andrews
                        Senior Member
                        • Jan 2005
                        • 143
                        • 4.0.x

                        #12
                        I have been getting these errors for a long time and finally found this thread. I edited my file just as the OP did and sure enough all my "die 4 false" errors now have the additional text on them...

                        Unfortunately, I don't really understand the issue here or how to resolve it. Almost all of these errors for me come from the referer: google.com. While the OP's edit made it clear where the problem lies, it doesn't answer how to resolve it. How does the album.php file need to be edited to stop these errors from occurring?

                        Is this actual evidence of a failure or simply some type of debugging information?

                        Comment

                        • ZeroHour
                          Senior Member
                          • Sep 2007
                          • 167

                          #13
                          Originally posted by Art Andrews
                          Is this actual evidence of a failure or simply some type of debugging information?
                          Debugging.

                          Comment

                          • Art Andrews
                            Senior Member
                            • Jan 2005
                            • 143
                            • 4.0.x

                            #14
                            ZeroHour, if this isn't truly showing an error, is there an easy way to comment it out so we don't get this error showing up in the server log?

                            Comment

                            • Art Andrews
                              Senior Member
                              • Jan 2005
                              • 143
                              • 4.0.x

                              #15
                              I wonder if 4.2.2 will address this.

                              Comment

                              Related Topics

                              Collapse

                              Working...