Phalcon Imagick not found

I have installed ImageMagic extension, but I still receive error that phalcon imagick not found Php 5.4.36, phalcon 1.3.4

PHP Fatal error:  Call to undefined function Phalcon\\Image\\Adapter\\Imagick()
$ php -m | grep imagick
$ imagick
imagick
imagick module  enabled
imagick module version  3.1.2
imagick classes     Imagick, ImagickDraw, ImagickPixel, ImagickPixelIterator
ImageMagick version     ImageMagick 6.5.4-7 2014-02-10 Q16 OpenMP http://www.imagemagick.org
ImageMagick copyright   Copyright (C) 1999-2009 ImageMagick Studio LLC
ImageMagick release date    2014-02-10
ImageMagick number of supported formats:    199
ImageMagick supported formats   A, AI, ART, ARW, AVI, AVS, B, BGR, BMP, BMP2, BMP3, BRF, BRG, C, CALS, CAPTION, CIN, CIP, CLIP, CMYK, CMYKA, CR2, CRW, CUR, CUT, DCM, DCR, DCX, DDS, DFONT, DNG, DOT, DPS, DPX, EPDF, EPI, EPS, EPS2, EPS3, EPSF, EPSI, EPT, EPT2, EPT3, ERF, EXR, FAX, FITS, FRACTAL, FTS, G, G3, GBR, GIF, GIF87, GRADIENT, GRAY, GRB, HALD, HISTOGRAM, HRZ, HTM, HTML, ICB, ICO, ICON, INFO, INLINE, IPL, ISOBRL, JNG, JP2, JPC, JPEG, JPG, JPX, K, K25, KDC, LABEL, M, M2V, M4V, MAP, MAT, MATTE, MIFF, MNG, MONO, MOV, MP4, MPC, MPEG, MPG, MRW, MSL, MSVG, MTV, MVG, NEF, NULL, O, ORF, OTB, OTF, PAL, PALM, PAM, PATTERN, PBM, PCD, PCDS, PCL, PCT, PCX, PDB, PDF, PDFA, PEF, PFA, PFB, PFM, PGM, PGX, PICON, PICT, PIX, PJPEG, PLASMA, PNG, PNG24, PNG32, PNG8, PNM, PPM, PREVIEW, PS, PS2, PS3, PSD, PTIF, PWP, R, RADIAL-GRADIENT, RAF, RAS, RBG, RGB, RGBA, RGBO, RLA, RLE, SCR, SCT, SFW, SGI, SHTML, SR2, SRF, STEGANO, SUN, SVG, SVGZ, TEXT, TGA, THUMBNAIL, TIFF, TIFF64, TILE, TIM, TTC, TTF, TXT, UBRL, UIL, UYVY, VDA, VICAR, VID, VIFF, VST, WBMP, WMF, WMV, WMZ, WPG, X, X3F, XBM, XC, XCF, XPM, XPS, XV, XWD, Y, YCbCr, YCbCrA, YUV


25.3k

Hi,

I think that this happens because phalcon extension is loaded before image magick php extension.

You should try to explicitly declare php extension loading order. I'm on debian stable.

so I've got in /etc/php5/mods-available:

  • phalcon.ini with extension=phalcon.so in it
  • imagick. with extension=imagick.so in it

then make symbolic link to /etc/phph5/apache2/conf.d/20-imagick.ini and /etc/php5/apache2/conf.d/90-phalcon.ini



5.0k

Thanks, silly me, I forgot both of them are extensions and the order does matter.

Hi,

I think that this happens because phalcon extension is loaded before image magick php extension.

You should try to explicitly declare php extension loading order. I'm on debian stable.

so I've got in /etc/php5/mods-available:

  • phalcon.ini with extension=phalcon.so in it
  • imagick. with extension=imagick.so in it

then make symbolic link to /etc/phph5/apache2/conf.d/20-imagick.ini and /etc/php5/apache2/conf.d/90-phalcon.ini

Do you need install Imagick with command : # apt-get install imagemagick



5.0k

Yes I did, the problem is fixed, it is due to the order I added in the php.ini, imagick.so was after phalcon.so, which caused the problem

Do you need install Imagick with command : # apt-get install imagemagick