Welcome, Guest. Please login or register.
Did you miss your activation email?
23 Jul 2008, 14:08

Login with username, password and session length
Home Chat Help Search Calendar Login Register
Pages: [1]
Print
Author Topic: That old cataloger missing image problem!  (Read 822 times)
0 Members and 1 Guest are viewing this topic.
chipper
Forum Member
*

Karma: 0
Offline Offline

Posts: 42


« on: 20 Aug 2007, 10:54 »

(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!  Wink

Thanks and Regards




Logged
hansom
Forum Member
*

Karma: 0
Offline Offline

Posts: 48


« Reply #1 on: 28 Aug 2007, 15:18 »

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?
Logged
chipper
Forum Member
*

Karma: 0
Offline Offline

Posts: 42


« Reply #2 on: 28 Aug 2007, 17:27 »

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



Logged
hansom
Forum Member
*

Karma: 0
Offline Offline

Posts: 48


« Reply #3 on: 28 Aug 2007, 18:04 »

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...
Logged
hansom
Forum Member
*

Karma: 0
Offline Offline

Posts: 48


« Reply #4 on: 28 Aug 2007, 18:41 »

You do have the {metadata} tag at the top of your template, right after <head>?...

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.
Logged
hansom
Forum Member
*

Karma: 0
Offline Offline

Posts: 48


« Reply #5 on: 28 Aug 2007, 19:54 »

I would be really grateful if someone could explain this to me:

As it says in the docs:
Quote
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/Cataloger.Image.php?i=testimage_s_1_100_0.jpg&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!


« Last Edit: 29 Aug 2007, 08:50 by hansom » Logged
sonictrip
Forum Member
*

Karma: 0
Offline Offline

Posts: 77


« Reply #6 on: 30 Jan 2008, 04:45 »

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.
Logged
carasmo
Forum Member
*

Karma: 5
Offline Offline

Posts: 163


« Reply #7 on: 10 May 2008, 13:45 »

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.


Logged
Pages: [1]
Print
Jump to: