Menu

Is this a bug?

roland88
2008-12-18
2013-05-30
  • roland88

    roland88 - 2008-12-18

    Just clicked on Timeline chart and got the following errors:

    ERROR 2: in_array(): Wrong datatype for first argument
    0 Error occurred on in function in_array
    1 called from line 138 of file timeline_ctrl.php in function init
    2 called from line 35 of file timeline.php

    Warning: in_array(): Wrong datatype for first argument in /home/.sites/106/site3/web/includes/controllers/timeline_ctrl.php on line 138

    ERROR 2: in_array(): Wrong datatype for first argument
    0 Error occurred on in function in_array
    1 called from line 138 of file timeline_ctrl.php in function init
    2 called from line 35 of file timeline.php

    Warning: in_array(): Wrong datatype for first argument in /home/.sites/106/site3/web/includes/controllers/timeline_ctrl.php on line 138

    ERROR 2: Cannot modify header information - headers already sent by (output started at /home/.sites/106/site3/web/includes/functions.php:734)

    Warning: Cannot modify header information - headers already sent by (output started at /home/.sites/106/site3/web/includes/functions.php:734) in /home/.sites/106/site3/web/includes/functions_print.php on line 429

     
    • Greg Roach

      Greg Roach - 2008-12-18

      I suspect your server runs PHP4.

      If so, a patch is available for this bug on the tracker.

       
    • roland88

      roland88 - 2008-12-19

      Is there a trick with unzipping this file? Winzip just comes up "Bad ip file offset"

       
    • Greg Roach

      Greg Roach - 2008-12-19

      Someone else reported that there seem to be some extra bytes inserted in the header.

      The zip file was created on windows/vista and unzips happily on it.

      The files are available from the 4.1 branch of SVN in any case.

       
    • Mark Hattam

      Mark Hattam - 2008-12-19

      The zip file fails to expand on XP Pro using WinZip8

      ---------------------------
      WinZip
      ---------------------------
      Error in file #1:  bad Zip file offset (Error local header signature not found):  51.
      ---------------------------
      OK   Help  
      ---------------------------

      (you can ctrl-c when the error box is showing to capture the entire error message, then paste it into here ... like wot I have)

      But it does expand on Mac OSX 10.5.6

      Mark

       
    • Gerry Kroll

      Gerry Kroll - 2008-12-19

      Perhaps this post will help:
      http://marc.info/?l=jakarta-commons-user&m=109355475728272&w=2

      The gist of this one is that the FTP client may be configured incorrectly.  The ZIP file is "binary", so you should tell FTP to default to binary to avoid file corruption.

       
    • Mark Hattam

      Mark Hattam - 2008-12-19

      Unzips OK after downloading with FireFox on XP ... not with IE7 on XP.

      FireFox downloads a file that is 4.71 KB (4,826 bytes)
      IE7 downloads a file that is 4.74 KB (4,860 bytes)

      so somehow IE7 gets an extra 34 bytes and a non-working file ... huh ??

      Mark

       
    • Wes Groleau

      Wes Groleau - 2008-12-20

      IE7 for some reason assumed it was a text file and changed every one-byte Unix line break to a two-byte Windows line break.  But since it was NOT a text file, those 34 bytes were NOT line breaks.

       
    • Anonymous

      Anonymous - 2008-12-20

      As mentione above, I don't think its IE7 doing anything, Its XP. I downloaded it via IE7 to my Vista machine with absolutly no problems.

       
    • roland88

      roland88 - 2008-12-21

      Well, I still haven't patched this. Why should this zip file be so different to everything else on the net?

      Does anyone have a patch that one can actually download with Windows XP?

       

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.