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
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
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.
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
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
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 )
Changing those lines to return "$options" should fix those warnings:
My issue is resolved now. Thank you!