dudeshane01 Posted August 5, 2009 Share Posted August 5, 2009 Hello Fellows i have intsalled a template from template monster . I am not able to find the text mentioned in the third step . Can anyone help ? I can give you my php file text if you need it . Shane Quote Link to comment Share on other sites More sharing options...
Bill A Posted October 27, 2009 Share Posted October 27, 2009 I just installed the contribution and everything seems to work great except for one issue I can't figure out. Hopefully this makes sense, if it's confusing, let me know... I have a test store with 7 categories and 13 products. I can add categories and products and everything seems to work ok except that in some cases the products go into the top category and not the category I had clicked into before I clicked the new product button. No big deal. I can use the move feature to get them into the correct place. this worked fine before I installed the files for this contribution. My problem is that two of the categories don't display the correct image. For example if I click on category 2, it might show the image for category three. Then when I view a product in that category, it shows the image for the product in the previous category. I went into the database and matched up all the product IDs to Category IDs and they're going into the database correctly. The images names are also correct in the database so it's something with the code. I installed one of the lightbox mods (before I installed the categories Images Box mod) to display a product when you click on it and if I click on a product that shows the wrong image, the lighbox code shows the correct image. Any thoughts on what file I should be looking at? I copied the files for this contribution directly (except for stylesheet.css, which I added the mods to) and I still have the problem. Any ideas would be very much appreciated as is the work that went into creating this contribution. Awesome job! One other thing I tried was to deleted the products and categories that are giving trouble and re-adding them. Again I went into the database to confirm all the product ids, category ids, and images are matched up correctly. I have no other contributions installed yet but I did modify stylesheet.css and product_info.php slightly. I'm having problems on index.php. Quote Link to comment Share on other sites More sharing options...
Bill A Posted October 28, 2009 Share Posted October 28, 2009 (edited) I got it working. I restored a previous backup and re-installed this contrib. I am able to apply other contribs and all is well. I keep all versions of my backups so it's no big deal to go back to any point in the dev cycle. Edited October 28, 2009 by Bill A Quote Link to comment Share on other sites More sharing options...
rustyclockwork Posted November 11, 2009 Share Posted November 11, 2009 (edited) Hello, I had this running really well last year on my site. I had to do a new reinstall and new the images are not loading for the category boxes. They do show up on the next page after you click on them though. Not sure what I did on the install. I remember the install last year had like three separate image uploaders in the admin, and this install has two. EDIT- Both uploaders on the new install are both saying "category image" one should say "categories images box image" shouldn't it? any ideas? Thank you for any help, Jason Edited November 11, 2009 by rustyclockwork Quote Link to comment Share on other sites More sharing options...
rustyclockwork Posted November 11, 2009 Share Posted November 11, 2009 The description option won't update either... The database update went fine, I wonder if this is a mistake in the admin section. Jason Quote Link to comment Share on other sites More sharing options...
rustyclockwork Posted November 12, 2009 Share Posted November 12, 2009 Hello, I think the description is updating now. Earlier this year, I had the same darn problem with those images not loading on my site. If you go to page 2 of this thread, you'll see me talking about it. I don't think it was a permissions setting. Does anyone have any ideas? Thanks Quote Link to comment Share on other sites More sharing options...
rustyclockwork Posted November 12, 2009 Share Posted November 12, 2009 I found a cached version of my old site before the virus got it on google. I compared the source code on my old site that had the working version of categories images box and compared it to the current source code when seen from a browser in index.php. This is the code from the old working version: <td align="center" class="smallText" width="33%" valign="top"><a href="http://www.oldfoundry.com/catalog/index.php?cPath=178"><img'>http://www.oldfoundry.com/catalog/index.php?cPath=178"><img src="images/flying_machines.gif" border="0" alt="Balloons & Flying Machines" title=" Balloons & Flying Machines " width="125" height="71" hspace="2" vspace="3"></a></td> And this is what is going on now, it's showing the image placeholders, but no image... where do I tell what area of code in what file to point to a full path? <td align="center" class="smallText" width="33%" valign="top"><a href="http://www.oldfoundry.com/catalog/index.php?cPath=178"> <img src="images/" border="0" alt="Balloons & Flying Machines" title=" Balloons & Flying Machines " width="125" height="71" hspace="2" vspace="3"></a></td> This was on a clean install, and the same thing happened almost a year ago when I first installed it. Whatever the fix was, was easy to do, I just can't remember. I swear it had something to do with paths, but I think I've looked everywhere tonight. Thank you, Jason Quote Link to comment Share on other sites More sharing options...
♥kymation Posted November 12, 2009 Author Share Posted November 12, 2009 First, do you have images uploaded for this code? Remember that these images are completely separate from the normal category images. The code you posted shows no image name, so you should also check your database. The categories table should have entries for categories_image_front for every line where parent_id has a value of 0. Regards Jim Quote See my profile for a list of my addons and ways to get support. Link to comment Share on other sites More sharing options...
rustyclockwork Posted November 12, 2009 Share Posted November 12, 2009 Hi Jim, Yes Sir, the images are in the images directory, and the database is correct. I remember this being some sort of simple fix, but I can't put my finger on it. If you click on the image placeholders, the link works... the other image loads on the next page of course. But for some reason, it won't access the images for the main page. I really think I needed to modify some path, but I don't know what files call the path for me to modify. It seems that I remember the fix was just one line of code or something. Jason Quote Link to comment Share on other sites More sharing options...
♥kymation Posted November 12, 2009 Author Share Posted November 12, 2009 The image name is missing from the code that you posted. catalog/includes/modules/categories_images.php pulls the image name from the database and inserts it into the page code. Very simple. I don't see what's going wrong there. Try this: go into your admin and check that Show Image is set to True. If that's correct, change the box style. Try each one and see if any of them show the image. Regards Jim Quote See my profile for a list of my addons and ways to get support. Link to comment Share on other sites More sharing options...
rustyclockwork Posted November 12, 2009 Share Posted November 12, 2009 Hi Jim, I know, I can't understand it, I have my old code from the backup, and I've double checked all of that. And that code worked. It was the same problem I encountered earlier this year, I think I'm talking about it on page two of this thread. I don't remember who contacted me, but they said to make sure something was turned on or have my hosting company turn this feature on or off, or something about a path... it was a real simple fix and I'm almost positive that it had to do with the incomplete path that's showing up in the code I posted. I tried those suggestions you mentioned, still nothing. Jason Quote Link to comment Share on other sites More sharing options...
rustyclockwork Posted November 12, 2009 Share Posted November 12, 2009 Should I send you my admin/categories.php file? I'm out of ideas. Jason Quote Link to comment Share on other sites More sharing options...
♥kymation Posted November 12, 2009 Author Share Posted November 12, 2009 Is the problem in the Admin and the Catalog or just one? Regards Jim Quote See my profile for a list of my addons and ways to get support. Link to comment Share on other sites More sharing options...
rustyclockwork Posted November 12, 2009 Share Posted November 12, 2009 Oh, Just the front page on the catalog. Sorry, I don't really know how it all fits, I thought perhaps that when the admin was uploading an image, there may be something going on there as to the path being generated. my site is www.oldfoundry.com and I have a few test images on the page that were uploaded by the admin section for categories images box. the three images that are working (above the three which are not) are not related to any category. Those are just services links. Thank you, Jason Quote Link to comment Share on other sites More sharing options...
♥kymation Posted November 12, 2009 Author Share Posted November 12, 2009 If your database is correct then there is no problem with the Admin. The problem would have to be in the catalog/includes/modules/categories_images.php file. Time to do some debugging there. Find this code in that file (lines 39-44) $categories_data[$categories_id] = array ('id' => $categories_id, 'name' => $categories['categories_name'], 'description' => $categories['categories_description_front'], 'image' => $categories['categories_image_front'] ); } //while ($categories and paste this just after it print '<pre>'; print_r ($categories_data); print '</pre>'; That will print a mess of data on your front page. Copy that data and paste it in a code box here. Regards Jim Quote See my profile for a list of my addons and ways to get support. Link to comment Share on other sites More sharing options...
rustyclockwork Posted November 12, 2009 Share Posted November 12, 2009 Parse error: syntax error, unexpected T_CONSTANT_ENCAPSED_STRING in /home/oldfoun1/public_html/catalog/includes/modules/categories_images.php on line 47 Thank you for taking the time to look at this, I really appreciate it. Quote Link to comment Share on other sites More sharing options...
♥kymation Posted November 12, 2009 Author Share Posted November 12, 2009 You messed up something; that code works here. Make certain there is nothing after the last semicolon. Regards Jim Quote See my profile for a list of my addons and ways to get support. Link to comment Share on other sites More sharing options...
rustyclockwork Posted November 12, 2009 Share Posted November 12, 2009 <?php /* $Id: categories_images.php 1.2 2009-06-07 Kymation $ $Loc: catalog/includes/modules/ $ osCommerce, Open Source E-Commerce Solutions http://www.oscommerce.com Copyright © 2009 osCommerce Released under the GNU General Public License */ $info_box_heading = array(); $info_box_heading[] = array ('align' => 'left', 'text' => BOX_HEADING_CATEGORIES_IMAGES ); // Retrieve the data on the products in the categories list and load into an array $info_box_contents = array(); $categories_data = array(); $info_box_text = ''; $categories_query = tep_db_query ("select c.categories_id, c.categories_image_front, cd.categories_description_front, cd.categories_name from " . TABLE_CATEGORIES_DESCRIPTION . " cd, " . TABLE_CATEGORIES . " c where c.parent_id = '0' and c.categories_id = cd.categories_id and cd.language_id = '" . (int) $languages_id . "' order by c.sort_order "); while ($categories = tep_db_fetch_array ($categories_query) ) { $categories_id = $categories['categories_id']; $categories_data[$categories_id] = array ('id' => $categories_id, 'name' => $categories['categories_name'], 'description' => $categories['categories_description_front'], 'image' => $categories['categories_image_front'] ); } //while ($categories print '<pre>'; print_r ($categories_data); print '</pre>'; Quote Link to comment Share on other sites More sharing options...
rustyclockwork Posted November 12, 2009 Share Posted November 12, 2009 still getting this same output Parse error: syntax error, unexpected T_CONSTANT_ENCAPSED_STRING in /home/oldfoun1/public_html/catalog/includes/modules/categories_images.php on line 48 darn it. Quote Link to comment Share on other sites More sharing options...
♥kymation Posted November 12, 2009 Author Share Posted November 12, 2009 Line 48 is the last line of the code you posted. Delete any spaces at the end of that line, then hit enter. Regards Jim Quote See my profile for a list of my addons and ways to get support. Link to comment Share on other sites More sharing options...
rustyclockwork Posted November 12, 2009 Share Posted November 12, 2009 Hi Jim, Same thing. Jason Quote Link to comment Share on other sites More sharing options...
rustyclockwork Posted November 12, 2009 Share Posted November 12, 2009 Should I try putting the debug code inside that bracket above? } //while ($categories print '<pre>'; print_r ($categories_data); print '</pre>'; Quote Link to comment Share on other sites More sharing options...
♥kymation Posted November 12, 2009 Author Share Posted November 12, 2009 No, that won't help. Please post 5 lines before and after the code I said to add. And please use code tags; it's a lot easier for me to read that way. Regards Jim Quote See my profile for a list of my addons and ways to get support. Link to comment Share on other sites More sharing options...
rustyclockwork Posted November 12, 2009 Share Posted November 12, 2009 I didn't do anything to the code, and now I'm getting this on my site. Fatal error: Call to a member function add_current_page() on a non-object in /home/oldfoun1/public_html/catalog/includes/application_top.php on line 321 I'll get that code posted to you though, but now I need to figure out what happened while I was getting some food. The whole reason why I have to do this is because I got hit with some sort of PHP virus thing last month, wiped me all out. I've got some security installed now, on a different hosting company as well. The virus happened while my site was down for 3 days straight. So I left my old hosting place. Quote Link to comment Share on other sites More sharing options...
rustyclockwork Posted November 12, 2009 Share Posted November 12, 2009 (edited) $categories_data[$categories_id] = array ('id' => $categories_id, 'name' => $categories['categories_name'], 'description' => $categories['categories_description_front'], 'image' => $categories['categories_image_front'] ); } //while ($categories // Set up the box in the selected style if (count ($categories_data) > 0) { // Show only if we have categories in the array // if (CATEGORIES_IMAGES_BOX_STYLE == 'Grid') { switch (CATEGORIES_IMAGES_BOX_STYLE) { // Show the categories in a fixed grid (# of columns is set in Admin) case 'Grid': Edited November 12, 2009 by rustyclockwork 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.