Skip Navigation

[Waiting for user confirmation] issue with big image uploaded in custom field not registered as scaled

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

Sun Mon Tue Wed Thu Fri Sat
- 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 -
- 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 -

Supporter timezone: Asia/Kolkata (GMT+05:30)

This topic contains 8 replies, has 1 voice.

Last updated by Minesh 20 hours, 57 minutes ago.

Assisted by: Minesh.

Author
Posts
#2833550

hello team
I am facing same issue than https://toolset.com/forums/topic/toolset-image-field-not-compatible-with-wps-new-image-scaling-feature/

uploading a big picture keep in database the original path of picture instead of the scaled one that wordpress created.

In bricks builder, the display is not recognized as original path should not be used. Scaled path should be the correct one.

how can we fix this issue ?

thx.

#2833591

Minesh
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

Hello. Thank you for contacting the Toolset support.

Can you please share problem URL and tell me what image you want to display in what size and send me admin access detials and let me check if I can offer you any workaround.

*** Please make a FULL BACKUP of your database and website.***
I would also eventually need to request temporary access (WP-Admin and FTP) to your site. Preferably to a test site where the problem has been replicated if possible in order to be of better help and check if some configurations might need to be changed.

I have set the next reply to private which means only you and I have access to it.

#2834384

Minesh
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

There is no official integration with Bricks builder and Toolset.

I'm not sure why the image is not get displayed, Can you please tell me where using what template link I can see the bricks template that is assigned to your following page:
- hidden link

#2834691

here is answer from bricks :

------------------

Unfortunately, this seems like a bug from the Toolset plugin.

Someone pointed this out.

https://toolset.com/forums/topic/toolset-image-field-not-compatible-with-wps-new-image-scaling-feature/

Bricks also uses the same native WP function attachment_url_to_postid to convert the url to post ID, and so having the same issue as that user, we always get 0 by converting the "unscale" URL. If we can't get the post ID, there is no way to allow users to choose which image size to render.

Suggest that you check with their support and use that forum URL as a reference so they understand the actual issue.

---------------------

#2834694

Minesh
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

As you may have checked - it says that the issue is from WordPress core:
- https://toolset.com/forums/topic/toolset-image-field-not-compatible-with-wps-new-image-scaling-feature/#post-2447831

Here user also confirms that issue is from core WordPress:
- https://toolset.com/forums/topic/toolset-image-field-not-compatible-with-wps-new-image-scaling-feature/#post-2449153

Hi Waqar, thanks for digging up those tickets, indeed, that issue seems due to WP

I'm not sure if its fixed by WordPress or not.

I can see that patch is provided:
- https://core.trac.wordpress.org/attachment/ticket/51058/attachment_url_to_postid.patch

#2834768

I'm not sure about what I'm supposed to do here, but the fact is that issue is because the picture path registered in postmeta is original one instead of scaled one.

If you could modify the way you register the image path would solve issue.

this is simple. when image is not scaled, register the original path, and when image is scaled, register scaled path in postmeta.

could you please provide a fix ?

thx.

#2834920

Minesh
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

I may offer you workaround but:

Can you please tell me where using what template link I can see the bricks template that is assigned to your following page and what image you want to display:
- hidden link

#2835607

there is no template here. you can simply edit the page : hidden link

regarding the image, you can edit the Expert Digital Agency
hidden link

image is already here : hidden link

#2835755

Minesh
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

Can you please check now: hidden link

I've installed and activated the Toolset Blocks plugin and then within your bricks builder:
- hidden link

I've removed the image elementand instead I've added the shortcode element and within the shortcode element I've added the following shortcode:

[types field='photo' title='%%TITLE%%' alt='%%ALT%%' size='medium_large' resize='proportional'][/types]

And saved the bricks builder and I can see now image gets displyed.