( ! ) Notice: Function register_post_type was called <strong>incorrectly</strong>. Post type names must be between 1 and 20 characters in length. Please see <a href="https://developer.wordpress.org/advanced-administration/debug/debug-wordpress/">Debugging in WordPress</a> for more information. (This message was added in version 4.2.0.) in /var/www/vhosts/goldcoastschools.com/wp-includes/functions.php on line 6085 |
Call Stack |
# | Time | Memory | Function | Location |
1 | 0.0001 | 378288 | {main}( ) | .../index.php:0 |
2 | 0.0001 | 378592 | require( '/var/www/vhosts/goldcoastschools.com/wp-blog-header.php ) | .../index.php:17 |
3 | 0.0001 | 379008 | require_once( '/var/www/vhosts/goldcoastschools.com/wp-load.php ) | .../wp-blog-header.php:13 |
4 | 0.0002 | 379808 | require_once( '/var/www/vhosts/goldcoastschools.com/wp-config.php ) | .../wp-load.php:50 |
5 | 0.0002 | 381440 | require_once( '/var/www/vhosts/goldcoastschools.com/wp-settings.php ) | .../wp-config.php:75 |
6 | 0.1398 | 10006360 | do_action( $hook_name = 'init' ) | .../wp-settings.php:700 |
7 | 0.1398 | 10006576 | WP_Hook->do_action( $args = [0 => ''] ) | .../plugin.php:517 |
8 | 0.1398 | 10006576 | WP_Hook->apply_filters( $value = '', $args = [0 => ''] ) | .../class-wp-hook.php:348 |
9 | 0.2232 | 12623296 | blog_register_prefix_posttype( '' ) | .../class-wp-hook.php:324 |
10 | 0.2232 | 12623296 | register_post_type( $post_type = 'news/construction-news', $args = ['labels' => ['name' => 'Construction News'], 'public' => TRUE, 'rewrite' => 'news/construction-news', 'show_in_rest' => TRUE] ) | .../blog_prefix.php:8 |
11 | 0.2232 | 12623344 | _doing_it_wrong( $function_name = 'register_post_type', $message = 'Post type names must be between 1 and 20 characters in length.', $version = '4.2.0' ) | .../post.php:1801 |
12 | 0.2232 | 12624176 | wp_trigger_error( $function_name = '', $message = 'Function register_post_type was called <strong>incorrectly</strong>. Post type names must be between 1 and 20 characters in length. Please see <a href="https://developer.wordpress.org/advanced-administration/debug/debug-wordpress/">Debugging in WordPress</a> for more information. (This message was added in version 4.2.0.)', $error_level = ??? ) | .../functions.php:6029 |
13 | 0.2234 | 12623864 | trigger_error( $message = 'Function register_post_type was called <strong>incorrectly</strong>. Post type names must be between 1 and 20 characters in length. Please see <a href="https://developer.wordpress.org/advanced-administration/debug/debug-wordpress/">Debugging in WordPress</a> for more information. (This message was added in version 4.2.0.)', $error_level = 1024 ) | .../functions.php:6085 |