Menu

#69 Invalid range end

Reproducible
closed-duplicate
None
5
2001-10-21
2001-06-13
No

Sometimes, not aal the time, i haven'yt figured out yet
when, and when not, i get in emails the message:
Warning: Invalid range end in
/var/www/html/nocc/functions.php on line 394
it -seems- those message appear just randomly.

Discussion

1 2 > >> (Page 1 of 2)
  • Nicolas Chalanset

    • assigned_to: nobody --> nicocha
    • status: open --> open-invalid
     
  • Nicolas Chalanset

    Logged In: YES
    user_id=82865

    Make sure your PHP installation is ok with perl compatible
    regexp

     
  • Nobody/Anonymous

    Logged In: NO

    I get the same error intermittently when viewing messages -
    pressing refresh makes it go away - maybe 1 in 20 message
    views has this problem.

    Warning: Invalid range end
    in /home/sites/site6/web/nocc/functions.php on
    line 394

    Can't understand why it would be intermittent and clear up
    with a refresh... This is a virgin RAQ4 with PHP & Apache -
    same error comes up when NOCC is configured for either POP
    or IMAP. Is there anything I can do to help troubleshoot?

    -Steve

     
  • Nicolas Chalanset

    Logged In: YES
    user_id=82865

    Please try latest CVS version available here:

    http://nocc.sourceforge.net/download/

    And report if bug's still present.

     
  • Nobody/Anonymous

    Logged In: NO

    I downloaded and installed latest version of NOCC 2 days
    ago and have the same problem - same message *some* of the
    time...

     
  • Nicolas Chalanset

    Logged In: YES
    user_id=82865

    I've just made some modification.
    Could you try the latest snapshot available at
    http://nocc.sourceforge.net/download
    and tell if the problem persists.

     
  • Nobody/Anonymous

    Logged In: NO

    I downloaded the dev code yesterday - although I think you
    may have made some later changes - and I get the same error
    (line number has moved)

    Warning: Invalid range end
    in /home/sites/site6/web/nocc2/functions.php on line 435

    I will try again

    -Steve

     
  • Nobody/Anonymous

    Logged In: NO

    seems worse now :-(

    Warning: Invalid range end
    in /home/sites/site6/web/nocc2/functions.php on line 441

    I get this perhaps 30% of the time, often takes 2 or 3
    refreshes to make it go away. Old messages and new ones are
    affected, it doesn't seem to discriminate.

    If there is any code you want me to insert for debugging,
    let me know - I can tolerate a mashed up screen full of
    debugging info for a while ...

    File attachments work for me now, which didn't before.
    Minor, minor point, but when you attach a file the priority
    gets set back to 'normal'.

    Regards

    -Steve

     
  • Arjen Heidinga

    Arjen Heidinga - 2001-06-22

    Logged In: YES
    user_id=45229

    I installed the CVS version this morning (Fry 22-06) and the
    error moved to line 441 :-(
    and it now occurs in all messages...

    About the Perl Regexp thingie: I installed all the php RPM's
    from redhat, could this be the problem, i don't know basicly
    nothing about php, i have a phpinfo file created, what
    should i look for, if i want to know if the perl thing is ok?

     
  • Nicolas Chalanset

    Logged In: YES
    user_id=82865

    Ok, the problem might come from PHP rpm as there are often
    a lots of bugs in these RPM from redhat.
    You should try to compil PHP from scratch.
    Information on how to install PHP can be found on PHP web
    site http://www.php.net

     
  • Nobody/Anonymous

    Logged In: NO

    from what I can see (sorry, my first look at PHP - I'm much
    more used to ASP for all my sins...) the line that causes
    the problem is trying to make all e-mail addresses in the
    body of the text clickable.

    On my RAQ system, no email addresses become mail-to links
    at all, so it looks like the line is not working even when
    it does not cause an error. I am tempted to just comment
    out line 441 and see what happens...

    Additionally, there is some comment on the squirrelmail
    site referring to an out of date glibc causing the same
    problem with their PHP mail package - perhaps this is the
    same problem here.

    -Steve

     
  • Nobody/Anonymous

    Logged In: NO

    Get this error.. will it be fixed..?:

    Warning: Invalid range end
    in /home/sites/site6/web/nocc2/functions.php on line 435

     
  • Nicolas Chalanset

    Logged In: YES
    user_id=82865

    The problem comes from an out of date glibc. To correct
    this problem, you have to upgrade your glibc to a more
    recent one.

     
  • Nobody/Anonymous

    Logged In: NO

    I tried one of the july-snapshots and had the same invalid-
    range-problem on two from three webservers. The glibc-
    Version is always the same - the PHP-Version not (4.0.4 is
    working, 4.0.6 compiled with '--with-regex=system' works
    sometimes and sometimes not ;-)

     
  • Arjen Heidinga

    Arjen Heidinga - 2001-07-06

    Logged In: YES
    user_id=45229

    I have compiles the latest stable glibc, and it just does
    the same thing, but now only when i hit refresh a few times,
    its ok.

     
  • Suracha S.

    Suracha S. - 2001-07-07

    Logged In: YES
    user_id=152823

    dear,
    I use NOCC for 3 days on http://bangkokserver.net, RaQ 3.
    Invalid range end, same line.

    I create new languages Thai for my country.
    The charset is 'Windows-874', and newer version is 'tis-
    620'.

    When use Windows-874, error is happen.
    When change to tis-620, it's ok.

    May be invalid range come from character set or translation?

    regards,
    Suracha S.

     
  • steve banks

    steve banks - 2001-07-12

    Logged In: YES
    user_id=251810

    I'm not sure if this is a good thing or not, but I have
    done a search & replace through functions.php and replaced
    every occurence of :alnum: with a-zA-Z0-9 and it seems to
    have stopped the error (although I have only used it like
    this for a day, but I would expect to have seen this error
    many times already)

    I am still not convinced that my PHP implementation is
    working correctly, though as it doesn't seem to turn web
    addresses into links and suchlike, but it does seem to have
    cured the error...

    Are these 2 strings functionally equivalent, and should
    there be any problem with doing this?

    -Steve

     
  • Suracha S.

    Suracha S. - 2001-07-12

    Logged In: YES
    user_id=152823

    dear stevebanks,

    I have try on what you suggest,
    and yes, it work a lot better.
    Actually, those script search for an URL or email address,
    do you think _, . /, (underscore, dot, slash) should be
    required too.

    regards,
    Suracha S.

     
  • Nicolas Chalanset

    • status: open-invalid --> open-fixed
     
  • Nicolas Chalanset

    Logged In: YES
    user_id=82865

    I have added the correction of stevebanks into the CVS tree.
    These two line are equivalent as alnum represent all
    alphanumeric character (the same as a-zA-Z0-9)
    Everyone having 'invalid range' problem is invited to
    download the latest CVS version (nocc 0.9.5-dev) available
    for download at http://nocc.sourceforge.net/download

    PS : thanks Steve for the correction

    Regards
    Nicolas Chalanset

     
  • Daniel Neuhaus

    Daniel Neuhaus - 2001-07-12

    Logged In: YES
    user_id=140093

    I regret to say but the fix doesn't solve the invalid range
    problem for me :-(

    Regards
    Daniel

     
  • Daniel Neuhaus

    Daniel Neuhaus - 2001-07-12

    Logged In: YES
    user_id=140093

    hi again!

    the following works perfect for me and catches more links
    and e-mail-addys:

    $body = preg_replace("/(?<!<a href=\")(?<!
    \")(?<!\">)((http|https|ftp):\/\/[\w?=&.;\/-]+)/","<a
    href=\"\\1\" target=\"_blank\">\\1</a>",$body);
    $body = preg_replace("/((?<!<a
    href=\"mailto:)(?<!\">)(?<=(>|\s))[\w_.-]+@[\w_.-]+[\w]
    +)/","<a href=\"$PHP_SELF?action=write&mail_to=\\1
    \">\\1</a>",$body);

     
  • Nobody/Anonymous

    Logged In: NO

    I still get the 'invalid range end' with the latest CVS, but if I replace a-zA-z0-9 with [a-zA-Z0-9] then the
    problems go away.

    I don't know why, though...

    -SteveBanks (unable to login currently - sorry)

     
  • steve banks

    steve banks - 2001-07-20

    Logged In: YES
    user_id=251810

    Well, I've been running with the change below for >1 week
    now and haven't had the error at all. I haven't had time to
    try DNID's suggestion.

    -Steve

    >I still get the 'invalid range end' with the latest CVS,
    >but if I replace a-zA-z0-9 with [a-zA-Z0-9] then the
    >problems go away.

     
  • Nobody/Anonymous

    Logged In: NO

    I made the changes listed below, both the a-zA-Z0-9, and the
    alternative with square brackets; the Invalid range in line
    394 has been replaced with Maximum execution time of 30
    seconds exceeded in line 394. This only happens with a
    rather large and complex message, though -- it's a list
    digest, 43KB and full of challenging material. I can
    forward a copy of the message if someone wants to use it as
    a stress test.

    What's odd is my php.ini is now set to allow 45 seconds, and
    the error still says 30 seconds. :-/ I suspect that NOCC
    might chew its way through that message if I gave it enough
    time.

     
1 2 > >> (Page 1 of 2)

Log in to post a comment.

MongoDB Logo MongoDB