PHP 7.3: Weiterer Fehler mit Regex

  • Thu, 05 Jul 2018 15:43:09 +0000

    Message: preg_replace(): Compilation failed: invalid range in character class at offset 39

    PHP version: 7.3.0alpha3

    WoltLab Suite version: 3.1.4

    Request URI: /projects/WOLTLAB/3.1/acp/index.php?ajax-proxy/&t=99fc3d4136e99b0506c3f2dd6011aa1c1c091fda

    Referrer: http://localhost/projects/WOLT…vtools-notification-test/

    User Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:63.0) Gecko/20100101 Firefox/63.0

    Peak Memory Usage: 3865336/536870912

    ======

    Error Class: wcf\system\exception\ErrorException

    Error Message: preg_replace(): Compilation failed: invalid range in character class at offset 39

    Error Code: 0

    File: C:\nginx\html\projects\WOLTLAB\3.1\lib\system\WCF.class.php (346)

    Extra Information: -

    Stack Trace: [{"function":"handleError","class":"wcf\\system\\WCF","type":"::","args":[2,"preg_replace(): Compilation failed: invalid range in character class at offset 39","C:\\nginx\\html\\projects\\WOLTLAB\\3.1\\lib\\system\\api\\pelago\\emogrifier\\Classes\\Emogrifier.php",1277,{"cssSelector":"[redacted]","paddedSelector":"[redacted]","lowercasePaddedSelector":"[redacted]","trimmedLowercaseSelector":"[redacted]","xPathKey":"[redacted]"}],"file":"[internal function]","line":"?"},{"file":"C:\\nginx\\html\\projects\\WOLTLAB\\3.1\\lib\\system\\api\\pelago\\emogrifier\\Classes\\Emogrifier.php","line":1277,"function":"preg_replace","args":[["[redacted]","[redacted]","[redacted]","[redacted]","[redacted]","[redacted]","[redacted]","[redacted]","[redacted]","[redacted]","[redacted]","[redacted]","[redacted]"],{"\/\\s*>\\s*\/":"[redacted]","\/\\s+\\+\\s+\/":"[redacted]","\/\\s+(?=.*[^\\]]{1}$)\/":"[redacted]","\/([^\\\/]+):first-child\/i":"[redacted]","\/([^\\\/]+):last-child\/i":"[redacted]","\/^\\[(\\w+|\\w+\\=['\"]?\\w+['\"]?)\\]\/":"[redacted]","\/(\\w)\\[(\\w+)\\]\/":"[redacted]","\/(\\w)\\[(\\w+)\\=['\"]?([\\w\\s]+)['\"]?\\]\/":"[redacted]","\/([\\w\\*]+)\\[(\\w+)[\\s]*\\~\\=[\\s]*['\"]?([\\w-_\\\/]+)['\"]?\\]\/":"[redacted]","\/([\\w\\*]+)\\[(\\w+)[\\s]*\\^\\=[\\s]*['\"]?([\\w-_\\\/]+)['\"]?\\]\/":"[redacted]","\/([\\w\\*]+)\\[(\\w+)[\\s]*\\*\\=[\\s]*['\"]?([\\w-_\\s\\\/]+)['\"]?\\]\/":"[redacted]","\/([\\w\\*]+)\\[(\\w+)[\\s]*\\$\\=[\\s]*['\"]?([\\w-_\\s\\\/]+)['\"]?\\]\/":"[redacted]","\/([\\w\\*]+)\\[(\\w+)[\\s]*\\|\\=[\\s]*['\"]?([\\w-_\\s\\\/]+)['\"]?\\]\/":"[redacted]"},"*"],"class":"","type":""},{"file":"C:\\nginx\\html\\projects\\WOLTLAB\\3.1\\lib\\system\\api\\pelago\\emogrifier\\Classes\\Emogrifier.php","line":366,"function":"translateCssToXpath","class":"Pelago\\Emogrifier","type":"->","args":["*"]},{"file":"C:\\nginx\\html\\projects\\WOLTLAB\\3.1\\lib\\system\\api\\pelago\\emogrifier\\Classes\\Emogrifier.php","line":289,"function":"process","class":"Pelago\\Emogrifier","type":"->","args":["DOMDocument"]},{"file":"C:\\nginx\\html\\projects\\WOLTLAB\\3.1\\lib\\system\\email\\mime\\RecipientAwareTextMimePart.class.php","line":81,"function":"emogrify","class":"Pelago\\Emogrifier","type":"->","args":[]},{"file":"C:\\nginx\\html\\projects\\WOLTLAB\\3.1\\lib\\system\\user\\notification\\TestableUserNotificationEventHandler.class.php","line":137,"function":"getContent","class":"wcf\\system\\email\\mime\\RecipientAwareTextMimePart","type":"->","args":[]},{"file":"C:\\nginx\\html\\projects\\WOLTLAB\\3.1\\lib\\data\\user\\notification\\event\\UserNotificationEventAction.class.php","line":154,"function":"getEmailBody","class":"wcf\\system\\user\\notification\\TestableUserNotificationEventHandler","type":"->","args":["wcf\\system\\user\\notification\\event\\UserFollowFollowingUserNotificationEvent","daily"]},{"function":"testEvent","class":"wcf\\data\\user\\notification\\event\\UserNotificationEventAction","type":"->","args":[],"file":"[internal function]","line":"?"},{"file":"C:\\nginx\\html\\projects\\WOLTLAB\\3.1\\lib\\data\\AbstractDatabaseObjectAction.class.php","line":204,"function":"call_user_func","args":[["[redacted]","[redacted]"]],"class":"","type":""},{"file":"C:\\nginx\\html\\projects\\WOLTLAB\\3.1\\lib\\action\\AJAXProxyAction.class.php","line":75,"function":"executeAction","class":"wcf\\data\\AbstractDatabaseObjectAction","type":"->","args":[]},{"file":"C:\\nginx\\html\\projects\\WOLTLAB\\3.1\\lib\\action\\AJAXInvokeAction.class.php","line":104,"function":"invoke","class":"wcf\\action\\AJAXProxyAction","type":"->","args":[]},{"file":"C:\\nginx\\html\\projects\\WOLTLAB\\3.1\\lib\\action\\AbstractAction.class.php","line":47,"function":"execute","class":"wcf\\action\\AJAXInvokeAction","type":"->","args":[]},{"file":"C:\\nginx\\html\\projects\\WOLTLAB\\3.1\\lib\\action\\AJAXInvokeAction.class.php","line":63,"function":"__run","class":"wcf\\action\\AbstractAction","type":"->","args":[]},{"file":"C:\\nginx\\html\\projects\\WOLTLAB\\3.1\\lib\\system\\request\\Request.class.php","line":83,"function":"__run","class":"wcf\\action\\AJAXInvokeAction","type":"->","args":[]},{"file":"C:\\nginx\\html\\projects\\WOLTLAB\\3.1\\lib\\system\\request\\RequestHandler.class.php","line":96,"function":"execute","class":"wcf\\system\\request\\Request","type":"->","args":[]},{"file":"C:\\nginx\\html\\projects\\WOLTLAB\\3.1\\acp\\index.php","line":9,"function":"handle","class":"wcf\\system\\request\\RequestHandler","type":"->","args":["wcf",true]}]



    Hab nur mal Testweise die Benachrichtigungstests benutzt, um Fake-Benutzer zu erzeugen. Scheint wohl ein upstream-bug zu sein.

    • Official Post

    Hallo,


    das ist mir beides selbstverständlich bekannt - ich war schließlich am Release des neuen Emogrifiers beteiligt. Für 3.0 / 3.1 musste allerdings auch noch ein Update für Emogrifier 1.* her, die Änderungen in 2.1.* waren einfach zu groß: https://github.com/MyIntervals…or%3ATimWolla+is%3Aclosed


    Jedenfalls: Ist jetzt integriert und kommt mit dem nächsten Update: https://github.com/WoltLab/WCF…6335b30b46cf0c5d5a19832a0