Jump to content


Photo

Fatal error: Class 'Imagick' not found


  • Please log in to reply
6 replies to this topic

#1 farkewie

farkewie

    Advanced Member

  • Members
  • PipPipPip
  • 265 posts
  • LocationQueensland Australia

Posted 06 November 2007 - 07:47 AM


Fatal error: Class 'Imagick' not found in /home/.../public_html/.../albums/Birthday - Ty/test.php on line 3


im pretty sure my host has imagick how do i define the path?



<?php

$images = new Imagick(glob('*.JPG'));

foreach($images as $image) {

   // Providing 0 forces resizeImage to maintain aspect ratio
   $image->resizeImage(1024,0);

}

$images->writeImages();

while ($images){

print "<img scr=\"$images\"/>";

}

?>



#2 trq

trq

    Advanced Member

  • Administrators
  • 30,995 posts
  • LocationSydney, Australia.

Posted 06 November 2007 - 07:49 AM

im pretty sure my host has imagick


Obviously not. You best ask your host where on your PATH the Imagick class would be found.

http://thorpesystems.com | http://proemframework.org | http://github.com/trq

SmtpCatcher - A very simple mock sendmail useful for testing PHP mail scripts.
OPM - My Linux package manager.


#3 farkewie

farkewie

    Advanced Member

  • Members
  • PipPipPip
  • 265 posts
  • LocationQueensland Australia

Posted 06 November 2007 - 08:19 AM

They are saying it is installed and path is /usr/bin/  ?

they then told me to refer to the php manual.. thats where i got my test code from...lol

#4 trq

trq

    Advanced Member

  • Administrators
  • 30,995 posts
  • LocationSydney, Australia.

Posted 06 November 2007 - 08:45 AM

/usr/bin would be where imagick (the binary) itself is installed. However, your looking to use the Imagick php class. Here are the install instructions.

http://thorpesystems.com | http://proemframework.org | http://github.com/trq

SmtpCatcher - A very simple mock sendmail useful for testing PHP mail scripts.
OPM - My Linux package manager.


#5 farkewie

farkewie

    Advanced Member

  • Members
  • PipPipPip
  • 265 posts
  • LocationQueensland Australia

Posted 07 November 2007 - 01:44 AM

I had a look at that and i have no idea how to install it
do i need server access? i think i can get ssh access but i wouldnt know how to use it.

#6 farkewie

farkewie

    Advanced Member

  • Members
  • PipPipPip
  • 265 posts
  • LocationQueensland Australia

Posted 07 November 2007 - 01:57 AM

here is my chat session with support @ bluehost.com

Bill [01:50]: Welcome to our real-time support chat. How can I help you today?
Before I can make changes to your account or give you information about the account, I need you to provide me with your main domain name and the last four digits of the credit card (or PayPal invoice if you paid with PayPal) or the cPanel password on the account as verification.
Ty [01:50]: Hello i am trying to use php imagick class and getting fatal error class not defiend i spoke with someone last night they advised it is installed?
Bill [01:51]: yes imagick is installed at /usr/bin/
Ty [01:51]: so do i need to configure anything to use it?
[01:52]: im not using a gallery im writing my own small single page script
Bill [01:53]: just the correct path
Ty [01:53]: so i just have to set the path in the php script ? do you have an example?
Bill [01:54]: sorry I don't
Ty [01:56]: ok ill keep trying to work it out.



#7 darkywarkey

darkywarkey

    Member

  • Members
  • PipPip
  • 24 posts

Posted 02 October 2008 - 04:45 AM

bump this - I'm having a similar problem. not sure how to include or install or load or compile or whatever else you want to call it, imagick. my server has the pecl, imagick, package "installed" but some step is missing, which the support couldn't help me on. I get the error message

'Imagick' class not found

as well. anyone know how to fill in the blanks?




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users

Cheap Linux VPS from $5
SSD Storage, 30 day Guarantee
1 TB of BW, 100% Network Uptime

AlphaBit.com