Thread: Error Help

Page 1 of 2 12 LastLast
Results 1 to 10 of 17
  1. #1
    Join Date
    Sep 2005
    Posts
    912
    Plugin Contributions
    1

    Default Error Help

    I get this error when going to admin orders

    Parse error: syntax error, unexpected T_CASE in /home/haydens/public_html/admin/orders.php on line 195

    Heres lines 183-213

    Quote Originally Posted by CnTGifts View Post
    if (($action == 'edit') && isset($_GET['oID'])) {
    $oID = zen_db_prepare_input($_GET['oID']);

    $orders = $db->Execute("select orders_id from " . TABLE_ORDERS . "
    where orders_id = '" . (int)$oID . "'");

    $order_exists = true;
    if ($orders->RecordCount() <= 0) {
    $order_exists = false;
    $messageStack->add(sprintf(ERROR_ORDER_DOES_NOT_EXIST, $oID), 'error');

    case 'doRefund':
    $order = new order($oID);
    if ($order->info['payment_module_code']) {
    if (file_exists(DIR_FS_CATALOG_MODULES . 'payment/' . $order->info['payment_module_code'] . '.php')) {
    require_once(DIR_FS_CATALOG_MODULES . 'payment/' . $order->info['payment_module_code'] . '.php');
    require_once(DIR_FS_CATALOG_LANGUAGES . $_SESSION['language'] . '/modules/payment/' . $order->info['payment_module_code'] . '.php');
    $module = new $order->info['payment_module_code'];
    if (method_exists($module, '_doRefund')) {
    $module->_doRefund($oID);
    }
    }
    }
    zen_redirect(zen_href_link(FILENAME_ORDERS, zen_get_all_get_params(array('action')) . 'action=edit', 'NONSSL'));
    break;
    case 'doAuth':
    $order = new order($oID);
    if ($order->info['payment_module_code']) {
    if (file_exists(DIR_FS_CATALOG_MODULES . 'payment/' . $order->info['payment_module_code'] . '.php')) {
    require_once(DIR_FS_CATALOG_MODULES . 'payment/' . $order->info['payment_module_code'] . '.php');
    require_once(DIR_FS_CATALOG_LANGUAGES . $_SESSION['language'] . '/modules/payment/' . $order->info['payment_module_code'] . '.php');
    $module = new $order->info['payment_module_code'];
    if (method_exists($module, '_doAuth')) {
    $module->_doAuth($oID, $order->info['total'], $order->info['currency']);

  2. #2
    Join Date
    Sep 2005
    Posts
    912
    Plugin Contributions
    1

    Default Re: Error Help

    any ideas whats causing this

  3. #3
    Join Date
    Sep 2005
    Posts
    912
    Plugin Contributions
    1

    Default Re: Error Help

    can anyone take a look at this for me

  4. #4
    Join Date
    Mar 2005
    Posts
    167
    Plugin Contributions
    0

    Default Re: Error Help

    I am getting the same error!

  5. #5
    Join Date
    Sep 2005
    Posts
    912
    Plugin Contributions
    1

    Default Re: Error Help

    ok 2 people with the same error now could someone help us out a bit

  6. #6
    Join Date
    Jun 2003
    Posts
    33,715
    Plugin Contributions
    0

    Default Re: Error Help

    What addon do both of you have? Or what else in common?
    Please do not PM for support issues: a private solution doesn't benefit the community.

    Be careful with unsolicited advice via email or PM - Make sure the person you are talking to is a reliable source.

  7. #7
    Join Date
    Sep 2005
    Posts
    912
    Plugin Contributions
    1

    Default Re: Error Help

    I have

    How did you hear about us
    DB Back Up
    Newsletter subscriber
    ultimate seo
    image handler


    i think thats it

  8. #8
    Join Date
    Sep 2005
    Posts
    912
    Plugin Contributions
    1

    Default Re: Error Help

    i hate to have to keep posting here but someone must be able to help

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

    Default Re: Error Help

    Go to Modules ... Payments ... in your Admin ...

    Do you have any errors on that page?

    Do you have any Payment modules that you are not using installed?

    Do you have any new Payment modules, even ones that you are not using, that you may have loaded into the:
    /includes/modules/payment

    directory that could be causing an issue?
    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!

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

    Default Re: Error Help

    Also, if you turn off SEO do the errors go away?
    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!

 

 
Page 1 of 2 12 LastLast

Similar Threads

  1. Comm error and Security Hash Error. Other threads r no help :(
    By tysty7 in forum Built-in Shipping and Payment Modules
    Replies: 4
    Last Post: 22 Aug 2011, 10:18 PM
  2. Email Error: SMTP Error: The following recipients failed: Help :)
    By Laidlawgifts in forum Basic Configuration
    Replies: 17
    Last Post: 21 Jun 2011, 08:02 PM
  3. Replies: 7
    Last Post: 24 Jul 2009, 01:16 PM
  4. FedEx Error - Please help - cURL ERROR: 6: name lookup timed out
    By wootoot1234 in forum Addon Shipping Modules
    Replies: 2
    Last Post: 17 Jun 2009, 08:15 PM
  5. PLEASE HELP, I did something DUMB -- Parse error: syntax error, unexpected ')'
    By mfsuchta in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 29 Aug 2008, 02:16 AM

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