New Zenner
- Join Date:
- Jun 2007
- Posts:
- 6
- Plugin Contributions:
- 0
Error in referrals.php - Cannot use object of type queryFactoryResult as array
Not sure if this is the right place to post, but here goes...
I'm receiving the following errors in the referals part of zen cart:
Fatal error: Cannot use object of type queryFactoryResult as array in [....]/admin/referrals.php on line 112
<td class="dataTableContent" align="right"> <?php if (isset($cInfo) && is_object($cInfo) && ($sources->fields['sources_id'] == $cInfo->sources_id)) { echo zen_image(DIR_WS_IMAGES . 'icon_arrow_right.gif'); } else { echo '<a href="' . zen_href_link(FILENAME_REFERRALS, 'page=' . $_GET['page'] . '&sID=' . $sources['sources_id']) . '">' . zen_image(DIR_WS_IMAGES . 'icon_info.gif', IMAGE_ICON_INFO) . '</a>'; } ?> </td>
line 112 (formatted):
Fatal error: Cannot use object of type queryFactoryResult as array in [....]/admin/stats_referral_sources.php on line 86
line 86:
if ( zen_not_null($referrals['sources_name']) ) {
It's a fairly old version of Zen Cart (circa 2005 I believe), not sure how I can tell exactly what - referrals is 1.0, if that helps.