• The Facebook Platform

Results 1 to 2 of 2
  1. #1
    Join Date
    Jan 2010
    Location
    Lahore, Pakistan
    Age
    25
    Posts
    3,818
    Points
    6,772.51
    Rep Power
    10000

    chat Warning: preg_match() [function.preg-match] - vBulletin

    If your using vBulletin's Advanced Post editor and encountered following error :

    Code:
    Warning: preg_match() [function.preg-match]: Compilation failed: invalid range in character class at offset 23 in [path]/includes/class_wysiwygparser.php on line 458

    Try the Following solution:








    Edit File
    "/includes/
    class_wysiwygparser.php" and Goto Line 458 and Find following code

    Code:
    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 it with following:

    Code:
    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))
    Basically we are moving "_" character 2 times on line 458
    Find Me On Social Networks

    Facebook | Twitter | Google+


  2. #2
    Join Date
    Nov 2015
    Posts
    5
    Points
    5.00
    Rep Power
    0

    Default Re: Warning: preg_match() [function.preg-match] - vBulletin

    thanks! any chance to have your skin to download?


 

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

     

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •