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

Issue with code #3

Open
rickprince opened this issue Aug 19, 2015 · 0 comments
Open

Issue with code #3

rickprince opened this issue Aug 19, 2015 · 0 comments

Comments

@rickprince
Copy link

I'm new to craft, so apologies if this is super simple. I'm having trouble getting this code working:

{% block content %}
    <ul>
    {% if block.images | length %}
        {% set thumb = {
          mode: 'fit',
          width: 550,
          height: 390,
          quality: 80,
        } %}
        {% for asset in block.images %}
            <li>
                <img src="{{ craft.retinafy.image(asset, 'thumb') }}" />
            </li>
        {% endfor %}
    {% endif %}
    </ul>
{% endblock %}

Error:

Argument 2 passed to Craft\Retinafy_RetinafyService::create2xImage() must be an instance of Craft\AssetTransformModel, null given, called in /my_system_path_here/craft/plugins/retinafy/services/Retinafy_RetinafyService.php on line 65 and defined

Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant