Closed quantumJLBass closed 10 years ago
Can you let me know the steps I need to follow to reproduce the headers already sent ... I'm not sure how it would be possible $metaID can not exist. If it doesn't somehow, that would mean a fatal error/bug further up.
Ok, I see the issue ... I'm not removing this $metaID for custom meta fields from $results = cnMeta::get( 'entry', $id );
.
I need to run $results thru a loop using cnMeta::isPrivate()
to remove the custom meta fields before processing the update.
Related:
There seems to be an undefined index key
error on L412:
https://github.com/shazahm1/Connections/blob/develop/includes/admin/class.actions.php#L412
I think removing the custom fields prior to this will resolve this undefined index too.
Additionally, on L412 instead of doing an isPrivate check, simple do this instead:
if ( '_' == $row['key'][0] ) $row['key'] = substr( $row['key'], 1 );
I get a
no index
warning that induces an already header sent fatal error forhttps://github.com/shazahm1/Connections/blob/develop/includes/admin/class.actions.php#L419
and if I
to
it clears, although I would imagine there is a better way to clear that possibility. This can be introduced by accidentally leaving the custom meta name empty, so i'd think that a form validation can stop this from higher in the chain but would think it'd be good it kill it here too? Cheers - J