Re: error while "create file" (image)
Matthias Dieke <[email protected]>
| Newsgroups | gmane.comp.cms.bitflux.general |
|---|---|
| Message-ID | <[email protected]> |
Hallo Chregu, Christian Stocker wrote: > > On 7.6.2005 19:33 Uhr, Matthias Dieke wrote: > >>Hi, >> >>I created a collection and a sub-collection (as gallery) >> >>I edited the .configxml of the gallery-collection and uncommented the >>virtualDir-parameter and set the parameter value to "coll./sub-coll./" > > > Mmmh, files (and images) should be put into the files directory and not > the data directory (or any of those collections). That's currently a > missing feature, but I recommend (also from a performance point of view > to use something like > > virtualDir = files/coll/sub-coll/ I know I know ;) But I thought its easier for the client if he can upload the images directly to the collection. I will teach the client to always use "files/..." ;) > > >>After that I tried to upload a image this error was shown up >> >>Fatal error: Call to undefined function exif_read_data() in >>/home/dima/public_html/bxcms/inc/bx/indexer/image/jpeg.php on line 11 >> >> >>It seams I have not installed the exif-extension for php ;) > > > I made a check, if exif_read_data exists, otherwise it just doesn't set > the properties, so it should work now for you as well. Thanks. > > > >>After uploading the image and reloading the navigation-tree the image >>was shown in the tree. When i click to the image in the right frame >>"edit image..." opens. Then name of the image will be shown and also the >>correct resolution of the image, but the image itself won't be shown :( > > > > That maybe has to do with the fact, that it bailed out with the error > above. Can you check again with the new code? It at least works for me > on both galleries and files. > > >>I looked in via putty and had a look to "bxcms/data/<coll>/<sub-coll>/" >>and there is no image. > > > See above ,) Missing feature. > > >>When I do the same in "files/images/" the same error will shown, but the >>image is anyway shown when "editing image" and I also see this image in >>putty. >> >>Thats a bit mystic ;) When uploading image for a gallery it does'nt work >>but for "files/images/". >> >> >>Ok, how we can solve the problem. The "easiest way" is to add "exif" to >>php... but it's not easy for me. I'm not really familiar with linux. I >>know there is some possibility to add extension to a installed php. >> >> >>Can anybody tell me how to add a extension to php? > > > IIRC, go to ext/exif, then do > > phpize > ./configure --enable-exif > make > make install > > and then add to php.ini > extension=php_exif.dll > > and restart apache. Your answer sounds so easy... but not for me. I tried phpize and "./configure ... " I run make and get this error: main/output.o(.text+0xa73): In function `php_ob_init_named': /tmp/php5-STABLE-200501201530/main/output.c:443: undefined reference to `php_ob_gzhandler_check' collect2: ld returned 1 exit status make: *** [sapi/cgi/php] Fehler 1 I'm a so stupid guy ;) > > You can of course also recompile php and add --enable-exif to the > configure line. Recompile ;) Phpize seams to be to hard for me and I woun't think about recompiling ;) > > >>Or has anybody a other idea to solve the problem. > > > update your code ;) You won't get some nice information about your > picture from the exif block, but it doesn't really matter anyway ;) > EXIF would be cool, but I will update my bxcms for the first time. Thanks > chregu > > >>Thanks >> >>Matthias >> >> > > -- bitflux-cms mailing list [email protected] http://lists.bitflux.ch/cgi-bin/listinfo/bitflux-cms