Skip Navigation

[Resolved] Select field doesn't display on admin edit page and warning is shown

This support ticket is created 5 years, 1 month 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
- 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/Karachi (GMT+05:00)

This topic contains 6 replies, has 2 voices.

Last updated by philippeK 5 years, 1 month ago.

Assisted by: Waqar.

Author
Posts
#1591667

On a custom post, in the WP admin list all posts: I get a notice:
Notice: Trying to access array offset on value of type null in ...(hidden)... wp-content/plugins/types/application/models/field/service.php on line 47

And then when I edit the custom post:
Warning : Invalid argument supplied for foreach() in ...(hidden)... wp-content/plugins/types-access/vendor/toolset/toolset-common/toolset-forms/classes/class.eforms.php on line 1097

I can't display a select field on the edit page

#1592293

Hi,

Thank you for contacting us and I'd be happy to assist.

During initial tests on my website, I couldn't reproduce this issue.

Can you please share temporary admin login details, so that I can see how this post type and it's custom fields are set up?
( please also specify the name of the custom post type )

Note: Your next reply will be private and though no changes will be made on your website, please make a complete backup copy, before sharing the access details.

regards,
Waqar

#1594207

Thank you for sharing these details.

I noticed that the "Introduction" field is a multi-lines type field and Toolset Types plugin doesn't support showing this type of field in the post list admin column.
hidden link
Screenshot: hidden link

Since the website is using the "Admin Columns Pro" plugin to show these field columns, any error/warning that is shown, as a result, should be reported to that plugin's official support team so that it can be fixed.

I hope this helps.

#1594293

ok, thanks, this resolve the first part, but there are still some errors on the edit part:
hidden link

Invalid argument supplied for foreach() in /var/www/clients/client2/web8/web/dev-Baf3Kh/wp-content/plugins/types-access/vendor/toolset/toolset-common/toolset-forms/classes/class.eforms.php on line 1097

#1594347

on the same page, under the relation information:
Warning: Invalid argument supplied for foreach() in /var/www/clients/client2/web8/web/dev-Baf3Kh/wp-content/plugins/types-access/vendor/toolset/toolset-common/toolset-forms/classes/class.eforms.php on line 1097

#1595697

Thanks for the update.

I noticed that in your theme's "functions.php" file, the "wpt_field_options" filter is being used.

But the function for that filter is returning an empty value, at line# 345 and 351:
( screenshot: hidden link )


return "";

Changing those lines to return "$options" should fix those warnings:


return $options;

#1595851

My issue is resolved now. Thank you!