Results 1 to 7 of 7
  1. #1
    Join Date
    Dec 2006
    Posts
    6
    Plugin Contributions
    0

    Have a Drink error involving query_factory.php and checkout_success

    I had a report of there being an error on the checkout_success page. I have not been able to recreate the problem but the user sent in a fax of the screen. Seems there is no value being passed in for the foreach on line 312 of query_factory.php. Any ideas as to what may be causing this and if it is perhaps just the session expiring and failing rather violently?

    Thanks-

  2. #2
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

    Default Re: error involving query_factory.php and checkout_success

    What version of Zen Cart are you running?

    Clean install or an upgrade? If an upgrade from what version to what version?

    What version php?
    Linda McGrath
    If you have to think ... you haven't been zenned ...

    Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!

    Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today: v1.5.5]
    Officially PayPal-Certified! Just click here

    Try our Zen Cart Recommended Services - Hosting, Payment and more ...
    Signup for our Announcements Forums to stay up to date on important changes and updates!

  3. #3
    Join Date
    Dec 2006
    Posts
    6
    Plugin Contributions
    0

    Default Re: error involving query_factory.php and checkout_success

    Clean Install on 1.3.7
    PHP Version 5.1.6

  4. #4
    Join Date
    Feb 2007
    Posts
    10
    Plugin Contributions
    0

    Default Re: error involving query_factory.php and checkout_success

    Hello, Please can you help? I am building a website for a friend of mine at www.nwpcs.co.uk and all was well till last night, now I am getting this error


    [FONT=Times New Roman]Warning: Variable passed to each() is not an array or object in /home/nwcomput/public_html/nwpcs/includes/classes/db/mysql/query_factory.php on line 114

    Warning: session_start() [[/FONT]
    [FONT=Times New Roman]function.session-start[/FONT][FONT=Times New Roman]]: Cannot send session cache limiter - headers already sent (output started at /home/nwcomput/public_html/nwpcs/includes/classes/db/mysql/query_factory.php:114) in /home/nwcomput/public_html/nwpcs/includes/functions/sessions.php on line 108

    Warning: Cannot modify header information - headers already sent by (output started at /home/nwcomput/public_html/nwpcs/includes/classes/db/mysql/query_factory.php:114) in /home/nwcomput/public_html/nwpcs/includes/init_includes/init_templates.php on line 78[/FONT]

    [FONT=Times New Roman][/FONT]
    [FONT=Times New Roman][/FONT]
    [FONT=Times New Roman]1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'EXPECTED_PRODUCTS_SORT limit MAX_DISPLAY_UPCOMING_PRODUC' at line 7
    in:
    [select p.products_id, pd.products_name, products_date_available as date_expected from zen_products p, zen_products_description pd where p.products_id = pd.products_id and p.products_status = 1 and pd.language_id = '1' and p.products_date_available >=20070213 order by EXPECTED_PRODUCTS_FIELD EXPECTED_PRODUCTS_SORT limit MAX_DISPLAY_UPCOMING_PRODUCTS][/FONT]

    [FONT=Times New Roman][/FONT]
    [FONT=Times New Roman][/FONT]
    [FONT=Times New Roman]If anyone knows how to fix this it would be greatly appreciated..thanks[/FONT]

  5. #5
    Join Date
    Jan 2004
    Location
    UK
    Posts
    1,230
    Plugin Contributions
    0

    Default Re: error involving query_factory.php and checkout_success

    @crackedup:

    Are you using database-caching?

    If you are, try changing to file-based caching by editing your includes/configure.php and admin/includes/configure.php and changing:

    PHP Code:
    define('SQL_CACHE_METHOD''database'); 
    to:

    PHP Code:
    define('SQL_CACHE_METHOD''file'); 
    Then report back.

  6. #6
    Join Date
    Apr 2006
    Location
    Phoenix, AZ
    Posts
    85
    Plugin Contributions
    1

    Default Re: error involving query_factory.php and checkout_success

    Thanks,

    I Had This Exact Same Problem & It Was Fixed By This Suggestion. I Am Sure It Fixed It For The Other Guy As Well.

    What It The Problem With The Cashe?

  7. #7
    Join Date
    Jan 2004
    Location
    UK
    Posts
    1,230
    Plugin Contributions
    0

    Default Re: error involving query_factory.php and checkout_success


 

 

Similar Threads

  1. Replies: 12
    Last Post: 17 Mar 2014, 11:10 PM
  2. v151 Intermittent error: "missing file" query_factory.php
    By paulm in forum General Questions
    Replies: 6
    Last Post: 28 Sep 2013, 09:38 PM
  3. Like and Follow buttons on https:// (checkout_success.php)
    By swamyg1 in forum General Questions
    Replies: 0
    Last Post: 24 Jun 2012, 06:40 PM
  4. Replies: 1
    Last Post: 29 May 2012, 04:27 PM
  5. Parse error checkout_success.php
    By shirljo in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 11 Apr 2007, 03:54 PM

Bookmarks

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
Zen-Cart, Internet Selling Services, Klamath Falls, OR