• Resolved veerap

    (@veerap)


    Getting in PHP Notice from version 7.0.1:
    PHP Notice:  Function add_submenu_page was called <strong>incorrectly</strong>. The seventh parameter passed to <code>add_submenu_page()</code> should be numeric representing menu position.

    LLMS_Core->add_admin_menu(”)
    /wp-content/plugins/website-llms-txt/includes/class-llms-core.php:224

    Maybe should be fixed to the next version.

    Supported parameters: https://developer.wordpress.org/reference/functions/add_submenu_page/

Viewing 1 replies (of 1 total)
  • Plugin Author Pavlo Samsonov

    (@samsonovteamwork)

    Hi @veerap,

    Thank you for pointing this out and providing a detailed report!
    ✅ This issue with the add_submenu_page() 7th parameter (where an icon string was mistakenly passed instead of a numeric position) has already been fixed in version 7.1.5 of the plugin.

    We now correctly pass an integer to comply with the WordPress documentation you linked — and the PHP notice no longer occurs even with WP_DEBUG enabled.

    If you update to the latest release, this problem should be resolved. Please let us know if you notice anything else.

    Thanks again for helping improve the plugin!

    Best regards,

    LLMs Plugin Support Team

Viewing 1 replies (of 1 total)

The topic ‘PHP Notice in version 7.0.1’ is closed to new replies.