Forums

Image Resize Erroring

wibadd 31 Dec, 2015
Image resize is not creating the resized copies of the uploaded image. Here are the errors being produced.

Warning: imagejpeg() expects parameter 3 to be long, string given in /home/12/21/2022112/web/administrator/components/com_chronoforms5/chronoforms/actions/image_resize/image_resize.php on line 282

Warning: imagejpeg() expects parameter 3 to be long, string given in /home/12/21/2022112/web/administrator/components/com_chronoforms5/chronoforms/actions/image_resize/image_resize.php on line 282


Additionally, it is throwing another error after executing some of the custom code:

Strict Standards: Only variables should be assigned by reference in /home/12/21/2022112/web/administrator/components/com_chronoforms5/chronoforms/actions/custom_code/custom_code.php(20) : eval()'d code on line 20

Strict Standards: Only variables should be assigned by reference in /home/12/21/2022112/web/administrator/components/com_chronoforms5/chronoforms/actions/custom_code/custom_code.php(20) : eval()'d code on line 20
GreyHead 31 Dec, 2015
1 Likes
HI wibadd,

All of these PHP warnings will probably go away if you set your site Error Reporting to System Default or to None.

The imagejpeg() warning is from the Quality Setting in the Image ReSize action - what do you have in that box?

The Strict Standards warning os from line 20 of some Custom Code - what might you have there?

Bob
wibadd 31 Dec, 2015
Hi Bob,

Thanks for the quick reply. The error reporting you are referring to - is that a setting in one of the PHP files and, if so, which one?

Attached is a screen shot of the events. I used the same code from my CF4 form, which works with no issue.

Thanks,
Chad
wibadd 31 Dec, 2015
I found the setting in the config file, changed it to None, and the errors are no longer display; however, the images is not being resized and copied. I've been searching the forums, but I'm at a loss. Any ideas what is going on?
GreyHead 01 Jan, 2016
Hi Chad,

You can set Error Reporting from the Site Admin.

I'm guessing that there may be a problem with the Quality setting for the Image ReSizer. What do you have there? Do you see anything helpful if you add a Debugger action?

And what do you have in your Custom Code that might be causing that message?

Bob
wibadd 01 Jan, 2016
Hi Bob,

I was able to find the setting in Joomla, and updated it. As for the image resizer, I found an extra '/' in the path and corrected it. Now I'm just trying to figure out the issue with the CURL action for AcyMailing, and also why one of the two email actions is not sending any of the template content and just the IP address.

Thanks,
Chad
This topic is locked and no more replies can be posted.