fantomen Posted May 4, 2003 Share Posted May 4, 2003 Hello I have tried to install Header Tags Controller v2.0 and the admin But when I go in to my admin consol and click on: Catalog I get this error in my browser: Parse error: parse error, unexpected T_DOUBLE_ARROW in /home/webshop/public_html/admin/categories.php on line 225 And when I look at this file it looks like this on line 225: 'products_head_title_tag' => tep_db_prepare_input($HTTP_POST_VARS['products_head_title_tag'][$language_id]), 'products_head_desc_tag' => tep_db_prepare_input($HTTP_POST_VARS['products_head_desc_tag'][$language_id]), 'products_head_keywords_tag' => tep_db_prepare_input($HTTP_POST_VARS['products_head_keywords_tag'][$language_id])); Please help me and tell me what is wrong. Best Regards Hans Quote Link to comment Share on other sites More sharing options...
orchard Posted May 4, 2003 Share Posted May 4, 2003 Can you post a few lines before line 225? Quote In olden times the men were made of iron and the ships were made of wood; now it's the other way around. :wink: Link to comment Share on other sites More sharing options...
fantomen Posted May 4, 2003 Author Share Posted May 4, 2003 Can you post a few lines before line 225? Here is line: 216-240: $languages = tep_get_languages(); for ($i=0; $i<sizeof($languages); $i++) { $language_id = $languages[$i]['id']; $prod_name = $HTTP_POST_VARS['products_name'][$language_id]; if (strlen($prod_name) > 1) { $sql_data_array = array('products_name' => tep_db_prepare_input($HTTP_POST_VARS['products_name'][$language_id]), 'products_description' => tep_db_prepare_input($HTTP_POST_VARS['products_description'][$language_id]), 'products_url' => tep_db_prepare_input($HTTP_POST_VARS['products_url'][$language_id])); 'products_head_title_tag' => tep_db_prepare_input($HTTP_POST_VARS['products_head_title_tag'][$language_id]), 'products_head_desc_tag' => tep_db_prepare_input($HTTP_POST_VARS['products_head_desc_tag'][$language_id]), 'products_head_keywords_tag' => tep_db_prepare_input($HTTP_POST_VARS['products_head_keywords_tag'][$language_id])); if ($HTTP_GET_VARS['action'] == 'insert_product') { $insert_sql_data = array('products_id' => $products_id, 'language_id' => $language_id); $sql_data_array = tep_array_merge($sql_data_array, $insert_sql_data); tep_db_perform(TABLE_PRODUCTS_DESCRIPTION, $sql_data_array); } elseif ($HTTP_GET_VARS['action'] == 'update_product') { tep_db_perform(TABLE_PRODUCTS_DESCRIPTION, $sql_data_array, 'update', 'products_id = '' . tep_db_input($products_id) . '' and language_id = '' . $language_id . '''); } } } I am happy if you have any ideas how to help me. Best Regards Hans Quote Link to comment Share on other sites More sharing options...
compugeek2003 Posted May 4, 2003 Share Posted May 4, 2003 Try changing this line: 'products_url' => tep_db_prepare_input($HTTP_POST_VARS['products_url'][$language_id])); to this: 'products_url' => tep_db_prepare_input($HTTP_POST_VARS['products_url'][$language_id]), and see if that fixes the problem Eric Stamper Quote Link to comment Share on other sites More sharing options...
fantomen Posted May 4, 2003 Author Share Posted May 4, 2003 Try changing this line: 'products_url' => tep_db_prepare_input($HTTP_POST_VARS['products_url'][$language_id])); to this: 'products_url' => tep_db_prepare_input($HTTP_POST_VARS['products_url'][$language_id]), and see if that fixes the problem Eric Stamper Then I get this error when I tried that: Parse error: parse error, unexpected ',' in /home/webshop/public_html/admin/categories.php on line 224 Do you have more ideas? All ideas are very velcome because I have been trying to fix this for several days now....please help me... Quote Link to comment Share on other sites More sharing options...
Ajeh Posted May 4, 2003 Share Posted May 4, 2003 Hans, this is your error as pointed out earlier: 'products_url' => tep_db_prepare_input($HTTP_POST_VARS['products_url'][$language_id])); You have that line ending in an extra ); and it needs to be like the one above it with just a ), The whole section of code reads: $sql_data_array = array('products_name' => tep_db_prepare_input($HTTP_POST_VARS['products_name'][$language_id]), 'products_description' => tep_db_prepare_input($HTTP_POST_VARS['products_description'][$language_id]), 'products_url' => tep_db_prepare_input($HTTP_POST_VARS['products_url'][$language_id]), 'products_head_title_tag' => tep_db_prepare_input($HTTP_POST_VARS['products_head_title_tag'][$language_id]), 'products_head_desc_tag' => tep_db_prepare_input($HTTP_POST_VARS['products_head_desc_tag'][$language_id]), 'products_head_keywords_tag' => tep_db_prepare_input($HTTP_POST_VARS['products_head_keywords_tag'][$language_id])); Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.