1 amoun Apr 17, 2018 19:51
3 amoun Apr 17, 2018 22:51
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)
?? I put an image of this on the initial post as couldn't add it here ??
4 fplanque Apr 18, 2018 00:44
Why could you not add your image here?
5 amoun Apr 18, 2018 01:01
There was no option to add a file at the time. ?? Unless I missed the [Preview/Add File] button :?(
6 amoun Apr 18, 2018 04:31
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());
Is Now
$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.
7 amoun Apr 19, 2018 13:49
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 . . .