WP: Count per day plugin i mysql_fetch_row() greska

Instalirao ovaj Wordpress plugin i u skoro svim tabovima (Visitors per day, Total Visitors, itd.) stoji error: “Warning: mysql_fetch_row(): supplied argument is not a valid MySQL result resource in /home/***/wp-content/plugins/count-per-day/counter.php on line 729”

Googlao ali nisam nasao rjesenje pa mi nije jasno sto se meni javlja. :zbunj:

otvori counter.php i poslaji 729 liniju, ali ovako na pamet pogledaj navodne znakove, ponekad navodni znakovi znaju bacat greske iako ovdje mi se cinid a nisi dobro instalirao…

Deinstalirao pa ponovo instalirao plugin i opet isti error. Fakat mi nije jasno. Evo jedne sporne linije koda

ERROR: “Warning: mysql_fetch_row(): supplied argument is not a valid MySQL result resource in /home/****/public_html/_site05/wp-content/plugins/count-per-day/counter.php on line 729”

CODE

/**
 * shows all reads
 */
function getReadsAll( $frontend = false )
{
	$res = $this->getQuery("SELECT COUNT(*) FROM ".CPD_C_TABLE, 'getReadsAll'); //ovo je linija 729
	$row = mysql_fetch_row($res);
	$c = $row[0] + intval($this->options['startreads']);
	if ($frontend)
		return $c;
	else
		echo $c;
}

Copyright © 2020 WM Forum - AboutContact - Sponsored by: Mydataknox & Webmaster.Ninja