Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Parse Error: Syntax Error, Unexpected T_case In ...orders.phy


Guest

Recommended Posts

Can't access Orders in Administration!!!!!

 

I recently made modifications to orders.php to add Google Checkout. I'm not getting "Parse error: syntax error, unexpected T_CASE in /home/mydomain/public_html/catalog/admin/orders.php on line 236" Line 236 = case 'deleteconfirm':

 

Surrrounding code included

 

// ** END GOOGLE CHECKOUT **

 

}

 

tep_db_query("insert into " . TABLE_ORDERS_STATUS_HISTORY . " (orders_id, orders_status_id, date_added, customer_notified, comments) values ('" . (int)$oID . "', '" . tep_db_input($status) . "', now(), '" . tep_db_input($customer_notified) . "', '" . tep_db_input($comments) . "')");

 

$order_updated = true;

}

 

if ($order_updated == true) {

$messageStack->add_session(SUCCESS_ORDER_UPDATED, 'success');

} else {

$messageStack->add_session(WARNING_ORDER_NOT_UPDATED, 'warning');

}

 

tep_redirect(tep_href_link(FILENAME_ORDERS, tep_get_all_get_params(array('action')) . 'action=edit'));

break;

case 'deleteconfirm':

$oID = tep_db_prepare_input($HTTP_GET_VARS['oID']);

 

tep_remove_order($oID, $HTTP_POST_VARS['restock']);

 

tep_redirect(tep_href_link(FILENAME_ORDERS, tep_get_all_get_params(array('oID', 'action'))));

break;

}

}

Link to comment
Share on other sites

  • 10 months later...

Dont mean to jump on, but I must have been searching for like 3-4 hours (around 2 days!!) to solve my problem.

 

Its really the same one.

 

I am leading to think the error was actually in the contribution itself.?

 

My shop is having trouble as well as I am getting the same problem. Any ideas how I should proceed to eliminate the problem ?

 

Thanks

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...