Skip Navigation

[Resolved] Error message trying to create a custom image size in View

This thread is resolved. Here is a description of the problem and solution.

Problem:

When I try to add the custom image size I get an error message: Zero size image string passed

Solution:

It is a compatibility issue, please deactivate all other plugins, and switch to WordPress default theme 2021, and test again

Relevant Documentation:

This support ticket is created 2 years, 9 months ago. There's a good chance that you are reading advice that it now obsolete.

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.

Our next available supporter will start replying to tickets in about 0.76 hours from now. Thank you for your understanding.

Sun Mon Tue Wed Thu Fri Sat
- 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9: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/Hong_Kong (GMT+08:00)

This topic contains 14 replies, has 2 voices.

Last updated by WilliamM1564 2 years, 8 months ago.

Assisted by: Luo Yang.

Author
Posts
#2306979
Edit_Page_“Advisor_List”_‹_Rockstar_Psychics_—_WordPress.jpg
Edit_Page_“Advisor_List”_‹_Rockstar_Psychics_—_WordPress.jpg

I am trying to:
Add a Featured Image to a View Loop with a custom size.

I am using the Toolset Image Block. I am given a small set of options for image size but I want to make it 300x300 so I opt to create a custom image size.

When I try to add the custom image size I get an error message: Zero size image string passed (see attached screen shot)

Link to a page where the issue can be seen:
hidden link

I expected to see:
Confirmation that I had successfully added a custom image size.

Instead, I got:
Error message, see attached screen capture.

NOTE: I saved the page and viewed it and it APPEARS that the image is now in fact consistently 300x300.

#2307107

Hello,

The problem you mentioned above is abnormal, please try to get the PHP debug logs from your website:
https://toolset.com/documentation/programmer-reference/debugging-sites-built-with-toolset/#php-debugging

#2307183

OK, I made the changes to wp-config.php

I repeated the error but I do not see a log file being created. What do I do now?

Thank you so much

#2307297

Some webservers can not produce the PHP debug log file, you can also ask help from your server provider to get the PHP debug logs.

#2307931

OK, PHP logging is on now and is generating the log file correctly. I then repeated the attempt to make a custom size image so you would see that in the log.

Lot of errors. In this case, I think that is helpful, right?

What do I do with the log file now?

Thank you so much.

#2308063

You can copy/paste the PHP debug logs here, or upload it to your own google drive disk, share the link here, thanks

#2308079

Here is the link to the PHP log file as requested hidden link

Thank you for looking at this. I am curious why it is not working.

#2308095

Please try to turn on PHP configuration "allow_url_fopen", and test again.

More help:
hidden link

#2308113

It was actually already turned on.

What do I do now?

#2308123

No, according to your PHP debug logs, your website does not turn on PHP configuration "allow_url_fopen", if you need more assistance for it, please provide a test site with the same problem, fill below private message box with test site credentials + FTP access, I need to test and debug it in a live website, and I might need to deactivate pluings/theme in it.

#2309861

Thanks for the details, I can login into your test site, and can see the problem, will update here if find anything

#2309997

I can not login into your website again, the link you provide is not valid any more, please check it, provide a stable wordpress admin account in below private message box, thanks

#2311079

It should be a compatibility issue in your website, I have tried these:
1) Deactivate all other plugins(Except Toolset plugins + Woocommerce plugin), switch to WordPress default theme 2022
2) Create a new page, add a view block, and add a Toolset image block, setup the custom image size as 300 * 300, it works fine
hidden link

Please try these, activate other plugins one by one, try to locate the problem plugin in your website

#2311845

The plugin in question is WP Hide & Security Enhancer which changes the url for the dashboard from /admin or /wp-admin to prevent hacking. That plugin makes a dramatic difference in the number of attacks each day on an operational site.

It seems like I will have to deactivate that plugin whenever I want to make a custom image size.

#2311853

So it turns out a similar plugin WPS Hide Login does not cause the problem. So I have switched plugins and I am now able to leave the security feature intact when I edit Toolset Views.