このユーザーにはお気に入りのトピックがありません。
お気に入りのフォーラムトピック
作成したフォーラムトピック
| ステータス |
トピック
|
サポーター | 声 | 投稿 | 新着度 |
|---|---|---|---|---|---|
|
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ヶ月、 1週前 |