Guest Posted May 21, 2007 Share Posted May 21, 2007 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 More sharing options...
oschellas Posted May 22, 2007 Share Posted May 22, 2007 Most probably you made a programming mistake in the preceding case, the error says it is not expecting case 'deleteconfirm': on this line. Link to comment Share on other sites More sharing options...
oschellas Posted May 22, 2007 Share Posted May 22, 2007 double post... Link to comment Share on other sites More sharing options...
Djswift Posted April 6, 2008 Share Posted April 6, 2008 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 More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.