SJamG Posted September 13, 2011 Share Posted September 13, 2011 Hi There, I have ported my website over to another hosting provider and I cannot get this one thing working! We have images on our site, which this PHP Script should resize, but it can't find the Imagick.php script. I am convinced that it resides in a different path. Here is the error i get when trying to access one of the images : Warning: require_once(include/classes/Imagick.php) [function.require-once]: failed to open stream: No such file or directory in /hermes/bosweb/web128/b1282/ipg.accommodateruralcom/include/global.php on line 29 Fatal error: require_once() [function.require]: Failed opening required 'include/classes/Imagick.php' (include_path='.:/usr/local/lib/php-5.2.17/lib/php:/home/users/web/b1282/ipg.accommodateruralcom') in /hermes/bosweb/web128/b1282/ipg.accommodateruralcom/include/global.php on line 29 I contacted my hosting support about that and they said that the Imagick.php resides in the following directory : /usr/local/lib/ImageMagick I can appreciate that there may be references to this everywhere and anywhere. I have PHP files called imageResize, Global etc...just let me know which ones to post and ill do that. I really appreciate the help. [attachment deleted by admin] Quote Link to comment https://forums.phpfreaks.com/topic/247053-imagickphp-helpcannot-find-it/ Share on other sites More sharing options...
Muddy_Funster Posted September 13, 2011 Share Posted September 13, 2011 What happens if you cahnge line 29 in globals to require_once('./include/classes/' . $class_name . '.php'); if that doesn't work it could be to do with the camel case, I read some place that it can be a problem on some server types. Quote Link to comment https://forums.phpfreaks.com/topic/247053-imagickphp-helpcannot-find-it/#findComment-1268753 Share on other sites More sharing options...
SJamG Posted September 13, 2011 Author Share Posted September 13, 2011 Thanks for the quick reply. I have changed that line in Global.php, but it has made no difference How would I go about diagnosing the problem with the camel case? Thanks Quote Link to comment https://forums.phpfreaks.com/topic/247053-imagickphp-helpcannot-find-it/#findComment-1268756 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.