Forums / Install & configuration / Not converting images

Not converting images

Author Message

Jonathan Coats

Sunday 02 March 2003 6:45:22 pm

I have ImageMagick, which must have been installed when I reinstalled my RedHat 7.3 install into /usr/X11R6/bin

This is in my image.ini.php

Having tried to keep things very simple I used a minimal set of options when I recompile PHP (v4.3.1) but I did ask it to use GD. My 'fine tune' check results in the install of eZ Publish 2.9.7 tell me there are no outstanding image conversion issues with my setup.

When I try to create a new image it uploads okay - as I can find the renamed file in the originals/image directory. But nothing ever displays and it doesn't carry out the conversion.

I don't know if these help - from the error_log:

PHP Fatal error: Call to a member function on a non-object in /data/WWW/html/ez3/kernel/classes/datatypes/ezbinaryfile/ezbinaryfiletype.php on line 106
sh: convert: command not found
[Mon Mar 03 02:42:45 2003] [error] [client 161.73.38.213] File does not exist: /data/WWW/html/ez3/var/storage/variations/image/p/h/p/phpA2SFgU_100x100_665.jpg, referer: http://ez3.jcsolutions.co.uk/admin/content/edit/220/3//
sh: convert: command not found
sh: convert: command not found
[Mon Mar 03 02:42:56 2003] [error] [client 161.73.38.213] File does not exist: /data/WWW/html/ez3/var/storage/variations/image/p/h/p/php2pZOj8_600x600_665.jpg, referer: http://ez3.jcsolutions.co.uk/admin/content/versionview/220/3//
[Mon Mar 03 02:43:05 2003] [error] [client 161.73.38.213] File does not exist: /data/WWW/html/ez3/var/storage/variations/image/p/h/p/php2pZOj8_600x600_665.jpg, referer: http://ez3.jcsolutions.co.uk/admin/content/versionview/220/3//
sh: convert: command not found
[Mon Mar 03 02:44:39 2003] [error] [client 161.73.38.213] File does not exist: /data/WWW/html/ez3/var/storage/variations/image/p/h/p/php2pZOj8_100x100_665.jpg, referer: http://ez3.jcsolutions.co.uk/admin/content/edit/220/3//

What can be happening and how might I fix it?

(As you can see - I finally got eZ3 up and running - after a fashion).

Jock Coats

Tony Wood

Monday 03 March 2003 1:24:48 am

> I have ImageMagick, which must have been installed when I
> reinstalled my RedHat 7.3 install into /usr/X11R6/bin
>
> This is in my image.ini.php
>
> Having tried to keep things very simple I used a minimal set
> of options when I recompile PHP (v4.3.1) but I did ask it to
> use GD. My 'fine tune' check results in the install of eZ
> Publish 2.9.7 tell me there are no outstanding image
> conversion issues with my setup.
>
> When I try to create a new image it uploads okay - as I can
> find the renamed file in the originals/image directory. But
> nothing ever displays and it doesn't carry out the
> conversion.
>
> I don't know if these help - from the error_log:
>
> PHP Fatal error: Call to a member function on a non-object
> in
> /data/WWW/html/ez3/kernel/classes/datatypes/ezbinaryfile/ezbinaryfiletype.php
> on line 106
> sh: convert: command not found
> [Mon Mar 03 02:42:45 2003] [error] [client 161.73.38.213]
> File does not exist:
> /data/WWW/html/ez3/var/storage/variations/image/p/h/p/phpA2SFgU_100x100_665.jpg,
> referer:
> http://ez3.jcsolutions.co.uk/admin/content/edit/220/3//
> sh: convert: command not found
> sh: convert: command not found
> [Mon Mar 03 02:42:56 2003] [error] [client 161.73.38.213]
> File does not exist:
> /data/WWW/html/ez3/var/storage/variations/image/p/h/p/php2pZOj8_600x600_665.jpg,
> referer:
> http://ez3.jcsolutions.co.uk/admin/content/versionview/220/3//
> [Mon Mar 03 02:43:05 2003] [error] [client 161.73.38.213]
> File does not exist:
> /data/WWW/html/ez3/var/storage/variations/image/p/h/p/php2pZOj8_600x600_665.jpg,
> referer:
> http://ez3.jcsolutions.co.uk/admin/content/versionview/220/3//
> sh: convert: command not found
> [Mon Mar 03 02:44:39 2003] [error] [client 161.73.38.213]
> File does not exist:
> /data/WWW/html/ez3/var/storage/variations/image/p/h/p/php2pZOj8_100x100_665.jpg,
> referer:
> http://ez3.jcsolutions.co.uk/admin/content/edit/220/3//
>
> What can be happening and how might I fix it?
>
> (As you can see - I finally got eZ3 up and running - after a
> fashion).
>
> Jock Coats

