vkpsir
Forum Replies Created
Viewing 2 replies - 1 through 2 (of 2 total)
-
Yes, there is no error message on the user screen while making a reservation, but the issue is recorded in the error log. Yes, I noticed the same warning for your reservation as well.
Hello,
Here’s what I’ve got in the code:
<?php foreach( $fields as $fieldset => $contents ) : $fieldset_classes = isset( $contents['callback_args']['classes'] ) ? $contents['callback_args']['classes'] : array(); $legend_classes = isset( $contents['callback_args']['legend_classes'] ) ? $contents['callback_args']['legend_classes'] : array(); ?> <fieldset <?php echo rtb_print_element_class( $fieldset, $fieldset_classes ); ?>> <?php if ( !empty( $contents['legend'] ) ) : ?> <legend <?php echo rtb_print_element_class( '', $legend_classes ); ?>> <?php echo $contents['legend']; ?> </legend> <?php endif; ?> <?php foreach( $contents['fields'] as $slug => $field ) { $callback_args = empty( $field['callback_args'] ) ? array() : $field['callback_args']; if ( !empty( $field['required'] ) ) { $callback_args = array_merge( $callback_args, array( 'required' => $field['required'] ) ); } if ( !empty( $field['empty_option'] ) ) { $callback_args = array_merge( $callback_args, array( 'empty_option' => $field['empty_option'] ) ); } <strong>call_user_func( $field['callback'], $slug, $field['title'], $field['request_input'], $callback_args );</strong> } ?> </fieldset> <?php endforeach; ?>The line which has
call_user_funcis the one where I’m getting an error.
Please see the following page, although it does not show any error on the console:
https://jaynepal.lu/booking/- This reply was modified 4 years, 1 month ago by vkpsir.
Viewing 2 replies - 1 through 2 (of 2 total)