• Resolved Knut Sparhell

    (@knutsp)


    This nice plugin works, but with PHP 8.3 I get
    strpos(): Passing null to parameter #1 ($haystack) of type string is deprecated from
    wp-content/plugins/simple-google-icalendar-widget/includes/SimpleicalWidgetAdmin.php:34WaasdorpSoekhan\W\P\S\SimpleicalWidgetAdmin->simple_ical_admin_menu()

    `

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author bramwaas

    (@bramwaas)

    Hi Knut,

    Thank you for your comment.

    At first sight it seems to be this line of code:

    add_submenu_page(null, //parent slug

    where the null parameter should be a string.

    Maybe replacing null by ” is a solution, but I will come with an update soon.

    Regards Bram.

    Plugin Author bramwaas

    (@bramwaas)

    Hi Knut,

    following the WordPress documentation of add_submenu_page()

    $parent_slugstring required. The slug name for the parent menu (or the file name of a standard WordPress admin page).”

    I have changed the first parameter from null in ‘admin.php’ and in my test environment the Deprecation warnings are gone.

    I think that is a solution for this issue.

    I committed it as Version 2.4.2 to the plugin directory.

    Regards Bram

    • This reply was modified 6 months, 1 week ago by bramwaas.
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Deprecation warnings in PHP 8.3’ is closed to new replies.