gediweb, on Apr 18 2008, 12:24 PM, said:
Thanks for the reply. Been away for a few days. I replaced the categories.php with the one included, and I still have the same problem. When I edit the category, the image disappears: IMAGE DOES NOT EXIST.
I checked the path under the broken image properties, and it shows the correct path up to the image/ and missing the image name.
I then uploaded the original categories.php page that came with the installation, and it works fine. where did I go wrong?
Natalie
Jack,
Thanks for all your work on putting this contribution together. So far the only issue I have come across is the same one Natalie has and my solution follows.
Natalie,
Save copies of everything then - Try replacing the following code in admin>categories.php, about line 90.
if ($categories_image = new upload('categories_image', DIR_FS_CATALOG_IMAGES)) {
tep_db_query("update " . TABLE_CATEGORIES . " set categories_image = '" . tep_db_input($categories_image->filename) . "' where categories_id = '" . (int)$categories_id . "'");
}
with this code from about line 80 from a clean install, pre adding any contributions, the first two lines of code are missing completely from categories.php that came with Header Tags SEO.
$categories_image = new upload('categories_image');
$categories_image->set_destination(DIR_FS_CATALOG_IMAGES);
if ($categories_image->parse() && $categories_image->save()) {
tep_db_query("update " . TABLE_CATEGORIES . " set categories_image = '" . tep_db_input($categories_image->filename) . "' where categories_id = '" . (int)$categories_id . "'");
}
This seems to take care of the problem and I have not found any problems so far.
Carl