pods-framework / pods

The Pods Framework is a Content Development Framework for WordPress - It lets you create and extend content types that can be used for any project. Add fields of various types we've built in, or add your own with custom inputs, you have total control.
https://pods.io/
GNU General Public License v2.0
1.07k stars 264 forks source link

Some fields doesn't appear in admin edit area #3119

Closed gigi-budrio closed 6 years ago

gigi-budrio commented 9 years ago

it's so difficoult to say how i arrived here... so i try with a direct question.. :

file classes > PostMeta.php line 974

i find.. foreach ( $metabox[ 'args' ][ 'group' ][ 'fields' ] as $field ) {

but the edit admin area doesnt show some fields

i change with foreach ( $metabox[ 'args' ][ 'group' ]['pod'][ 'fields' ] as $field ) {

and the fields appear.....

did i find a code error...?! or am i in a very strange situation ?!?!

Thank's a lot..!!

sc0ttkclark commented 9 years ago

Changing that line to use ['pod'] array of fields returns ALL fields.

You are not seeing some fields by default because:

  1. You have a field hidden, under Edit Field > Advanced Field Options
  2. You have a field restricted by capability/role, under Edit Field > Advanced Field Options
gigi-budrio commented 9 years ago

Unfortunately none of the listed options are correct... (i have also check the $group[ 'fields' ] array before the permission filtering loop on line 888 in PostMeta.php and the new field is missing also before the filtering loop).

I use pods from a lot of time, but never seen that "error".

I try to add any fields.... But new fields never appear.. In the pod manage area it appear, but these don't appear in the pods instance editor for that pod...

If i delete an "old" field it doesn't desappear.. It only become a simple text field for every type of fileds.... The strange thing is that if i fill the simple text fields and update the pod.... The fields values are saved! (The relative fields are delete from pod manage).

I find in another resolved issue that the solution can be increase the memory limit, but it dont resolve the problem.

I hoped that the code line mentioned avove can be an "error".... Now i dont know where to find the problem..

Thanks..

gigi-budrio commented 9 years ago

For complete information:

on the same WP installation, i have 7other pods that have also 15/20 fields and which haven't this problem.. i have an other pods that have almost the same fields of the "at issue" pod, and i can add/remove fields like always whitout problems...

only this pod (CPT pod) have this anomaly..

Thanks again.

here the pod manage area where "Download Documents" appear (under "Presentation Variants")

schermata 2015-08-27 alle 09 03 41

here the "pod instance" editor area, where "Download Documents" doesn't appear (under "Presentation Variants"). schermata 2015-08-27 alle 09 13 43

it's the real example i need, but i tried with a lot of fields type with the same result.....

seems that $metabox[ 'args' ][ 'group' ][ 'fields' ] is not updated... or partially, because (like said before) if i delete an "old" field it appear again, but like a simple text field...

Thanks..

sc0ttkclark commented 9 years ago

On all three of those big relationship fields, try using the autocomplete option instead. I bet this could be a memory issue.

gigi-budrio commented 9 years ago

Nothing... :((

schermata 2015-08-27 alle 16 49 31

i also try to remove other metaboxes i added separately from pods.... but nothing changes..

It's so strange.

sc0ttkclark commented 9 years ago

Let me make sure I completely understand.

You're currently not seeing your "Download Documents" field? Can you screenshot what the settings are for each of the tabs in that field?

gigi-budrio commented 9 years ago

yes.. But it's the same if i try to add any field for any field type... The Download Documents field was only the concrete example i needed.. but i try with a lot of other fields...

these are the requested screenshots

schermata 2015-08-27 alle 17 05 55 schermata 2015-08-27 alle 17 05 47 schermata 2015-08-27 alle 17 05 18

i want to hightlight again another very strange behaviour..: when i delete one of the "old" fields (the fields the I correctly see in editor) p.e. "Suggest Variant" ... this field doesn't disappear from editor .... it only become a simple text field (and continue to store text values if some value is setted)...

sc0ttkclark commented 9 years ago

Try using Autocomplete for Download Documents too

sc0ttkclark commented 9 years ago

I just want to be sure we have all of the information here --

Your screenshot you sent previously https://cloud.githubusercontent.com/assets/3088694/9523792/eb104c9e-4cdb-11e5-849a-3d8082a46578.png

That shows you had all of your fields except the Download Documents field. Is that not the case?

gigi-budrio commented 9 years ago

I use autocomplete for download documents too.. In the trial above..

sc0ttkclark commented 9 years ago

The field options you sent a screenshot of for Download Documents said it was checkboxes.

gigi-budrio commented 9 years ago

... I change it when i just check that the problem persisted.. Then you say to do rhe screenshots.. And i did it with checkboxe resetted...

sc0ttkclark commented 9 years ago

Is there a way I could get access to the site to test and see it for myself?

https://pods.io/help/

gigi-budrio commented 9 years ago

i submit the credential and insert a reference to that issue... i only ask that someone starts to work... he sends me an email to the specified address.

PS:

Ops... i note that i didn't say where to find the interested pod... i specify it below:

the problematic pod (where new fields are not showed) is

there's a pod that is almost eguale to the dispenser, that is

Thanks again.

gigi-budrio commented 9 years ago

Any news ?

quasel commented 6 years ago

so much has changed ;) Sorry for the late reply, feel free to comment if you still have questions!