Upon activation I received a whole string of errors, any ideas?

    * warning: imagettfbbox() [function.imagettfbbox]: Could not read font in /Users/production/Sites/aerie/modules/flir/flir.module on line 213.
    * warning: imagecreatetruecolor() [function.imagecreatetruecolor]: Invalid image dimensions in /Users/production/Sites/aerie/modules/flir/flir.module on line 218.
    * warning: imagesavealpha(): supplied argument is not a valid Image resource in /Users/production/Sites/aerie/modules/flir/flir.module on line 219.
    * warning: imagealphablending(): supplied argument is not a valid Image resource in /Users/production/Sites/aerie/modules/flir/flir.module on line 220.
    * warning: imagesx(): supplied argument is not a valid Image resource in /Users/production/Sites/aerie/modules/flir/flir.module on line 222.
    * warning: imagesy(): supplied argument is not a valid Image resource in /Users/production/Sites/aerie/modules/flir/flir.module on line 222.
    * warning: imagecolorallocatealpha(): supplied argument is not a valid Image resource in /Users/production/Sites/aerie/modules/flir/flir.module on line 222.
    * warning: imagefilledrectangle(): supplied argument is not a valid Image resource in /Users/production/Sites/aerie/modules/flir/flir.module on line 222.
    * warning: imagecolorallocate(): supplied argument is not a valid Image resource in /Users/production/Sites/aerie/modules/flir/flir.module on line 224.
    * warning: imagettftext() expects parameter 1 to be resource, boolean given in /Users/production/Sites/aerie/modules/flir/flir.module on line 224.
    * warning: filemtime() [function.filemtime]: stat failed for files/flir/cache/c2/6e/c26e288359a8630abe16c70b309d5614.png in /Users/production/Sites/aerie/modules/flir/flir/inc-flir.php on line 348.
    * warning: readfile(files/flir/cache/c2/6e/c26e288359a8630abe16c70b309d5614.png) [function.readfile]: failed to open stream: No such file or directory in /Users/production/Sites/aerie/modules/flir/flir/inc-flir.php on line 366.

Comments

btopro’s picture

go to the admin/settings/flir page. The problem has to do with not setting the files/flir/cache and files/flir/fonts folders until going to the admin setting page. If you go there once and then hit refresh that should take care of some of them. Then move fonts into the files/flir/fonts folder and it'll kill off the rest.

I'm not sure how .install files work quite yet but if anyone knows if I can just throw the folder creation and copyr (deep copying) functionality into there I could automatically move the fonts over to the files/flir/fonts w/o these errors cropping up.

ha5bro’s picture

Thanks btopro, got it working.

I just made a copy of the FLIR folder within the FLIR module folder and put it into my FILES directory.

Great module!

btopro’s picture

Assigned: Unassigned » btopro
Category: bug » feature
Priority: Normal » Minor
Status: Active » Postponed

Thanks, I didn't write the code for the image processing, just the integration. I'm going to change this to a feature request since this should be part of the installation so I'll batch this in whenever I upgrade facelift's base code.

btopro’s picture

Status: Postponed » Fixed

Installer cleaned up

Anonymous’s picture

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for two weeks with no activity.

drupalhooked’s picture

Thanks so much btopro!!
I also had problems with the fonts. Now got it working.
Its an amazing module.

Thanks again!!!