Results 1 to 4 of 4

Threaded View

  1. #1
    Join Date
    Oct 2013
    Location
    MTL
    Posts
    66
    Plugin Contributions
    2

    Default WARNING: An Error occurred, please refresh the page and try again

    I find myself at loss again. Possibly, I am not thinking straight for two days. Here is my issue of the week:
    I have three teams each team looks after specific product/product category. So when an order comes in for product (e.g. Running Shoes) or category Shoes, team Footwear will filter the orders page (on admin side) to view orders that pertains to footwear or a running shoes and can filter based on rush order or not.

    I had a simple hard coded filters in version 1.5.1 that was working but it doesn't work well into 1.5.5

    Below is a snippet of the select statement. What you don't see is that I have a drop down box that is defined earlier in the page to define the priority and category example
    Footwear - Rush Orders
    Footwear - Regular Orders

    HTML Code:
    ($_GET['priority'] == 'ot_priority_handling_categoryX1') {
          $priority = zen_db_prepare_input($_GET['priority']);
          $orders_query_raw = "select o.orders_id, o.customers_id, o.customers_name, o.payment_method, o.shipping_method, o.date_purchased, o.last_modified, o.currency, o.currency_value, s.orders_status_name, 'See Order Details' as order_total" .
                              $new_fields . "
                              from (" . TABLE_ORDERS_STATUS . " s, " .
    			  TABLE_ORDERS . " o " .
                              $new_table . ")
                              left join " . TABLE_ORDERS_TOTAL . " ot on (o.orders_id = ot.orders_id)" . "
    			  left join " . TABLE_ORDERS_PRODUCTS . " op on (o.orders_id = op.orders_id)" . "
                              where ot.class like '%ot_priority_handling%' and o.orders_status = s.orders_status_id and (o.orders_status = '1' or o.orders_status = '2') and (op.products_id = '9' or op.products_id = '16' or op.products_id = '10' or op.products_id = '13') and s.language_id = '" . (int)$_SESSION['languages_id'] . "'" .
                              $search . " order by o.orders_id DESC";
        }
    When I run the above snippet, I get "WARNING: An Error occurred, please refresh the page and try again."

    Any help would be greatly appreciated on figuring out where I went wrong.

    P.S, As you go through the code, you will notice that I am only filtering for orders that are pending or in progress. I did not want to show completed or canceled orders.
    Last edited by riomaha; 16 Aug 2016 at 03:59 PM.

 

 

Similar Threads

  1. v151 WARNING: An Error occurred, please refresh the page and try again
    By pramitha in forum General Questions
    Replies: 5
    Last Post: 12 Jul 2016, 10:25 AM
  2. v150 WARNING: An Error occurred, please refresh the page and try again.
    By l3ackdraft in forum Upgrading to 1.5.x
    Replies: 13
    Last Post: 13 Jun 2016, 10:13 PM
  3. v150 WARNING: An Error occurred, please refresh the page and try again.
    By dochsa in forum General Questions
    Replies: 2
    Last Post: 6 Sep 2012, 08:10 AM
  4. Replies: 1
    Last Post: 28 Aug 2012, 05:54 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