View Full Version : Update to MySQL 5.5.x. and the error wysiwyg
romaszek
03-05-2015, 05:32 PM
After updating MySQL 5.1 to version 5.5.x. I get an error when writing the article.
Warning: preg_match() [function.preg-match]: Compilation failed: invalid range in character class at offset 23 in [path]/includes/class_wysiwygparser.php on line 481
Please help.
What to do?
vB v4.2.1.
nerbert
03-05-2015, 10:42 PM
previewing posts
Warning: preg_match(): Compilation failed: invalid range in character class at offset 23 in ..../includes/class_wysiwygparser.php on line 481
includes/class_wysiwygparser.php
Line 481
find
if (preg_match('#attachment.php\?attachmentid=(\d+)#s i', $img_url, $matches) AND preg_match('#class=(\'|"|)([a-z0-9_-\s]+)?\s*previewthumb\s*([a-z0-9_-\s]+)?(\\1)#si', $fullurl))
replace with
if (preg_match('#attachment\.php\?attachmentid=(\d+)# si', $img_url, $matches) AND preg_match('#class=(\'|"|)([a-z0-9_\-\s]+)?\s*previewthumb\s*([a-z0-9_\-\s]+)?(\\1)#si', $fullurl))
romaszek
03-06-2015, 06:49 AM
It works, thank you very much :)
Paul M
03-06-2015, 12:41 PM
You cannot possibly get that error from upgrading mysql, did you actually mean php 5.5 ?
romaszek
03-06-2015, 01:52 PM
My version of php is 5.3.29
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.