Support Forum » User Profile

Forum Replies Created

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • in reply to: Errors with debug logging turned on #15316
    Peter HannamPeter Hannam
    Participant

    All of the above errors occurred because there was an element missing from the properties array: 'fields' => array():

    
        $meta_boxes[] = array (
            'title' => 'Log Book',
            'id' => 'log-book',
            'post_types' => array(
                0 => 'log_book',
            ),
            'context' => 'normal',
            'priority' => 'high',
        'fields' => array()
        );
    

    I had an empty meta-box configured, as I wanted to use the front-end form for this type but only for the default WordPress editor/title.

    in reply to: Errors with debug logging turned on #15309
    Peter HannamPeter Hannam
    Participant

    Hi,

    For point 1, I was following your example here - and it would presumably not be possible to return the $meta_boxes variable as we've called die/exit.

    And I'm sorry but I don't understand your second point - I copied and pasted the output from the builder into my functions.php and then deleted the fieldset from the builder. How could I be missing fields? I'll delete everything and slowly reintroduce things to see if I can narrow the problem down.

    Thanks,
    Pete

Viewing 2 posts - 1 through 2 (of 2 total)