Skip to content

Instantly share code, notes, and snippets.

@skorasaurus
Created September 22, 2022 17:01
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save skorasaurus/6506770a49bedff53876b962c1d29b16 to your computer and use it in GitHub Desktop.
Save skorasaurus/6506770a49bedff53876b962c1d29b16 to your computer and use it in GitHub Desktop.
callstack for
0.0010 363984 {main}( ) .../index.php:0
2 0.0011 365232 require_once( '/srv/www/case/public_html/wp-admin/admin.php ) .../index.php:10
3 0.0011 365936 require_once( '/srv/www/case/public_html/wp-load.php ) .../admin.php:34
4 0.0011 366408 require_once( '/srv/www/case/public_html/wp-config.php ) .../wp-load.php:50
5 0.0011 375264 require_once( '/srv/www/case/public_html/wp-settings.php ) .../wp-config.php:81
6 0.1405 2711512 do_action( $hook_name = 'init' ) .../wp-settings.php:598
7 0.1405 2711888 WP_Hook->do_action( $args = [0 => ''] ) .../plugin.php:476
8 0.1405 2711888 WP_Hook->apply_filters( $value = '', $args = [0 => ''] ) .../class-wp-hook.php:331
9 0.5006 3442520 create_block_my_test_case_block_init( '' ) .../class-wp-hook.php:307
10 0.5006 3442520 register_block_type( $block_type = '/srv/www/case/public_html/wp-content/plugins/my_test_case/build', $args = ??? ) .../my_test_case.php:24
11 0.5015 3442520 register_block_type_from_metadata( $file_or_folder = '/srv/www/case/public_html/wp-content/plugins/my_test_case/build', $args = [] ) .../blocks.php:391
12 0.5061 3493264 WP_Block_Type_Registry->register( $name = 'create-block/my_test_case', $args = ['api_version' => 2, 'title' => 'My Test Case', 'category' => 'widgets', 'icon' => 'smiley', 'description' => 'Example block scaffolded with Create Block tool.', 'supports' => ['html' => FALSE], 'editor_script' => 'create-block-my_test_case-editor-script', 'editor_style' => 'create-block-my_test_case-editor-style', 'style' => 'create-block-my_test_case-style'] ) .../blocks.php:366
13 0.5061 3493264 _doing_it_wrong( $function = 'WP_Block_Type_Registry::register', $message = 'Block type names must contain a namespace prefix. Example: my-plugin/my-custom-block-type', $version = '5.0.0' ) .../class-wp-block-type-registry.php:77
14 0.5061 3494352 trigger_error( $message = 'Function WP_Block_Type_Registry::register was called <strong>incorrectly</strong>. Block type names must contain a namespace prefix. Example: my-plugin/my-custom-block-type Please see <a href="https://wordpress.org/support/article/debugging-in-wordpress/">Debugging in WordPress</a> for more information. (This message was added in version 5.0.0.)', $error_type = 1024 ) .../functions.php:5831
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment