Bug Error whilst viewing edit history

Discussion in 'Support & Feedback' started by MhW, Oct 5, 2009.

  1. #1
    Next time you see "Last edited by Whoever" click the link and view a comparison. The following error shows up at the top of the page:

    
    Warning: trim() expects parameter 1 to be string, array given in [path]/includes/class_diff.php on line 451
    
    Warning: trim() expects parameter 1 to be string, array given in [path]/includes/class_diff.php on line 476
    Code (markup):
    Example: http://forums.digitalpoint.com/posthistory.php?do=compare&p=12613685

    Sorry :eek:
     
    MhW, Oct 5, 2009 IP
  2. digitalpoint

    digitalpoint Overlord of no one Staff

    Messages:
    38,334
    Likes Received:
    2,613
    Best Answers:
    462
    Trophy Points:
    710
    Digital Goods:
    29
    #2
    Hmmmm... I didn't know users could see their own edit history. Besides the errors, do you actually see anything?
     
    digitalpoint, Oct 5, 2009 IP
  3. MhW

    MhW Active Member

    Messages:
    370
    Likes Received:
    23
    Best Answers:
    0
    Trophy Points:
    85
    #3
    Yeah, the page loads fine. :)

    Only visible error other than the error message itself is an inflated nav bar:
    [​IMG]

    The edit history shows below that, then the footer, and so on...
     
    MhW, Oct 5, 2009 IP
  4. digitalpoint

    digitalpoint Overlord of no one Staff

    Messages:
    38,334
    Likes Received:
    2,613
    Best Answers:
    462
    Trophy Points:
    710
    Digital Goods:
    29
    #4
    Ah... seems to be a new "warning" message for PHP 5.3.x. I fixed it by type casting it, and it's been reported to vBulletin developers so hopefully they fix it in the source going forward.
     
    digitalpoint, Oct 5, 2009 IP