1 Online. Join themUsers

Search

A new Extension, “Just In Time (JIT) Image Manipulation” is now available for download. Comments and feedback can be left here but if you discover any issues, please post it on the issue tracker.

Question: I updated a Symphony install and the JIT extensions to the latest GitHub code today. For some reasons the image manipulation stopped working. I have other installs on the same server that are working and the .htaccess seems to be fine. The trusted sites list is empty.

Is there anything that changed in the latest JIT version that might break the extension?

Nils wasn’t there something about removing anything before the /extensions/ part of the url string in the htaccess file? I might be thinking of jcrop and the image crop extension though.. worth checking!

Same problem here. I turned on error displaying in extension:

Fatal error: Call to undefined method Lang::init() in /Users/icek/Sites/tests/www/extensions/jit_image_manipulation/lib/image.php on line 21

Aha - that makes sense. Lang::init() doesn’t exist anymore in Symphony 2.0.7 so it should be replaced by Lang::load().

hmm, I’ve changed Lang:init() to Lang::load() and have some timezone related warnings and folowwing error:

Fatal error: Call to a member function applyFilter() on a non-object in /Users/icek/Sites/tests/www/extensions/jit_image_manipulation/lib/image.php on line 202

My fault, I’ve used wrong parameters. Works now :)

For compatibility with 2.0.7RC2, there is this fix as pointed out by Nils.

My apologies. This fix has been pulled into the official repo.

Does JIT cache images? If so, why and where?

I removed an image from workspace/images but the image continued to be displayed. I did hard refreshes and even cleared the FireFox cache but the image still showed. I then took the JIT parameters out of the URL (thus bypassing JIT) and the image didn’t show. I put the JIT parameters back and the image reappeared.

EDIT: Well, after reading the intro paragraph of the JIT documentation I found that the answer to my first question is yes, and the “why” is probably to save processing time. But where are they cached and how can I clear it?

Does JIT cache images? If so, why and where?

Yes. For performance.

The cached versions of images reside in /manifest/cache. The latest version of JIT also forces images to be cached in your browser for better performance. So even if the original image has been removed, your cached versions remain intact.

Thanks Nick. I was typing an edit while you were responding. And I should have thought to look under manifest.

Login to Comment

Symphony • Open Source XSLT CMS

Server Requirements
  • PHP 5.2 or above
  • PHP's LibXML module, with the XSLT extension enabled (--with-xsl)
  • MySQL 4.1 or above
  • An Apache or Litespeed webserver
  • Apache's mod_rewrite module or equivalent

Compatible Hosts