Hi,

This is a strange one as the default install on RH 7.3 works fine with eZ3... try running 'convert' from the command line to see if it can be found. Then check the the apache user has rights to run the 'convert' command.

Tony

Tony Wood : twitter.com/tonywood
Vision with Technology
Experts in eZ Publish consulting & development

Power to the Editor!

Free eZ Training : http://www.VisionWT.com/training
eZ Future Podcast : http://www.VisionWT.com/eZ-Future

Jonathan Coats

Monday 03 March 2003 2:11:03 am

>
> Hi,
>
> This is a strange one as the default install on RH 7.3 works
> fine with eZ3... try running 'convert' from the command line
> to see if it can be found. Then check the the apache user
> has rights to run the 'convert' command.
>
> Tony

Thanks. Mine is very much not standard, as accepting defaults with 7.3 did not work for me so I reinstalled the whole machine and then did the MySQL, PHP and Apache bits from source. But I got eZ Publish to run which I hadn't done before.

However, I will check the apache user/convert command, since the apache user is not standard. It ought to use GD before ImageMagick though oughtn't it?

Cheers,

Jock

Anders Jensen-Urstad

Tuesday 04 March 2003 9:35:17 am

> >
> > Hi,
> >
> > This is a strange one as the default install on RH 7.3
> works
> > fine with eZ3... try running 'convert' from the command
> line
> > to see if it can be found. Then check the the apache
> user
> > has rights to run the 'convert' command.
> >
> > Tony
>
> Thanks. Mine is very much not standard, as accepting
> defaults with 7.3 did not work for me so I reinstalled the
> whole machine and then did the MySQL, PHP and Apache bits
> from source. But I got eZ Publish to run which I hadn't
> done before.
>
> However, I will check the apache user/convert command, since
> the apache user is not standard. It ought to use GD before
> ImageMagick though oughtn't it?
>
> Cheers,
>
> Jock

Take a look at the section [imagemagick_program] in settings/setup.ini and make sure that convert is in one of the paths specified in unix_SearchPaths.

Anders Jensen-Urstad

Tuesday 04 March 2003 9:35:17 am

> >
> > Hi,
> >
> > This is a strange one as the default install on RH 7.3
> works
> > fine with eZ3... try running 'convert' from the command
> line
> > to see if it can be found. Then check the the apache
> user
> > has rights to run the 'convert' command.
> >
> > Tony
>
> Thanks. Mine is very much not standard, as accepting
> defaults with 7.3 did not work for me so I reinstalled the
> whole machine and then did the MySQL, PHP and Apache bits
> from source. But I got eZ Publish to run which I hadn't
> done before.
>
> However, I will check the apache user/convert command, since
> the apache user is not standard. It ought to use GD before
> ImageMagick though oughtn't it?
>
> Cheers,
>
> Jock

Take a look at the section [imagemagick_program] in settings/setup.ini and make sure that convert is in one of the paths specified in unix_SearchPaths.

Anders Jensen-Urstad

Tuesday 04 March 2003 9:35:17 am

> >
> > Hi,
> >
> > This is a strange one as the default install on RH 7.3
> works
> > fine with eZ3... try running 'convert' from the command
> line
> > to see if it can be found. Then check the the apache
> user
> > has rights to run the 'convert' command.
> >
> > Tony
>
> Thanks. Mine is very much not standard, as accepting
> defaults with 7.3 did not work for me so I reinstalled the
> whole machine and then did the MySQL, PHP and Apache bits
> from source. But I got eZ Publish to run which I hadn't
> done before.
>
> However, I will check the apache user/convert command, since
> the apache user is not standard. It ought to use GD before
> ImageMagick though oughtn't it?
>
> Cheers,
>
> Jock

Take a look at the section [imagemagick_program] in settings/setup.ini and make sure that convert is in one of the paths specified in unix_SearchPaths.

eZ debug

Timing: Jan 18 2025 05:22:35
Script start
Timing: Jan 18 2025 05:22:35
Module start 'content'
Timing: Jan 18 2025 05:22:36
Module end 'content'
Timing: Jan 18 2025 05:22:36
Script end

