Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Controls that save arrays cause PHP Notices #1199

Closed
aristath opened this issue Dec 11, 2016 · 0 comments
Closed

Controls that save arrays cause PHP Notices #1199

aristath opened this issue Dec 11, 2016 · 0 comments
Milestone

Comments

@aristath
Copy link
Contributor

Example:

PHP Notice:  Array to string conversion in /srv/www/wordpress-default/wp-includes/formatting.php on line 1025
PHP Stack trace:
PHP   1. {main}() /srv/www/wordpress-default/wp-admin/customize.php:0
PHP   2. do_action($tag = 'customize_controls_print_footer_scripts', $arg = *uninitialized*) /srv/www/wordpress-default/wp-admin/customize.php:208
PHP   3. WP_Hook->do_action($args = array (0 => '')) /srv/www/wordpress-default/wp-includes/plugin.php:453
PHP   4. WP_Hook->apply_filters($value = NULL, $args = array (0 => '')) /srv/www/wordpress-default/wp-includes/class-wp-hook.php:323
PHP   5. WP_Customize_Manager->customize_pane_settings('') /srv/www/wordpress-default/wp-includes/class-wp-hook.php:298
PHP   6. WP_Customize_Control->json() /srv/www/wordpress-default/wp-includes/class-wp-customize-manager.php:3590
PHP   7. Kirki_Control_Sortable->to_json() /srv/www/wordpress-default/wp-includes/class-wp-customize-control.php:322
PHP   8. WP_Customize_Control->to_json() /srv/www/wordpress-default/wp-content/plugins/kirki/controls/sortable/class-kirki-control-sortable.php:72
PHP   9. WP_Customize_Control->get_content() /srv/www/wordpress-default/wp-includes/class-wp-customize-control.php:304
PHP  10. WP_Customize_Control->maybe_render() /srv/www/wordpress-default/wp-includes/class-wp-customize-control.php:366
PHP  11. WP_Customize_Control->render() /srv/www/wordpress-default/wp-includes/class-wp-customize-control.php:401
PHP  12. WP_Customize_Control->render_content() /srv/www/wordpress-default/wp-includes/class-wp-customize-control.php:414
PHP  13. esc_attr($text = array (0 => 'option6', 1 => 'option1')) /srv/www/wordpress-default/wp-includes/class-wp-customize-control.php:611
PHP  14. wp_check_invalid_utf8($string = array (0 => 'option6', 1 => 'option1'), $strip = *uninitialized*) /srv/www/wordpress-default/wp-includes/formatting.php:3949
@aristath aristath modified the milestone: 3.0 Apr 23, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant