Page 1 of 2
That old cataloger missing image problem!
Posted: Mon Aug 20, 2007 2:54 pm
by chipper
(Have found a number of posts referring to this but they either petered out or I didn't understand the solution!)
The problem is that images are not displaying at all when I use the Cataloger module
I seem to be able to upload images; although no real confirmation is given I have checked that the images show up in the cataloger folders on my remote site. However none of these images show up on the actual pages. What could I be doing wrong?
Am very impressed with the module - excellent work and much appreciated - but how can I sort this one out?
Simpe answers for simple person please!
Thanks and Regards
Re: That old cataloger missing image problem!
Posted: Tue Aug 28, 2007 7:18 pm
by hansom
chipper wrote:The problem is that images are not displaying at all when I use the Cataloger module
I seem to be able to upload images; although no real confirmation is given I have checked that the images show up in the cataloger folders on my remote site. However none of these images show up on the actual pages.
I'm having the same problem. Is there anyone with a solution?
Re: That old cataloger missing image problem!
Posted: Tue Aug 28, 2007 9:27 pm
by chipper
Hi - I was beginning to feel very lonely!
I have just made a sort of breakthrough - after playing around for ages I downloaded the svn version of Cataloger - I then renamed the folder from "Trunk" to Cataloger and ftp'd it to the modules folder.
It then showed up in the module list from where I installed it (just giving those instructions for anyone as dense as me) Download link is:
http://dev.cmsmadesimple.org/scm/?group_id=47
Now I have images! Problem is that I get 2 duplicated thumbnails for every entry and the css is out of whack for what I want - however am so pleased to have images at all that al least this is progress.
If anyone has fixed the duplicate image problem let me know - I will now dedicate my time to fiddling about with the css.
Regards
Lynne
Re: That old cataloger missing image problem!
Posted: Tue Aug 28, 2007 10:04 pm
by hansom
I haven't tried the SVN code yet, using version 0.5.5. at the moment.
You say that the images are uploaded correctly into both the 'catalog' and the 'catalog_src' directories, correct? On my server the images only get to the 'catalog_src' directory, the 'catalog' directory remains empty.
I've tried changing permissions, without any luck. It really feels like I'm in the dark right now... And it used to work before™... at least on my development server.
I really need some help here please, I gotta get this working...
Re: That old cataloger missing image problem!
Posted: Tue Aug 28, 2007 10:41 pm
by hansom
mark wrote:
You do have the {metadata} tag at the top of your template, right after ?...
You asking me? Please forgive me for asking, but what what does that have to do with the Cataloger images not being uploaded/handled/displayed correctly?
And yes, I do have the {metadata} tag, inside the head element.
Re: That old cataloger missing image problem!
Posted: Tue Aug 28, 2007 11:54 pm
by hansom
I would be really grateful if someone could explain this to me:
As it says in the docs:
When you upload images, the original is stored. When someone visits a page, the reduced size images are requested using a special URL, which will redirect the user's browser to the scaled image if it exists, and creating the scaled image if it doesn't. This allows you to change the size of images, without having to re-upload all the images, or rescaling them all at once.
It seems to me that the file
/modules/Cataloger/Cataloger.Image.php is responsible for this, and that may be where the problem lies. I tried to load the corresponding url, like this:
http://hostname/modules/Cataloger/Catal ... g&ac=76221 which resulted in an Internal Server Error.
I then made a copy of the file - test.php and tried to load that url instead. And this time it worked as it should. An image was generated and copied into the 'catalog' directory and displayed in the browser. Apart from the name, the difference between the two files is that the newly created 'test.php' has the permissions 644 while the original one is 664 (like all the other php files in my CMSMS installation).
So why does the permissions on the php file matter? Why doesn't the image processing work if the group has write permissions?
Please enlighten me!
Re: That old cataloger missing image problem!
Posted: Wed Jan 30, 2008 9:45 am
by sonictrip
Hi,
Im having a similar problem, no image gets uploaded when i add a cataloger-item product. I tried changing the permissions on the cataloger.image.php file but it still wont upload. Any ideas?
Thanks,
Fran.
[SOLVED] That old cataloger missing image problem!
Posted: Sat May 10, 2008 5:45 pm
by carasmo
Okay. It makes no sense, but when a person moves their site to another server, for some reason the cataloger images stop being able to upload and the thumbs don't show up, and sometimes the larger images don't show up either.
First, check that the permissions on the uploads/images/catalog
and the uploads/images/catalog_src
folders and CONTENTS are set to 664
You'd think that clearing the cache in the admin would work. But it didn't for me. I tried changing the umask and various other things. But since the image manager worked, I figured it was cataloger itself. The post above this gave me the other clue.
Now, because of the hardcoded path to modules/cataloger/Cataloger.Image.php in the sql (I don't know why), changing the name of "Cataloger.Image.php" to "Test.Image.php" completely fixed everything.
You also have to replace the references/calls to "Cataloger.Image.php" in in the following files located in the modules/cataloger dir:
contenttype.catalogitem.php - find the words "Cataloger.Image.php" and change to "Test.Image.php"
Cataloger.module.php - find the words "Cataloger.Image.php" and change to "Test.Image.php"
You can, of course, change the "Cataloger.Image.php" to "Cataloger2.Image.php" and then change it in the references. Basically you just got to change the name.
Permissions should be 664, or at least that's what's working for me.
Re: That old cataloger missing image problem!
Posted: Fri Aug 29, 2008 12:33 pm
by Tamborine
Hello,
as most posts concerning the image problem on cataloger redirect here, i think this should be the right place to expose my problem.
I have cataloger 0.7
My website is hosted at free.fr - this provider does not allow CHMOD changes in directories so i have to deal with it like that. Until now, CMS MS worked without problem.
I have build my website online, so it's not a problem of moving the site to another server/location.
I've tried to upload images using cataloger's form but they will never show up in the category or item page. Only a simple link, or alternate text of the image, is displayed in best cases. When looking at the websites directories with my FTP client, in the /modules/cataloger/images directory, there is no image.
I have tried the solution explained in the previous message. I made all the changes successfully, but with no result.
I wonder if there are more changes to do (expecially about the paths from the root, in the files) to make this work.
I do believe the solution is simple, but i still can't fix it.
Any new ideas?
Re: That old cataloger missing image problem!
Posted: Sun Aug 31, 2008 6:28 am
by Dr.CSS
Have you tried to go to File manager and then in settings tick the show all files and then submit then go to view files and get all the folders/files to view by hitting the top folder then go to your folder ansd see if you can change the permission there?...
Re: That old cataloger missing image problem!
Posted: Fri Sep 26, 2008 6:19 pm
by buffalokill
If you've tried all the above methods with no success, Try This:
open your config.php file. Near the bottom.
Swap this:
$config['image_manipulation_prog'] = 'IM';
$config['image_transform_lib_path'] = '/usr/local/bin/';
For This:
#$config['image_manipulation_prog'] = 'IM';
#$config['image_transform_lib_path'] = '/usr/local/bin/';
$config['image_manipulation_prog'] = 'GD';
$config['image_transform_lib_path'] = '/usr/bin/ImageMagick/';
Re: [SOLVED] That old cataloger missing image problem!
Posted: Tue Oct 14, 2008 7:03 am
by omniat
carasmo wrote:
Now, because of the hardcoded path to modules/cataloger/Cataloger.Image.php in the sql (I don't know why)
In which table in the database is the above path in?
Cheers
Re: That old cataloger missing image problem!
Posted: Thu Oct 08, 2009 4:31 pm
by deejmer
This is driving me nuts.....I have recently moved servers, and like those above my images will no longer show on my cataloger pages. I dont fully understand the solution by carasmo...>I dont see any path identified in the DB...I've searched for the string across the entire DB.
I've tried deleting and re-uploading images, clearing cache, etc....nothing seems to work.
Anyone know how to fix this?
Thanks in advance!
Re: That old cataloger missing image problem! [a possiple solution]
Posted: Sun Oct 25, 2009 11:07 pm
by acorn
Hey Guys,
Not sure if this is the best solution, but I have hardwired the Cataloger.module.php to bypass the whole Cataloger.Image.php url and just use correct url.
In my case I didn't need the rescaling functionality this seems to provide, but if you do still need it I wouldn't recommend this..
in Cataloger.module.php find: Cataloger.Image.php
looks like this:
return $gCms->config['root_url'].
'/modules/Cataloger/Cataloger.Image.php?i='.
$alias.'_'.$type.'_'.$image_number.
'_'.$size.
($forceshowmissing?'_1':'_'.$this->showMissing).
'.jpg'.$extender;
I changed it to this:
return $gCms->config['root_url'].
'/uploads/images/catalog_src/'.
$alias .
'_src_'.$image_number.
'.jpg';
And my images resolve correctly.
Re: That old cataloger missing image problem!
Posted: Mon Oct 26, 2009 10:05 pm
by Dr.CSS
@deejmer
I solve any path problems when moving a site by putting the install folder from the same version back in and run install, but in STEP 5 UNCHECK THE WRITE TABLES AND INSTALL DEFAULT CONTENT part, this will reset all path in config.php...