Main resources:

Total runtime0.8248 sec
Peak memory usage4,096.0000 KB
Database Queries205

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0063 591.3594180.8359
Module start 'content' 0.00630.7039 772.1953644.0859
Module end 'content' 0.71020.1145 1,416.2813345.0938
Script end 0.8247  1,761.3750 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00400.4803210.0002
Check MTime0.00150.1812210.0001
Mysql Total
Database connection0.00090.105210.0009
Mysqli_queries0.728288.28792050.0036
Looping result0.00190.22742030.0000
Template Total0.794196.320.3971
Template load0.00200.247620.0010
Template processing0.792196.032320.3960
Template load and register function0.00020.025110.0002
states
state_id_array0.00120.147310.0012
state_identifier_array0.00100.126920.0005
Override
Cache load0.00210.25121760.0000
Sytem overhead
Fetch class attribute can translate value0.00130.160640.0003
Fetch class attribute name0.00120.148070.0002
XML
Image XML parsing0.00090.103140.0002
class_abstraction
Instantiating content class attribute0.00000.002270.0000
General
dbfile0.00220.2697270.0001
String conversion0.00000.000830.0000
Note: percentages do not add up to 100% because some accumulators overlap

CSS/JS files loaded with "ezjscPacker" during request:

CacheTypePacklevelSourceFiles
CSS0extension/community/design/community/stylesheets/ext/jquery.autocomplete.css
extension/community_design/design/suncana/stylesheets/scrollbars.css
extension/community_design/design/suncana/stylesheets/tabs.css
extension/community_design/design/suncana/stylesheets/roadmap.css
extension/community_design/design/suncana/stylesheets/content.css
extension/community_design/design/suncana/stylesheets/star-rating.css
extension/community_design/design/suncana/stylesheets/syntax_and_custom_tags.css
extension/community_design/design/suncana/stylesheets/buttons.css
extension/community_design/design/suncana/stylesheets/tweetbox.css
extension/community_design/design/suncana/stylesheets/jquery.fancybox-1.3.4.css
extension/bcsmoothgallery/design/standard/stylesheets/magnific-popup.css
extension/sevenx/design/simple/stylesheets/star_rating.css
extension/sevenx/design/simple/stylesheets/libs/fontawesome/css/all.min.css
extension/sevenx/design/simple/stylesheets/main.v02.css
extension/sevenx/design/simple/stylesheets/main.v02.res.css
JS0extension/ezjscore/design/standard/lib/yui/3.17.2/build/yui/yui-min.js
extension/ezjscore/design/standard/javascript/jquery-3.7.0.min.js
extension/community_design/design/suncana/javascript/jquery.ui.core.min.js
extension/community_design/design/suncana/javascript/jquery.ui.widget.min.js
extension/community_design/design/suncana/javascript/jquery.easing.1.3.js
extension/community_design/design/suncana/javascript/jquery.ui.tabs.js
extension/community_design/design/suncana/javascript/jquery.hoverIntent.min.js
extension/community_design/design/suncana/javascript/jquery.popmenu.js
extension/community_design/design/suncana/javascript/jScrollPane.js
extension/community_design/design/suncana/javascript/jquery.mousewheel.js
extension/community_design/design/suncana/javascript/jquery.cycle.all.js
extension/sevenx/design/simple/javascript/jquery.scrollTo.js
extension/community_design/design/suncana/javascript/jquery.cookie.js
extension/community_design/design/suncana/javascript/ezstarrating_jquery.js
extension/community_design/design/suncana/javascript/jquery.initboxes.js
extension/community_design/design/suncana/javascript/app.js
extension/community_design/design/suncana/javascript/twitterwidget.js
extension/community_design/design/suncana/javascript/community.js
extension/community_design/design/suncana/javascript/roadmap.js
extension/community_design/design/suncana/javascript/ez.js
extension/community_design/design/suncana/javascript/ezshareevents.js
extension/sevenx/design/simple/javascript/main.js

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1node/view/full.tplfull/forum_topic.tplextension/sevenx/design/simple/override/templates/full/forum_topic.tplEdit templateOverride template
6content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
7content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
6content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
1content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
1pagelayout.tpl<No override>extension/sevenx/design/simple/templates/pagelayout.tplEdit templateOverride template
 Number of times templates used: 22
 Number of unique templates used: 6

Time used to render debug report: 0.0002 secs