Results 1 to 4 of 4

Hybrid View

  1. #1
    Join Date
    Jun 2007
    Posts
    6
    Plugin Contributions
    0

    red flag 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
    line 112 (formatted):
    <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>';
    }
    ?>&nbsp;</td>

    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.
    Last edited by Agouti; 7 Jun 2007 at 09:20 AM. Reason: Formatting

  2. #2
    Join Date
    Jun 2007
    Posts
    6
    Plugin Contributions
    0

    Default Re: Error in referrals.php - Cannot use object of type queryFactoryResult as array

    ***bump***

  3. #3
    Join Date
    Aug 2004
    Posts
    1,590
    Plugin Contributions
    1

    Default Re: Error in referrals.php - Cannot use object of type queryFactoryResult as array

    PHP Code:
    if ( zen_not_null($referrals['sources_name']) ) { 
    for:

    PHP Code:
    if ( zen_not_null($referrals->fields['sources_name']) ) { 

  4. #4
    Join Date
    Nov 2006
    Posts
    296
    Plugin Contributions
    2

    Default Re: Error in referrals.php - Cannot use object of type queryFactoryResult as array

    Quote Originally Posted by TheOracle View Post
    PHP Code:
    if ( zen_not_null($referrals['sources_name']) ) { 
    for:

    PHP Code:
    if ( zen_not_null($referrals->fields['sources_name']) ) { 
    wow, old thread.
    still helped me resolve same problem in
    admin/includes/modules/newsletters/product_notification.php
    on line 219

    cheers

 

 

Similar Threads

  1. v139h Cannot use object of type queryFactoryResult
    By dmagic in forum General Questions
    Replies: 1
    Last Post: 19 Dec 2013, 06:05 PM
  2. Replies: 3
    Last Post: 14 Dec 2009, 10:51 AM
  3. Replies: 3
    Last Post: 11 Nov 2009, 04:37 AM
  4. Replies: 4
    Last Post: 21 Mar 2008, 06:41 PM
  5. Fatal error: Cannot use string offset as an array in upsxml.php
    By yaby in forum Addon Shipping Modules
    Replies: 4
    Last Post: 19 Oct 2007, 06:40 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg