soregonmale Posted March 21, 2007 Posted March 21, 2007 Hello, I'm in my admin, and when I click the Catalog link to add/update the items... I get this error: Parse error: parse error, unexpected T_VARIABLE, expecting ')' in /home/here2c5/public_html/admin/categories.php on line 377 I went to that page, line, and being as I virtually know nothing about php, I don't know what I'm looking at. Here's the code around that general area. $parameters = array('products_name' => '', 'products_description' => '', 'products_url' => '', 'products_id' => '', 'products_quantity' => '', 'products_model' => '', 'products_image' => '', 'products_price' => '', 'products_weight' => '', 'products_date_added' => '', 'products_last_modified' => '', 'products_date_available' => '', 'products_status' => '', 'products_tax_class_id' => '', 'manufacturers_id' => '', 'products_ship_sep' => '' $pInfo = new objectInfo($parameters); if (isset($HTTP_GET_VARS['pID']) && empty($HTTP_POST_VARS)) { $product_query = tep_db_query("select pd.products_name, pd.products_description, pd.products_url, p.products_id, p.products_quantity, p.products_model, p.products_image, p.products_price, p.products_weight, p.products_date_added, p.products_last_modified, date_format(p.products_date_available, '%Y-%m-%d') as products_date_available, p.products_status, p.products_tax_class_id, p.manufacturers_id , p.products_ship_sep from " . TABLE_PRODUCTS . " p, " . TABLE_PRODUCTS_DESCRIPTION . " pd where p.products_id = '" . (int)$HTTP_GET_VARS['pID'] . "' and p.products_id = pd.products_id and pd.language_id = '" . (int)$languages_id . "'"); $product = tep_db_fetch_array($product_query); $pInfo->objectInfo($product); } elseif (tep_not_null($HTTP_POST_VARS)) { $pInfo->objectInfo($HTTP_POST_VARS); $products_name = $HTTP_POST_VARS['products_name']; $products_description = $HTTP_POST_VARS['products_description']; $products_url = $HTTP_POST_VARS['products_url']; } Line 377 is the line that says this: $pInfo = new objectInfo($parameters); Any assistance would be appreciated, as we are getting close to going live. Thanks!!!!
jonquil Posted March 21, 2007 Posted March 21, 2007 Try this: if ($action == 'new_product') { $parameters = array('products_name' => '', 'products_description' => '', 'products_url' => '', 'products_id' => '', 'products_quantity' => '', 'products_model' => '', 'products_image' => '', 'products_price' => '', 'products_weight' => '', 'products_date_added' => '', 'products_last_modified' => '', 'products_date_available' => '', 'products_status' => '', 'products_tax_class_id' => '', 'manufacturers_id' => '', 'products_ship_sep' => ''); jon It's all just ones and zeros....
soregonmale Posted March 21, 2007 Author Posted March 21, 2007 BANG!!! That did the trick!! So what was happening, if I understand php, it wasn't "closing" that part of the tag? Thanks Jon!!
jonquil Posted March 21, 2007 Posted March 21, 2007 Uh yuh :) I compared your snippet to the stock admin/categories.php. Easy pickins'. jon It's all just ones and zeros....
Recommended Posts
Archived
This topic is now archived and is closed to further replies.