Re: Error preg_match() [function.preg-match]: Compilation failed

See all posts Reply

Re: Error preg_match() [function.preg-match]: Compilation failed new!
by Nick, 10 years, 4 months ago
hey mate.. Great script. have been using for a while.. Recently getting the following error though. Upload is still fine though.. Any thoughts?

Warning: preg_match() [function.preg-match]: Compilation failed: invalid range in character class at offset 7 in /home/.…../dom/class.upload.php on line 2939

Warning: preg_match() [function.preg-match]: Compilation failed: invalid range in character class at offset 7 in /home/.…../dom/class.upload.php on line 2993

Warning: preg_match() [function.preg-match]: Compilation failed: invalid range in character class at offset 7 in /home/..../dom/class.upload.php on line 3011Reply
Re: Error preg_match() [function.preg-match]: Compilation failed new!
by colin, 10 years, 4 months ago
Can you copy here the log produced by the class? Especially the lines MIME type detected as ...Reply
Re: Error preg_match() [function.preg-match]: Compilation failed new!
by ferran, 10 years, 3 months ago
In php 5.5 the hyphen needs to be scaped. Take a look here:
http://stackoverflow.com/questions/24764212/preg-match-compilation-failed-invalid-range-in-character-class-at-offset-20Reply
Re: Error preg_match() [function.preg-match]: Compilation failed new!
by colin, 10 years, 3 months ago
Thank you. It will be fixed in the next release, that you can actually test here.Reply
Re: Error preg_match() [function.preg-match]: Compilation failed new!
by Ronny Rook, 10 years ago
Is this already fixed? I'm facing the same problem.
Would be great, thanks instead.Reply
Re: Error preg_match() [function.preg-match]: Compilation failed new!
by colin, 10 years ago
You can get the soon to be released new version here, in which the issue is fixed.Reply
Re: Error preg_match() [function.preg-match]: Compilation failed new!
by fred, 9 years, 8 months ago
Hello,
Sitll having this problem.
Is it because of a php configuration ?Reply