• Resolved blastframe

    (@blastframe)


    Hello,
    When a plugin has an onboarding setup wizard and WP_DEBUG is set to true in wp-config.php, many notices appear saying get_current_page is called too early.

    Notice: get_current_page was called incorrectly. Current page retrieval should be called on or after the current_screen hook. Please see Debugging in WordPress for more information. (This message was added in version 0.16.0.) in C:\wamp64\www\blastframe\wp-includes\functions.php on line 5313

Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter blastframe

    (@blastframe)

    Call Stack
    #	Time	Memory	Function	Location
    1	0.0006	413176	{main}( )	...\index.php:0
    2	0.0008	413848	require_once( 'C:\wamp64\www\blastframe\wp-admin\admin.php' )	...\index.php:10
    3	1.2049	10590352	do_action( )	...\admin.php:175
    4	1.2049	10590728	WP_Hook->do_action( )	...\plugin.php:484
    5	1.2049	10590728	WP_Hook->apply_filters( )	...\class-wp-hook.php:316
    6	1.2133	10661432	AS_Admin_Setup_Wizard->setup_wizard( )	...\class-wp-hook.php:292
    7	1.2135	10687496	AS_Admin_Setup_Wizard->setup_wizard_header( )	...\class-as-admin-setup-wizard.php:113
    8	1.2166	10695664	do_action( )	...\class-as-admin-setup-wizard.php:133
    9	1.2166	10696040	WP_Hook->do_action( )	...\plugin.php:484
    10	1.2166	10696040	WP_Hook->apply_filters( )	...\class-wp-hook.php:316
    11	1.2191	10697328	Automattic\WooCommerce\Admin\Loader::remove_notices( )	...\class-wp-hook.php:292
    12	1.2191	10697328	Automattic\WooCommerce\Admin\Loader::is_admin_or_embed_page( )	...\Loader.php:928
    13	1.2191	10697328	Automattic\WooCommerce\Admin\Loader::is_admin_page( )	...\Loader.php:814
    14	1.2191	10697328	wc_admin_is_registered_page( )	...\Loader.php:821
    15	1.2191	10697328	Automattic\WooCommerce\Admin\PageController->is_registered_page( )	...\page-controller-functions.php:51
    16	1.2191	10697328	Automattic\WooCommerce\Admin\PageController->get_current_page( )	...\PageController.php:380
    17	1.2191	10697328	_doing_it_wrong( )	...\PageController.php:205
    18	1.2192	10698416	trigger_error ( )	...\functions.php:5313

    Hey there,

    Are seeing these messages when only WooCommerce and the Twenty Twenty theme are active? If so, please open up an issue at GitHub to let the developers know.

    https://github.com/woocommerce/woocommerce/issues/new/choose

    Thanks!

    Hi @blastframe,

    It’s been a while since we heard from you, so I’m marking this thread resolved. Hopefully, you’ve been able to resolve this, but if you haven’t, please open up a new topic and we’ll be happy to help out.

    Cheers

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘‘get_current_page’ was called incorrectly’ is closed to new replies.