Results 1 to 10 of 14

Hybrid View

  1. #1
    Join Date
    Sep 2004
    Posts
    187
    Plugin Contributions
    0

    Default Re: Catchable fatal error

    1.3.7
    One mod - MSRP thing
    About 5 coupons
    Restricted to 1 category
    No product restrictions

    To the right of the dropdown box under Product restrictions is
    where that error message appears

    Catchable fatal error: Object of class queryFactoryResult could not be converted to string in //htdocs/catalog/admin/includes/functions/html_output.php on line 333

  2. #2
    Join Date
    Jan 2004
    Posts
    66,443
    Plugin Contributions
    279

    Default Re: Catchable fatal error

    Quote Originally Posted by notset4life View Post
    Restricted to 1 category
    No product restrictions

    To the right of the dropdown box under Product restrictions is
    where that error message appears

    Catchable fatal error: Object of class queryFactoryResult could not be converted to string in //htdocs/catalog/admin/includes/functions/html_output.php on line 333
    There are normally 2 dropdowns under Category Restrictions, and 3 dropdowns under Product Restrictions.

    1. Do I understand correctly that you're seeing the 2 under Category Restrictions but only the first (left) one under Product Restrictions?
    2. In that first dropdown under Product Restrictions, what is selected? Does it say "Top" or does it show the name of the category to which the product is already restricted above in the Category Restrictions section?
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

  3. #3
    Join Date
    Sep 2004
    Posts
    187
    Plugin Contributions
    0

    Default Re: Catchable fatal error

    I've attached a screenshot.

    thanks for the help so far.
    Attached Images Attached Images  

  4. #4
    Join Date
    Jan 2004
    Posts
    66,443
    Plugin Contributions
    279

    Default Re: Catchable fatal error

    1. Do any of your products' names contain any multibyte or non-english characters, including non-letters/numbers ?

    2. Try this edit for debugging: /admin/coupon_restrict.php
    approx line 287:
    Code:
                        <td class="smallText" valign="top"><?php echo HEADER_PRODUCT_NAME; ?></td>
                        <td class="smallText" align="left"><?php echo zen_draw_pull_down_menu('products_drop', $products_array, $current_category_id); ?></td>
    Add this ABOVE that:
    Code:
    <td><pre><?php print_r($products_array); ?></pre></td>
    This will bust the table-layout, but will show you what data it thinks it's supposed to put into the pulldown menu.
    Will need another screenshot ;)
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

  5. #5
    Join Date
    Sep 2004
    Posts
    187
    Plugin Contributions
    0

    Default Re: Catchable fatal error

    1. I don't believe the products contain any "illegal" characters.

    I added the lines and it just added a product drop down list with nothing in it.

    If I choose a category, the error goes away. (TOP has no Products)
    Attached Images Attached Images  

  6. #6
    Join Date
    Jan 2004
    Posts
    66,443
    Plugin Contributions
    279

    Default Re: Catchable fatal error

    Something seems odd with your database.
    However, this bandage approach may work:

    /admin/coupon_restrict.php
    around line 286 you have:
    Code:
                        <form name="restrict_category" method="post" action="<?php echo zen_href_link('coupon_restrict.php', zen_get_all_get_params(array('info', 'action', 'x', 'y')) . 'action=add_product&info=' . $cInfo->restrict_id, 'NONSSL'); ?>">
                        <td class="smallText" valign="top"><?php echo HEADER_PRODUCT_NAME; ?></td>
                        <td class="smallText" align="left"><?php echo zen_draw_pull_down_menu('products_drop', $products_array, $current_category_id); ?></td>
                        <td class="smallText" align="left"><?php echo zen_draw_pull_down_menu('restrict_status', $restrict_array); ?></td>
                        <td class="smallText" align="left"><input type="submit" name="add" value="Add"></td>
                        <td class="smallText" align="left">&nbsp;</td>
                        <td class="smallText" align="left">&nbsp;</td>
    change that to:
    Code:
    <?php if (sizeof($products_array) > 0) { ?>
                        <form name="restrict_category" method="post" action="<?php echo zen_href_link('coupon_restrict.php', zen_get_all_get_params(array('info', 'action', 'x', 'y')) . 'action=add_product&info=' . $cInfo->restrict_id, 'NONSSL'); ?>">
                        <td class="smallText" valign="top"><?php echo HEADER_PRODUCT_NAME; ?></td>
                        <td class="smallText" align="left"><?php echo zen_draw_pull_down_menu('products_drop', $products_array, $current_category_id); ?></td>
                        <td class="smallText" align="left"><?php echo zen_draw_pull_down_menu('restrict_status', $restrict_array); ?></td>
                        <td class="smallText" align="left"><input type="submit" name="add" value="Add"></td>
                        <td class="smallText" align="left">&nbsp;</td>
                        <td class="smallText" align="left">&nbsp;</td>
    <?php } else { ?>
                        <td class="smallText" align="left" colspan="6">&nbsp;</td>
    <?php } ?>
    
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

  7. #7
    Join Date
    Sep 2004
    Posts
    187
    Plugin Contributions
    0

    Default Re: Catchable fatal error

    don't undertand any of this, but it resolved the issue.

    thank much

  8. #8
    Join Date
    Jul 2005
    Posts
    120
    Plugin Contributions
    0

    Default Re: Catchable fatal error

    Actually I was getting this same error. 1.3.7 ...upgraded from 1.3.0.2 The product restrictions area initially has the errors, but seems to work after I select a category.

    Seems like it's because the 'Top' category is the default but I don't have any products at the top, so it produced the error. Selecting a category with products removes the error and displays the product drop-down for the category. So, seems more like just a check is missing for the 0 products...which your fix should fix. =)

 

 

Similar Threads

  1. Catchable fatal error queryFactoryResult
    By ronwong in forum General Questions
    Replies: 1
    Last Post: 2 Sep 2009, 06:13 PM
  2. Catchable fatal error
    By jvanree in forum General Questions
    Replies: 4
    Last Post: 15 Jul 2008, 10:18 AM
  3. Catchable fatal error in Product Restrictions?
    By gabstero in forum Discounts/Coupons, Gift Certificates, Newsletters, Ads
    Replies: 5
    Last Post: 25 Jun 2008, 07:31 AM
  4. Catchable fatal error
    By needainstall in forum General Questions
    Replies: 6
    Last Post: 3 Dec 2007, 07:55 AM
  5. catchable fatal error
    By apovey in forum General Questions
    Replies: 2
    Last Post: 7 Nov 2007, 09:13 AM

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