Share » Forums » Developer » Problems adding pictures with class...

Problems adding pictures with class attribute image

Problems adding pictures with class attribute image

Tuesday 10 June 2003 4:06:41 pm - 7 replies

Author Message

Jan Borsodi

Wednesday 11 June 2003 3:41:51 am

You could try these documents.
http://ez.no/developer/ez_publish_3/documentation/ez_publish_3/typical_problems_and_solutions/images_do_not_work
http://ez.no/developer/ez_publish_3/documentation/ez_publish_3/how_to_start_beginners

you should also try to search the forums for this problem.

--
Amos

Documentation: http://ez.no/ez_publish/documentation
FAQ: http://ez.no/ez_publish/documentation/faq

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

Jan Borsodi

Wednesday 11 June 2003 5:04:30 am

You either have openbasedir restrictions on or the PHP version you are using has some bugs. Consider upgrading or removing openbasedir restriction if possible.

Some more information can be found here:
http://ez.no/developer/ez_publish_3/documentation/ez_publish_3/typical_problems_and_solutions/open_basedir_problem
http://ez.no/developer/ez_publish_3/documentation/ez_publish_3/typical_problems_and_solutions

--
Amos

Documentation: http://ez.no/ez_publish/documentation
FAQ: http://ez.no/ez_publish/documentation/faq

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.

Claudius Frank

Wednesday 11 June 2003 2:12:08 pm

I know all the details which you have described. I have changed all the files proposed by you, but the result was the same. Nothing has changed.

Regards

You must be logged in to post messages in this topic!

36 542 Users on board!

Forums menu