The Woodworking Source (Banner Ad 2)

Special Events in the next 30 days

Results 1 to 13 of 13
  1. #1
    Forum Leader Corporate Member
    DQ
    Mike Davis's Avatar
    Nickname
    Mike
    Join Date
    Dec 2005
    Location
    Walnut Cove, NC
    Posts
    6,048
    Visit Freq:
    7.00 visits/week
    Threads
    361
    Classifieds
    1

    I get this message sometimes

    Type of Help Needed: Problem
    Where: Main Site

    Fatal error: Cannot redeclare tojulian() (previously declared in /home/ncwoodwo/public_html/forums/packages/vbcms/widget/execphp.php(191) : eval()'d code:123) in /home/ncwoodwo/public_html/forums/packages/vbcms/widget/execphp.php(191) : eval()'d code on line 137
    Most people who are into preparedness, didn't get there because it makes sense. They got there because they suffered and chose not to suffer again.

  2. #2
    Corporate Member
    DQ
    SteveColes's Avatar
    Nickname
    Steve (68)
    Join Date
    Jul 2005
    Location
    Apex, NC
    Posts
    8,876
    Visit Freq:
    2.96 visits/week
    Threads
    1297
    Classifieds
    0

    Re: I get this message sometimes

    can you tell what page you were going to when that happens?

  3. #3
    Forum Leader Corporate Member
    DQ
    Mike Davis's Avatar
    Nickname
    Mike
    Join Date
    Dec 2005
    Location
    Walnut Cove, NC
    Posts
    6,048
    Visit Freq:
    7.00 visits/week
    Threads
    361
    Classifieds
    1

    Re: I get this message sometimes

    Most people who are into preparedness, didn't get there because it makes sense. They got there because they suffered and chose not to suffer again.

  4. #4
    Administrator Corporate Member
    DQ
    ehpoole's Avatar
    Nickname
    Ethan (41)
    Join Date
    Oct 2009
    Location
    Anderson, SC
    Posts
    2,935
    Visit Freq:
    7.04 visits/week
    Threads
    123
    Classifieds
    0

    Re: I get this message sometimes

    The toJulian() routine is code (a PHP function) that has just been added to the Who's Chatting Widget, so the issue has to come from there one way or another -- unless we can find something else within vBulletin that also has a function called toJulian() and that is rarely executed.

    However, what is downright puzzling is that for this to occur the code must be getting eval'd twice, simultaneously, and within the same memory space. I would tend to expect this kind of issue to either be exceptionally rare (once in a blue moon kind of rare) or near constant in nature.

    I have not seen the issue in any of my browsing this morning, so I'm not sure what this tells us off hand unless we can identify what is different between my browsing habits and Mikes (if we can identify that then we may have something to work with).

    Unfortunately, I do not have a good workaround to the issue, the function itself is rather critical and it's presence should not be causing such issues (such functions certainly don't cause issues within other plugins on the site).

    So, sign me as "baffled" for the moment.

  5. #5
    Corporate Member
    DQ
    SteveColes's Avatar
    Nickname
    Steve (68)
    Join Date
    Jul 2005
    Location
    Apex, NC
    Posts
    8,876
    Visit Freq:
    2.96 visits/week
    Threads
    1297
    Classifieds
    0

    Re: I get this message sometimes

    Got the error the first time I tried mike's link. Not the second.

  6. #6
    Administrator Corporate Member
    DQ
    ehpoole's Avatar
    Nickname
    Ethan (41)
    Join Date
    Oct 2009
    Location
    Anderson, SC
    Posts
    2,935
    Visit Freq:
    7.04 visits/week
    Threads
    123
    Classifieds
    0

    Re: I get this message sometimes

    The most infamous plight of the debugger: Please God, let it happen to me!

    It happens for you all on the first try, I just hit that URL about 600-800 times and not one error!

    I have searched the Widget and Plugin tables and verified there is no other code with a function titled toJulian(). I have also searched about 90% of the vBulletin and addon code files and also not turned up any other instances of toJulian () (though I would not expect such files to be executed in the context of an eval().

  7. #7
    Forum Leader Corporate Member
    DQ
    Mike Davis's Avatar
    Nickname
    Mike
    Join Date
    Dec 2005
    Location
    Walnut Cove, NC
    Posts
    6,048
    Visit Freq:
    7.00 visits/week
    Threads
    361
    Classifieds
    1

    Re: I get this message sometimes

    Correct it only happens on the first attempt to log in. Visit a different site then log in to NCWW and it happens again only the first attempt.
    Most people who are into preparedness, didn't get there because it makes sense. They got there because they suffered and chose not to suffer again.

  8. #8
    Forum Leader Corporate Member
    DQ
    Mike Davis's Avatar
    Nickname
    Mike
    Join Date
    Dec 2005
    Location
    Walnut Cove, NC
    Posts
    6,048
    Visit Freq:
    7.00 visits/week
    Threads
    361
    Classifieds
    1

    Re: I get this message sometimes

    http://www.ncwoodworker.net/index.php

    Does not return the error and I believe the chat widget is not on that page.
    Most people who are into preparedness, didn't get there because it makes sense. They got there because they suffered and chose not to suffer again.

  9. #9
    Corporate Member
    DQ
    RandyJ's Avatar
    Nickname
    Randy
    Join Date
    Jan 2006
    Location
    Macon, NC
    Posts
    2,406
    Visit Freq:
    6.04 visits/week
    Threads
    31
    Classifieds
    0

    Re: I get this message sometimes

    If it helps, I get the same thing only the first time I hit Mike's first link. Works fine thereafter...

    Fatal error: Cannot redeclare tojulian() (previously declared in /home/ncwoodwo/public_html/forums/packages/vbcms/widget/execphp.php(191) : eval()'d code:123) in /home/ncwoodwo/public_html/forums/packages/vbcms/widget/execphp.php(191) : eval()'d code on line 137
    Randy

  10. The following user says Thank You to RandyJ for this useful post:


  11. #10
    Administrator Corporate Member
    DQ
    ehpoole's Avatar
    Nickname
    Ethan (41)
    Join Date
    Oct 2009
    Location
    Anderson, SC
    Posts
    2,935
    Visit Freq:
    7.04 visits/week
    Threads
    123
    Classifieds
    0

    Re: I get this message sometimes

    I have rewritten the widget with more protection for the toJulian() function, so hopefully this issue will not popup again.

    Fundamentally, the bug is in vBulletin for eval'ing the same code twice within the same session when it should not be. I'm really surprised that it has not caused other such errors (unless there is something very peculiar about the way they eval() Widget code versus plugin/forum block code.

    For whatever reason, I could only reliably reproduce the issue, thanks to Mike's followup info, when using Chrome -- it just would not happen with any of other browsers I was trying.

  12. #11
    Forum Leader Corporate Member
    DQ
    Mike Davis's Avatar
    Nickname
    Mike
    Join Date
    Dec 2005
    Location
    Walnut Cove, NC
    Posts
    6,048
    Visit Freq:
    7.00 visits/week
    Threads
    361
    Classifieds
    1

    Re: I get this message sometimes

    Thanks, it is fixed now for me. I use Safari Version 4.1.3 (4533.19.4) On Mac OS 10.4.11 if you are curious.
    Most people who are into preparedness, didn't get there because it makes sense. They got there because they suffered and chose not to suffer again.

  13. The following user says Thank You to Mike Davis for this useful post:


  14. #12
    Administrator Corporate Member
    DQ
    ehpoole's Avatar
    Nickname
    Ethan (41)
    Join Date
    Oct 2009
    Location
    Anderson, SC
    Posts
    2,935
    Visit Freq:
    7.04 visits/week
    Threads
    123
    Classifieds
    0

    Re: I get this message sometimes

    Thank you for reporting the issue Mike.

    We don't always learn of these issues until a user takes the time to report them -- it had not happened to me all morning. And, especially, thank you for Copying&Pasting the full text of the error message.

  15. #13
    Forum Leader Corporate Member
    DQ
    Mike Davis's Avatar
    Nickname
    Mike
    Join Date
    Dec 2005
    Location
    Walnut Cove, NC
    Posts
    6,048
    Visit Freq:
    7.00 visits/week
    Threads
    361
    Classifieds
    1

    Re: I get this message sometimes

    Glad to help.
    Most people who are into preparedness, didn't get there because it makes sense. They got there because they suffered and chose not to suffer again.

Similar Threads

  1. Message too short?
    By gazzer in forum Help Desk
    Replies: 1
    Last Post: 06-10-2012, 12:47 PM
  2. Replies: 1
    Last Post: 03-11-2012, 01:18 AM
  3. Replies: 3
    Last Post: 10-30-2007, 08:19 AM
  4. How to edit a message
    By clowman in forum Help Desk
    Replies: 0
    Last Post: 11-08-2005, 02:38 PM

Posting Permissions

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