Topic: Dashboard Install info and Screenshots in Wiki

I have just uploaded the Dashboard theme and extension's install procedure and screenshots in deployment into the wiki.

Re: Dashboard Install info and Screenshots in Wiki

I enabled the dashboard extension and theme. 

Selecting one of the tabs along the top results in this error:

mysql_fetch_array() expects parameter 1 to be resource, boolean given in file: includes/db/connect_db.inc at line 98

However, once under a tab, all of the side-menu items work.

Not looking for a fix, just reporting a problem.

Re: Dashboard Install info and Screenshots in Wiki

The said Line 98 in includes/db/connect_db.inc is:

return mysql_fetch_array($result);

When the $result is false, ie., no rows from the source SELECT statement, this error results in some PHP versions. There are quite a few functions in the same file that have the same issue. They can be overcome with:

if ($result !== false) return mysql_fetch_array($result);
else return false;

The actual function mysql_fetch_array() above can be replaced with the appropriate function in each of the affected functions in the said file.

4 (edited by bobloblian 02/17/2015 08:09:36 pm)

Re: Dashboard Install info and Screenshots in Wiki

@apmuthu

that fixed it, thank you.  had to do similar on line 92.

gotta say wow, this is awesome sauce...

Re: Dashboard Install info and Screenshots in Wiki

The proper way would be to correct the offending line in the dashboard theme / extension where the $result originated - not to call the function if it was false!