Troubles with images

Hallo Fredrik,
there is a litte Problem by get images for bookcat-module.

The module get a file in the image-path (named 2-1-3-1958 or so), but the file is no image and so no Cover and no link will show on Output-side.

I have upload all Cover-Images on an Path unter Imgaes and the array in config.php are

"$mapper = array("C:\\Dokumente und Einstellungen\All Users\Dokumente\BookCAT\Images\books" => "/modules/bookcat/images/Cover/",
"C:\\Dokumente und Einstellungen\All Users\Dokumente\BookCAT\Images\persons" => "/modules/bookcat/images/Person/",);"

The first Path ist the Path from the images (books and Persons) on my Home-PC and the second Path ist the Path on my Host.

What I make wrong? Can you help?

Greetings
Thomas

Fixed

Hello BadZilla,
I think I have fixed the Problem.
First: In the beginning all coverimages was in the dadabase. Then I switch from intern to extern Images and extracted the Coverimages from the database. Bookcat set the field on this point no to NULL. Also the code work like Images are in the database and so Images was copy but they are empty-files and nothing is shown.

Second: I think in the tempates "bookcat_Book.tpl.php" and "bookcat_Book_Image.tpl.php" are bugs. In the "SCR"-part the paths are double. I take this away and now the Coverimages are shown.

http://www.developer.dsfdb.org/bookcat/Sekund%C3%A4rliteratur%20%28Stand...

badzilla's picture

Apologies and Fantasic!

Firstly, apologies but I have only just seen this comment to approve.

I'm glad you've got it working on your rig and I'm really pleased at the result. Well done!

badzilla's picture

Firstly - I'm not Fredrik -

Firstly - I'm not Fredrik - I'm BadZilla and have nothing to do with Fredrik! Smile :) Smile

The array $mapper must be able to 'see' the remote drive where your images are held. I think you are saying that it can, but let's be 100% sure.

On your host machine, change directory to /modules/bookcat/images/Cover and do a 'dir' command (or 'ls' if you are using Linux). If you can see a directory listing of your images then it looks ok. Check your permissions of your webserver - it must have at least read permissions.

Also check that the directory "C:\\Dokumente und Einstellungen\All Users\Dokumente\BookCAT\Images\books" is correct - this can be checked by using phpMyAdmin and checking the path is saved correctly in the column ImageFilename.

Sorry, BadZilla

In field "ImageFilename" ist stored "\books\book_2.jpg" and on Host I have only a FTP-Account and there I see all Files - of course.
The File which ist stored in image-Path have only 4 Byts and contain the same as the field "Image" in the database (=TPF0). This field ist empty (I think) because I save the images not in database.