Jerry Jalava
|
Tuesday 10 June 2003 4:06:41 pm
Hi, I'm having trouble using the image attribute in classes. It just doesn't upload any pictures. I'm using eZ 3.0-2. I just founded this out while playing with the forum classes. If someone could be nice and send me some suggestions where to start looking for conclusion to this problem.
Once more,
- I try to make new forum "folder" and I choose image from my hdd and press publish.
- Everything else comes available expect the picture.
- It just doesn't upload it to the server... - I could use some hints how to solve this annoing prob.
Regards, Jerry
|
Claudius Frank
|
Wednesday 11 June 2003 4:22:49 am
I am not able to publish any images on a hosted server, neither with GD nor with ImageMagick. I have read all pieces of advice in the forum, but nothing helped to solve the problem. I receive always these errors:
Warning:
Exec: /usr/local/bin/convert -geometry "600x600>" var/storage/reference/image//php6N5P5i.jpg jpg:var/storage/variations/image/p/h/p//php6N5P5i_600x600_368.jpg, Err: , Ret: 127
Warning: PHP
getimagesize(var/storage/variations/image/p/h/p/php6N5P5i_600x600_368.jpg) [<a href='http://www.php.net/function.getimagesize'>function.getimagesize</a>]: failed to create stream: No such file or directory in /mySite.com/ezpublish/kernel/classes/datatypes/ezimage/ezimagevariation.php on line 234
Warning: PHP
filesize() [<a href='http://www.php.net/function.filesize'>function.filesize</a>]: Stat failed for var/storage/variations/image/p/h/p/php6N5P5i_600x600_368.jpg (errno=2 - No such file or directory) in /mySite.com/ezpublish/kernel/classes/datatypes/ezimage/ezimagevariation.php on line 249
Error:
Could not create variation for var/storage/variations/image/p/h/p/php6N5P5i_600x600_368.jpg Error: eZTemplate @ design/standard/templates/content/datatype/view/ezimage.tpl:8[14] Cannot retrieve attribute of a boolean Regards
|
Claudius Frank
|
Wednesday 11 June 2003 5:51:20 am
Thank you very much for reply.
The server is a shared host so I can't change nothing. The entries in php.ini are:
Version
4.3.1
Extensions
xml, wddx, tokenizer, swf, standard, session, recode, posix, pcre, overload, mysql, mcrypt, imap, gettext, gd, ftp, exif, dbase, dba, db, ctype, calendar, bcmath, zlib, apache, Zend Optimizer
Safe mode is off.
Basedir restriction is off.
Global variable registration is off.
File uploading is enabled.
Maximum size of post data (text and files) is 8M.
Script memory limit is 16M. Maximum execution time is 30 seconds. Regards
|
Jerry Jalava
|
Wednesday 11 June 2003 7:57:31 am
Thanks for your reply. But I still can't get them to work. I get this in log: No such attribute for object(ezhttpfile): filename Choose one of following: original_filename, filename, filesize, is_temporary, mime_type, mime_type_category, mime_type_part Don't know if that has nothing to do with this... But the images work correctly when I installed the demo site, but now when I installed eZ without demo stuff they just don't seem to work...
Thanks, Jerry
|
Douglas Hammond
|
Wednesday 11 June 2003 11:29:17 am
did you notice the double slash in jpg:var/storage/variations/image/p/h/p//php6N5P5i_600x600_368.jpg this stoped images working for. I use GD and had to make a number of fixes. to get rid of the double // in change
line 331
if ( preg_match( "#(.+/)?(.+)$#", $file, $matches ) )
{
$dirs = $matches[1];
$file = $matches[2]; }
to
if ( preg_match( "#((.+)/)?(.+)$#", $file, $matches ) )
{
$dirs = $matches[2];
$file = $matches[3]; } you also have to do the same on line 351.
|