I keep getting the following error message when adding an image to the K2 component:
Warning: preg_match(): Compilation failed: invalid range in character class at offset 7 in /home/sharond1/public_html/administrator/components/com_k2/lib/class.upload.php on line 2950
Warning: preg_match(): Compilation failed: invalid range in character class at offset 7 in /home/sharond1/public_html/administrator/components/com_k2/lib/class.upload.php on line 3004
Warning: preg_match(): Compilation failed: invalid range in character class at offset 7 in /home/sharond1/public_html/administrator/components/com_k2/lib/class.upload.php on line 3022
I've tried various options of resizing (down to less than 2MB) and changing files names. Could someone send through a fix for the code on these lines, please:
2950: if (preg_match("/^([\.-\w]+)\/([\.-\w]+)(.*)$/i", $this->file_src_mime)) {
3004: if (preg_match("/^([\.-\w]+)\/([\.-\w]+)(.*)$/i", $this->file_src_mime)) {
3022: if (preg_match("/^([\.-\w]+)\/([\.-\w]+)(.*)$/i", $this->file_src_mime)) {
Thanks
Shaz