wp-user-manager icon indicating copy to clipboard operation
wp-user-manager copied to clipboard

Warning on multicheckbox - get_formatted_output()

Open apermo opened this issue 4 years ago • 0 comments

Disclaimer: I'm not sure if this issue was caused by WPUM alone, or if there was something messed up due to me messing with data in the background. But I found a solution to fix this. Pull request is on it's way.


( ! ) Warning: Invalid argument supplied for foreach() in /public_html/wp-content/plugins/wp-user-manager/includes/wpum-fields/types/class-wpum-field-multicheckbox.php on line 44

1 | 0.0043 | 412688 | {main}( ) | …/index.php:0 2 | 0.0054 | 414256 | require( ‘/public_html/wp-blog-header.php’ ) | …/index.php:17 3 | 3.1775 | 52748120 | require_once( ‘/public_html/wp-includes/template-loader.php’ ) | …/wp-blog-header.php:19 4 | 3.1800 | 52819560 | include( ‘/public_html/wp-content/themes/cyan/template-user-page.php’ ) | …/template-loader.php:106 5 | 3.5671 | 53597824 | do_action( ) | …/template-user-page.php:22 6 | 3.5671 | 53598200 | WP_Hook->do_action( ) | …/plugin.php:484 7 | 3.5671 | 53598200 | WP_Hook->apply_filters( ) | …/class-wp-hook.php:311 8 | 3.5691 | 53652224 | Cyan_Templates_Page::content( ) | …/class-wp-hook.php:287 9 | 3.5691 | 53652224 | Cyan_Theme->get_template_part( ) | …/templates.page.php:35 10 | 3.5691 | 53652272 | get_template_part( ) | …/functions.php:355 11 | 3.5692 | 53652816 | locate_template( ) | …/general-template.php:204 12 | 3.5692 | 53652976 | load_template( ) | …/template.php:676 13 | 3.5694 | 53654584 | require( '/public_html/wp-content/themes/cyan/template-parts/page-content.php’ ) | …/template.php:732 14 | 3.5694 | 53654584 | the_content( ) | …/page-content.php:2 15 | 3.5697 | 53654616 | apply_filters( ) | …/post-template.php:253 16 | 3.5697 | 53655024 | WP_Hook->apply_filters( ) | …/plugin.php:212 17 | 3.5697 | 53656752 | do_blocks( ) | …/class-wp-hook.php:287 18 | 3.5698 | 53657552 | render_block( ) | …/blocks.php:760 19 | 3.5699 | 53658120 | WP_Block->render( ) | …/blocks.php:722 20 | 3.5699 | 53659192 | WPUserManagerBlocks\Blocks\ProfilePage->render_callback( ) | …/class-wp-block.php:221 21 | 3.5699 | 53659192 | call_user_func:{/public_html/wp-content/plugins/wp-user-manager/vendor/wp-user-manager/wpum-blocks/includes/classes/Blocks/AbstractBlock.php:33} ( ) | …/AbstractBlock.php:33 22 | 3.5699 | 53659192 | wpum_profile( ) | …/AbstractBlock.php:33 23 | 3.5719 | 53687424 | WPUM_Template_Loader->get_template_part( ) | …/shortcodes.php:325 24 | 3.5719 | 53687952 | WPUM_Template_Loader->locate_template( ) | …/class-gamajo-template-loader.php:118 25 | 3.5721 | 53690600 | load_template( ) | …/class-gamajo-template-loader.php:255 26 | 3.5724 | 53693328 | require( ‘/public_html/wp-content/themes/cyan/wpum/profile.php’ ) | …/template.php:732 27 | 3.5725 | 53693744 | WPUM_Template_Loader->get_template_part( ) | …/profile.php:30 28 | 3.5725 | 53694296 | WPUM_Template_Loader->locate_template( ) | …/class-gamajo-template-loader.php:118 29 | 3.5728 | 53695816 | load_template( ) | …/class-gamajo-template-loader.php:255 30 | 3.5731 | 53711576 | require( ‘/public_html/wp-content/themes/cyan/wpum/profiles/about.php’ ) | …/template.php:732 31 | 3.5731 | 53711576 | wpum_has_profile_fields( ) | …/about.php:23 32 | 3.5731 | 53711832 | WPUM_Fields_Query->__construct( ) | …/wpum-fields-functions.php:316 33 | 3.5732 | 53712584 | WPUM_DB_Fields_Groups->get_groups( ) | …/class-wpum-fields-query.php:106 34 | 3.5742 | 53714008 | WPUM_DB_Fields->get_fields( ) | …/class-wpum-db-fields-groups.php:235 35 | 3.6470 | 53721544 | WPUM_Field->set_user_meta( ) | …/class-wpum-db-fields.php:231 36 | 3.8044 | 53845656 | WPUM_Field->format_value( ) | …/class-wpum-field.php:635 37 | 3.8044 | 53845656 | WPUM_Field_Multicheckbox->get_formatted_output( ) | …/class-wpum-field.php:658

apermo avatar Feb 10 '21 07:02 apermo