Este usuario no tiene temas favoritos.
Temas de foro favoritos
Temas de foro creados
| Estado |
Tema
|
Asistente | Voces | Publicaciones | Actualidad |
|---|---|---|---|---|---|
|
Fatal Error
Iniciado por: dimitrianB
en: Поддержка на русском языке
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 | hace 2 semanas, 6 días |