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.
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
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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?
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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 ;-)
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Logged In: YES
user_id=82865
Make sure your PHP installation is ok with perl compatible
regexp
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
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.
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...
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.
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
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
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?
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
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
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
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.
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 ;-)
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.
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.
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
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.
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
Logged In: YES
user_id=140093
I regret to say but the fix doesn't solve the invalid range
problem for me :-(
Regards
Daniel
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&amp;mail_to=\\1
\">\\1</a>",$body);
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)
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.
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.