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.
It's much more fun, when you can discuss your problems with others...
You are not logged in. Please login or register.
FrontAccounting forum → Modules Add-on's → 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.
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.
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.
@apmuthu
that fixed it, thank you. had to do similar on line 92.
gotta say wow, this is awesome sauce...
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!
FrontAccounting forum → Modules Add-on's → Dashboard Install info and Screenshots in Wiki
Powered by PunBB, supported by Informer Technologies, Inc.
Currently installed 4 official extensions. Copyright © 2003–2009 PunBB.