Skip Navigation

[Resolved] After update to Types 3.2.1 and Views 2.7.1 causes array to string error

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

No supporters are available to work today on Toolset forum. Feel free to create tickets and we will handle it as soon as we are online. Thank you for your understanding.

Sun Mon Tue Wed Thu Fri Sat
- - 14:00 – 20:00 14:00 – 20:00 14:00 – 20:00 14:00 – 20:00 14:00 – 20:00
- - - - - - -

Supporter timezone: Asia/Ho_Chi_Minh (GMT+07:00)

This topic contains 1 reply, has 2 voices.

Last updated by jeffS-2 5 years, 11 months ago.

Assisted by: Beda.

Author
Posts
#1164143

I am trying to:
Update to Types 3.2.1 and Views 2.7.1

Using PHP 7.0.3 (PHP 5.6.20 does not display this error.)
I have WP_DEBUG enabled.

Instead, I got:
Notice: Array to string conversion in /app/public/wp-content/plugins/types/application/models/field/type/image/view/frontend.php on line 119
- and -
Notice: Array to string conversion in /app/public/wp-content/plugins/types/application/models/field/type/image/view/frontend.php on line 195

Any ideas?

Thanks,
Jeff
-----------------

#1164675

I see no such error on PHP 7.x or lower (or higher), when I use the latest Toolset Versions.
But your error points to images, and I see 3 errors for images reported (could not replicate):
https://toolset.com/forums/topic/please-enter-a-valid-url-address-pointing-to-the-file-4/#post-1164674
https://toolset.com/forums/topic/file-field-isnt-launching-a-file-upload-just-reloads-page/#post-1164666
https://toolset.com/forums/topic/file-upload-isnt-launching-a-dialog-box-just-reloads-page/

It might be those errors are similar to yours here.

I see you as well have not updated WordPress hence that is the first I have to ask (if it still happens after you update).
Then, if so, a duplicate and the steps you follow would help immensely to confirm the issue and fix it.
https://toolset.com/faq/provide-supporters-copy-site/