此用户没有收藏的主题。
收藏的论坛主题
创建的论坛主题
| 状态 |
主题
|
支持人员 | 参与者 | 帖子 | 最新活动 |
|---|---|---|---|---|---|
|
Fatal Error
发起人:dimitrianB
在:Поддержка на русском языке
Problem: readAllRawGettextStringsFromHtmlScriptTags as follows: private function readAllRawGettextStringsFromHtmlScriptTags( \DOMDocument $dom, string $html ): array {<br /> // We cannot read here with xpath - script tags contain code from the JS template engines and some html will be broken.<br /> // (For example some elements will miss closing tags).<br /> $pattern = '/<script.*?type="text\/(?:html|template)".*?>([\s\S]*?)<\/script>/i';<br /> preg_match_all( $pattern, $html, $matches );<br /> $scriptHtmls = [];<br /> foreach ( $matches[1] as $match ) {<br /> if (!empty($match)) {<br /> $scriptHtmls[] = $match;<br /> }<br /> }Please note that this solution might be outdated or not applicable to your specific case. We highly recommend checking related known issues at https://wpml.org/known-issues/, verifying the version of the permanent fix, and confirming that you have installed the latest versions of themes and plugins. If the issue persists, please open a new support ticket at WPML support forum. |
|
0 | 2 | 1 month前 |