Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

codewithkyle\jitter\services\Transform::checkCache() #25

Closed
bartrylant opened this issue Mar 2, 2023 · 1 comment
Closed

codewithkyle\jitter\services\Transform::checkCache() #25

bartrylant opened this issue Mar 2, 2023 · 1 comment
Assignees
Labels
bug Something isn't working

Comments

@bartrylant
Copy link

bartrylant commented Mar 2, 2023

Hi

I cloned a webapp with a Craft install from one server to another server which has exactly the same setup. Yet, I now get an error:

codewithkyle\jitter\services\Transform::checkCache(): Argument #1 ($settings) must be of type array, null given, called in /home/xxx-user/webapps/xxx-clone/vendor/codewithkyle/jitter/src/services/Transform.php on line 257

Any idea where to start looking?

This is the code that causes the error. I'm using local files (nu CDN).

{% set image = entry.afbeelding.one() %}
  {% if image %}
  <div class="columns col-gapless">
    <div class="column col-8 col-sm-10 col-xs-12 col-ml-auto text-right">
 
      {# This will transform the image on page load #}
      {% set transformedImageUrl = craft.jitter.transformImage(image, { w: 10, ar: "3:2", m: "clip", q: 10 }) %}
      <img 
          data-sizes="auto"
          src="{{ transformedImageUrl }}" 
          data-srcset="{{ craft.jitter.srcset(image, [
              { w: 500, ar: "3:2", m: "clip", q: 50 },
              { w: 800, ar: "3:2", m: "clip", q: 50 },
...
@codewithkyle codewithkyle self-assigned this Mar 2, 2023
@codewithkyle codewithkyle added the bug Something isn't working label Mar 2, 2023
@codewithkyle
Copy link
Owner

codewithkyle commented Mar 2, 2023

Fixed in v2.3.3

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants