Unyson-Shortcodes-Extension icon indicating copy to clipboard operation
Unyson-Shortcodes-Extension copied to clipboard

Issue with image (Media element)

Open thanhluu opened this issue 11 years ago • 10 comments

When I input specific width and height, the front-end only show attachment ID of image. Can you check the view of this element on page builder.

thanhluu avatar Jun 27 '15 13:06 thanhluu

The view looks ok. On my side it works fine.

ghost avatar Jun 27 '15 13:06 ghost

On my side, the image markup is showing like this:

image

thanhluu avatar Jun 27 '15 13:06 thanhluu

You use the default view, or you customized it in

{theme}/framework-customizations/extensions/shortcodes/media-image/views/view.php

?

ghost avatar Jun 27 '15 13:06 ghost

On the default view only. I didn't customize that view.

thanhluu avatar Jun 27 '15 13:06 thanhluu

I don't know how to reproduce this.

Can you debug the view (add some fw_print())

plugins/unyson/framework/extensions/shortcodes/media-image/views/view.php

and detect the problem?

Or send me the access details to your site (with possibility to edit files - ftp access) to moldcraft[at]email.com? and I will debug it myself

ghost avatar Jun 27 '15 13:06 ghost

Sorry this project still on my localhost. I think the problem is fw_resize function return only the attachment's ID.

thanhluu avatar Jun 27 '15 13:06 thanhluu

A temporary solution

if (is_numeric($image)) {
    $image = $atts['image']['url'];
}

This is all I can help right now. I am not familiar with the fw_resize() functionality.

@valeriuzdrobau Will inspect this problem (most likely on Monday).

ghost avatar Jun 27 '15 13:06 ghost

Ok! Thanks for your fast reply.

thanhluu avatar Jun 27 '15 13:06 thanhluu

Hi, please check if you have an attachment with 412 ID.

valeriuzdrobau avatar Jul 04 '15 09:07 valeriuzdrobau

Due to inactivity I close this issue. Feel free to reopen it at any time.

valeriuzdrobau avatar Sep 03 '15 07:09 valeriuzdrobau