Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Parse error in admin/categories.php


Guest

Recommended Posts

Posted

hi

 

i have made some changes to the admin categories.php file using the additonal update instructions from chemo's ultimate seo url contribution

 

However now when i goto admin and select catalog to edit my products i get the following error message

 

Parse error: syntax error, unexpected T_DOUBLE_ARROW in /home/office2m/public_html/admin/categories.php on line 82

 

this is what i changed

 

$sql_data_array = array('categories_name' => tep_db_prepare_input($categories_name_array[$language_id]));

 

TO

 

$sql_data_array = array('categories_name' => tep_db_prepare_input($categories_name_array[$language_id]),

'categories_seo_url' => tep_db_prepare_input($categories_seo_url_array[$language_id]));

 

on line 82 is the following

 

'categories_htc_title_tag' => (tep_not_null($categories_htc_title_array[$language_id]) ? tep_db_prepare_input($categories_htc_title_array[$language_id]) : tep_db_prepare_input($categories_name_array[$language_id])),

 

i realise this parse error is associated with => but not sure how to fix

Posted

fixed this issue it related to line 81 at the end

 

$sql_data_array = array('categories_name' => tep_db_prepare_input($categories_name_array[$language_id]),

'categories_seo_url' => tep_db_prepare_input($categories_seo_url_array[$language_id]));

 

removed the last bracket and changed the semi colon to a comma and its now working

Archived

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

×
×
  • Create New...