Found a PHP Notice being produced when insert or update post is triggered. Appears to be a WPML conflict with the comments (which would false/disabled for this post type).
( ! ) Notice: is_singular was called <strong>incorrectly</strong>. Conditional query tags do not work before the query is run. Before then, they always return false. Please see <a href="https://codex.wordpress.org/Debugging_in_WordPress">Debugging in WordPress</a> for more information. (This message was added in version 3.1.0.) in C:\wamp64\www\local-advancedpostlist\wp-includes\functions.php on line 4147
--
1 | 0.2170 | 410608 | {main}( ) | ...\index.php:0
2 | 0.2201 | 465520 | require_once( 'C:\wamp64\www\local-advancedpostlist\wp-admin\admin.php' ) | ...\index.php:10
3 | 0.2205 | 480592 | require_once( 'C:\wamp64\www\local-advancedpostlist\wp-load.php' ) | ...\admin.php:31
4 | 0.2208 | 494136 | require_once( 'C:\wamp64\www\local-advancedpostlist\wp-config.php' ) | ...\wp-load.php:37
5 | 0.2214 | 598472 | require_once( 'C:\wamp64\www\local-advancedpostlist\wp-settings.php' ) | ...\wp-config.php:107
6 | 1.1227 | 69667008 | do_action( ???, ??? ) | ...\wp-settings.php:327
7 | 1.1227 | 69667384 | WP_Hook->do_action( ??? ) | ...\plugin.php:453
8 | 1.1227 | 69667384 | WP_Hook->apply_filters( ???, ??? ) | ...\class-wp-hook.php:310
9 | 1.3882 | 79015920 | APL_Core->action_check_version( ??? ) | ...\class-wp-hook.php:286
10 | 42.1933 | 80787368 | APL_Design->save_design( ) | ...\class-apl-core.php:367
11 | 42.1997 | 80790048 | APL_Design->update_design_post( ??? ) | ...\class-apl-design.php:254
12 | 42.2000 | 80708912 | wp_update_post( ???, ??? ) | ...\class-apl-design.php:334
13 | 42.2005 | 80711736 | wp_insert_post( ???, ??? ) | ...\post.php:3654
14 | 42.2223 | 80788800 | do_action( ???, ???, ???, ??? ) | ...\post.php:3581
15 | 42.2223 | 80789176 | WP_Hook->do_action( ??? ) | ...\plugin.php:453
16 | 42.2223 | 80789176 | WP_Hook->apply_filters( ???, ??? ) | ...\class-wp-hook.php:310
17 | 42.2287 | 80882608 | WPML_Admin_Post_Actions->save_post_actions( ???, ??? ) | ...\class-wp-hook.php:288
18 | 42.2305 | 80892968 | WPML_Admin_Post_Actions->after_save_post( ???, ???, ???, ??? ) | ...\wpml-admin-post-actions.class.php:104
19 | 42.2363 | 80900264 | WPML_Post_Synchronization->sync_with_translations( ???, ??? ) | ...\wpml-post-translation.class.php:246
20 | 42.2371 | 80905928 | comments_open( ??? ) | ...\wpml-post-synchronization.class.php:151
21 | 42.2372 | 80906376 | apply_filters( ???, ???, ??? ) | ...\comment-template.php:1206
22 | 42.2372 | 80906776 | WP_Hook->apply_filters( ???, ??? ) | ...\plugin.php:203
23 | 42.2372 | 80908168 | DWQA_Template->close_default_comment( ??? ) | ...\class-wp-hook.php:288
24 | 42.2372 | 80908168 | is_singular( ??? ) | ...\Template.php:975
25 | 42.2372 | 80908168 | _doing_it_wrong( ???, ???, ??? ) | ...\query.php:619
26 | 42.2374 | 80909256 | trigger_error ( ??? ) | ...\functions.php:4147
Found a PHP Notice being produced when insert or update post is triggered. Appears to be a WPML conflict with the comments (which would false/disabled for this post type).