Aragon127 Posted October 8, 2002 Share Posted October 8, 2002 Has anyone configured the admin/categories.php to correctly handle both these contributions? I've got the rest to play nice together but I'm still getting errors in categories.php Quote Link to comment Share on other sites More sharing options...
Ajeh Posted October 10, 2002 Share Posted October 10, 2002 Most likely there error is in this section of categories.php : <?php /* Re-Post all POST'ed variables */ reset($HTTP_POST_VARS); while (list($key, $value) = each($HTTP_POST_VARS)) { if (is_array($value)) { while (list($k, $v) = each($value)) { echo tep_draw_hidden_field($key . '[' . $k . ']', htmlspecialchars(stripslashes($v))); } } else { echo tep_draw_hidden_field($key, htmlspecialchars(stripslashes($value))); } } echo tep_draw_hidden_field('products_image', stripslashes($products_image_name)); echo tep_image_submit('button_back.gif', IMAGE_BACK, 'name="edit"') . ' '; if ($HTTP_GET_VARS['pID']) { echo tep_image_submit('button_update.gif', IMAGE_UPDATE); } else { echo tep_image_submit('button_insert.gif', IMAGE_INSERT); } echo ' <a href="' . tep_href_link(FILENAME_CATEGORIES, 'cPath=' . $cPath . '&pID=' . $HTTP_GET_VARS['pID']) . '">' . tep_image_button('button_cancel.gif', IMAGE_CANCEL) . '</a>'; ?> This code is very old. If you are using mine or David's Attribute features neither are updated in that section to the current categories.php code. The rest of the file should be as current as the version at the top. 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.