Support » Plugin: WordPress Gallery Plugin - NextGEN Gallery » PHP 7.3.1 errors galore in logs

  • Resolved serpher

    (@serpher)


    Hi,
    My PHP logs are FILLED with these errors:

    PHP Warning: preg_match(): Compilation failed: invalid range in character class at offset 4 in C:\wamp64\www\wp-content\plugins\nextgen-gallery\products\photocrati_nextgen\modules\simple_html_dom\simplehtmldom\simple_html_dom.php on line 1384

    Line 1384

    		if (!preg_match("/^[\w-:]+$/", $tag)) {
    			$node->_[HDOM_INFO_TEXT] = '<' . $tag . $this->copy_until('<>');
    			if ($this->char==='<') {
    				$this->link_nodes($node, false);
    				return true;
    			}
    
    			if ($this->char==='>') $node->_[HDOM_INFO_TEXT].='>';
    			$this->link_nodes($node, false);
    			$this->char = (++$this->pos<$this->size) ? $this->doc[$this->pos] : null; // next
    			return true;
    		}

    PHP Warning: preg_match_all(): Compilation failed: invalid range in character class at offset 4 in C:\wamp64\www\wp-content\plugins\nextgen-gallery\products\photocrati_nextgen\modules\simple_html_dom\simplehtmldom\simple_html_dom.php on line 686

    Line 686
    preg_match_all($pattern, trim($selector_string).' ', $matches, PREG_SET_ORDER);

    PHP Warning: Invalid argument supplied for foreach() in C:\wamp64\www\wp-content\plugins\nextgen-gallery\products\photocrati_nextgen\modules\simple_html_dom\simplehtmldom\simple_html_dom.php on line 693

    Line 693

    		foreach ($matches as $m) {
    			$m[0] = trim($m[0]);
    			if ($m[0]==='' || $m[0]==='/' || $m[0]==='//') continue;
    			// for browser generated xpath
    			if ($m[1]==='tbody') continue;
    
    			list($tag, $key, $val, $exp, $no_key) = array($m[1], null, null, '=', false);
    			if (!empty($m[2])) {$key='id'; $val=$m[2];}
    			if (!empty($m[3])) {$key='class'; $val=$m[3];}
    			if (!empty($m[4])) {$key=$m[4];}
    			if (!empty($m[5])) {$exp=$m[5];}
    			if (!empty($m[6])) {$val=$m[6];}
    
    			// convert to lowercase
    			if ($this->dom->lowercase) {$tag=strtolower($tag); $key=strtolower($key);}
    			//elements that do NOT have the specified attribute
    			if (isset($key[0]) && $key[0]==='!') {$key=substr($key, 1); $no_key=true;}
    
    			$result[] = array($tag, $key, $val, $exp, $no_key);
    			if (trim($m[7])===',') {
    				$selectors[] = $result;
    				$result = array();
    			}
    		}

    Tried: switching themes, deactivating plugins.
    NGG info:

    System operacyjny : WINNT (64 Bit)
    Serwer : Apache/2.4.37 (Win64) OpenSSL/1.1.1a PHP/7.3.1 mod_fcgid/2.3.10-dev
    Zużycie pamięci : 110.21Mbajtów
    Wersja MySQL : 10.3.12-MariaDB
    Ustawienie SQL : ERROR_FOR_DIVISION_BY_ZERO,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION
    Wersja PHP : 7.3.1
    PHP Safe Mode : Wyłączone
    PHP zezwól na URL fopen : Włączone
    PHP limit pamięci : 128
    PHP maksymalna wielkość wgrywania : 2M
    PHP maksywalna wielkość postu : 8M
    Limit Backtrackingu PCRE : 1000000
    PHP maksymalny czas wykonywania skryptu : 120s
    PHP wsparcie dla Exif : Tak (V7.3.)
    PHP wsparcie dla IPTC : Tak
    PHP wsparcie dla XML : Tak
    Biblioteka grafik

    GD Version : bundled (2.1.0 compatible)
    FreeType Support : Tak
    FreeType Linkage : with freetype
    GIF Read Support : Tak
    GIF Create Support : Tak
    JPEG Support : Tak
    PNG Support : Tak
    WBMP Support : Tak
    XPM Support : Tak
    XBM Support : Tak
    WebP Support : Tak
    BMP Support : Tak
    JIS-mapped Japanese Font Support : Nie

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • You must be logged in to reply to this topic.