Re: error while "create file" (image)
Christian Stocker <[email protected]>
| Newsgroups | gmane.comp.cms.bitflux.general |
|---|---|
| Message-ID | <[email protected]> |
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/ > 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. > 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. You can of course also recompile php and add --enable-exif to the configure line. > 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 ;) chregu > > Thanks > > Matthias > > -- christian stocker | Bitflux GmbH | schoeneggstrasse 5 | ch-8004 zurich phone +41 1 240 56 70 | mobile +41 76 561 88 60 | fax +41 1 240 56 71 http://www.bitflux.ch | [email protected] | gnupg-keyid 0x5CE1DECB -- bitflux-cms mailing list [email protected] http://lists.bitflux.ch/cgi-bin/listinfo/bitflux-cms