Skip Navigation

[Resolved] Cred Warning (Warning: Creating default object from empty value)

This support ticket is created 4 years, 10 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.

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 9 replies, has 3 voices.

Last updated by Luo Yang 4 years, 8 months ago.

Assisted by: Minesh.

Author
Posts
#1523515

PZ
Zrzut ekranu z 2020-02-23 14-13-28.png
Zrzut ekranu z 2020-02-23 13-59-48.png

Tell us what you are trying to do?
I'm trying to add a new ad using CRED form. I see the warning in the frontend above the form:

Warning: Creating default object from empty value in /home/[...]/public_html/wp-content/plugins/cred-frontend-editor/application/controllers/field_translation/command/CRED_Translate_Image_Command.php on line 49

The warning first appeared after I uploaded photos to the form. Now it is visible on other CRED forms on my site.

#1524453

Minesh
Supporter

Languages: English (English )

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

Hello. Thank you for contacting the Toolset support.

Can you please make sure you are using the latest WordPress + Toolset plugins?

If you can share the debug information that will help me a lot to review your current setup. Could you please send me to debug information that will help us to investigate your issue.
=> https://toolset.com/faq/provide-debug-information-faster-support/

#1524729

PZ

Site was moved from one hosting account to another. At first there was no such warning.

#1525325

PZ

Hi, Minesh I shared debug in the previous post. Any progress?

#1526197

Minesh
Supporter

Languages: English (English )

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

I will require the duplicator package of your site.

Can you please send me a duplicator copy of your site and I'll try to deploy on my local test install and check I'm able to reproduce the issue.
=> https://toolset.com/faq/provide-supporters-copy-site/

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

#1526397

Minesh
Supporter

Languages: English (English )

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

Thank you for the details. Please allow me to download the package and I'll get back to you as soon as possible.

#1526399

PZ

You can download it. I give you full access. Thank you.

#1526645

Minesh
Supporter

Languages: English (English )

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

Thank you for sharing all the required information.

I'm able to reproduce this issue and the PHP Warning is displayed with only PHP version 7.4. I'll escalate this issue to our next level support. Please hold on for further updates.

#1528367

Minesh
Supporter

Languages: English (English )

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

Our Devs shared a hot-fix that should help you to resolve your issue.

Can you please follow the instructions given with the following link and try to resolve your issue.
=> https://toolset.com/errata/php-warning-when-using-toolset-forms-with-php-7-4/

#1580443

Hello,

It is fixed in Toolset Forms plugin version 2.5.6, you can download it here:
https://toolset.com/account/downloads/

Please test it and feedback if the problem is fixed, thanks