2 amoun Apr 17, 2018 21:16

Ok Final obvious problem only when logged in I get this warning between some, but not all widgets in the sidebar.
Warning: count(): Parameter must be an array or an object that implements Countable in H:\xampp\htdocs\calstock.org.uk\inc\items\model_item.funcs.php on line 903
elseif( count( $show_statuses ) )
{ // we are not filtering so all status are allowed, add allowed statuses condition
$where[] = $dbprefix.'status IN ( \''.implode( '\',\'', $show_statuses ).'\' )';
}
UPDATE: It seems to be a warning at the head of three widgets I use (simple post list, simple page list and calendar widget) not (Search Form , freeHTML or Category List)
Why could you not add your image here?
There was no option to add a file at the time. ?? Unless I missed the [Preview/Add File] button :?(
In my post #2 first bullet point
Had to remove code added to [/skins/***/_sidebar.inc.php] that called my database as I have to find alternative to mysql_connect which killed the site from there on. ???
I have amended the mysql commands to mysqli and added the extra parameters required . . and likewise for the mysql_query
Was
mysql_connect("localhost", "calstock_roger", "what1517NOW#") or die(mysql_error());
mysql_select_db("calstock_b2evo") or die(mysql_error());
$xxx = mysqli_connect("localhost", "calstock_roger", "what1517NOW#", "calstock_b2evo") or die(mysqli_error($xxx));
All going well, just one more issue to resolve, I think.
Regarding #3 above see http://forums.b2evolution.net/php-7-2
So that's it! ALL working ? :)
OK Logging in working fine
In blog [inc/core/class.loader.funcs]
Main engine working, post, edit, adding widgets . . .