• Fee

    (@wdfee)


    Hey there,
    I just updated to WP 5.3.0 in my local development environment, testing with your theme.
    There are some php notices and warning in admin screen, referring to function atomic_blocks_theme_getting_started_menu():

    Notice: add_submenu_page was called <strong>incorrectly</strong>. The seventh parameter passed to <code>add_submenu_page()</code> should be an integer representing menu position. Please see <a href="https://www.ads-software.com/support/article/debugging-in-wordpress/">Debugging in WordPress</a> for more information. (This message was added in version 5.3.0.) in [...]/wp-includes/functions.php on line 4903
    Call Stack
    #	Time	Memory	Function	Location
    1	0.0005	425192	{main}( )	.../options.php:0
    2	0.0008	472592	require_once( '[...]/wp-admin/admin.php' )	.../options.php:19
    3	0.2802	36388424	require( '[...]/wp-admin/menu.php' )	.../admin.php:153
    4	0.2844	36467192	require_once( '[...]/wp-admin/includes/menu.php' )	.../menu.php:326
    5	0.2886	36469400	do_action( )	.../menu.php:155
    6	0.2886	36469776	WP_Hook->do_action( )	.../plugin.php:478
    7	0.2886	36469776	WP_Hook->apply_filters( )	.../class-wp-hook.php:312
    8	0.2958	36568056	atomic_blocks_theme_getting_started_menu( )	.../class-wp-hook.php:288
    9	0.2958	36568056	add_theme_page( )	.../getting-started.php:56
    10	0.2958	36568056	add_submenu_page( )	.../plugin.php:1505
    11	0.2959	36568752	_doing_it_wrong( )	.../plugin.php:1385
    12	0.2960	36569584	trigger_error ( )	.../functions.php:4903

    …followed by three warnings (headers already sent), probably consequential warnings from above.
    Please inform your developers to fix that in next version.

Viewing 4 replies - 1 through 4 (of 4 total)
  • Theme Author atomicblocks

    (@atomicblocks)

    Hi there,

    Thanks for the heads up! We didn’t see this in our initial 5.3 testing, but we’ll take another look and fix up any issues like this. Stay tuned!

    Thread Starter Fee

    (@wdfee)

    Hi @atomicblocks theme authors, @wpengine @arrayhq @mindctrl,
    did you take a look then?
    Do you still maintain this theme? I’m wondering about this issue not being solved, other issues in the support forum not answered since months and no theme update since october?
    I know it’s hard to maintain a free theme and I really appreciate your work, this theme has been one of the best out there, but please give us an update about your plans.

    @wdfee can you tell me exactly how you’re triggering this notice? I don’t see it in my dev environment with debug enabled.

    Thread Starter Fee

    (@wdfee)

    it’s everywhere in wp-admin screen (not in frontend), still in WP 5.4, too.

    I now checked something on a complete new site: with the atomic blocks plugin installed and activated the warnings disappear. Disabling the plugin again throws the warnings with a dying page. Reloading the page then works again (with atomic blocks plugin enabled).
    On the other site, where I tested before, we do not use the plugin at all.
    So maybe there is a reference to the plugin inside the theme, that cannot be found if the plugin is disabled.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘php notice in wp-admin with WP 5.3.0 (debug mode)’ is closed to new replies.