farkewie Posted November 6, 2007 Share Posted November 6, 2007 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\"/>"; } ?> Link to comment https://forums.phpfreaks.com/topic/76208-fatal-error-class-imagick-not-found/ Share on other sites More sharing options...
trq Posted November 6, 2007 Share Posted November 6, 2007 im pretty sure my host has imagick Obviously not. You best ask your host where on your PATH the Imagick class would be found. Link to comment https://forums.phpfreaks.com/topic/76208-fatal-error-class-imagick-not-found/#findComment-385682 Share on other sites More sharing options...
farkewie Posted November 6, 2007 Author Share Posted November 6, 2007 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 Link to comment https://forums.phpfreaks.com/topic/76208-fatal-error-class-imagick-not-found/#findComment-385712 Share on other sites More sharing options...
trq Posted November 6, 2007 Share Posted November 6, 2007 /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. Link to comment https://forums.phpfreaks.com/topic/76208-fatal-error-class-imagick-not-found/#findComment-385731 Share on other sites More sharing options...
farkewie Posted November 7, 2007 Author Share Posted November 7, 2007 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. Link to comment https://forums.phpfreaks.com/topic/76208-fatal-error-class-imagick-not-found/#findComment-386493 Share on other sites More sharing options...
farkewie Posted November 7, 2007 Author Share Posted November 7, 2007 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. Link to comment https://forums.phpfreaks.com/topic/76208-fatal-error-class-imagick-not-found/#findComment-386505 Share on other sites More sharing options...
darkywarkey Posted October 2, 2008 Share Posted October 2, 2008 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? Link to comment https://forums.phpfreaks.com/topic/76208-fatal-error-class-imagick-not-found/#findComment-655465 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.