• Resolved jaloux

    (@jaloux)


    Hi there.

    Love this plugin, thanks for allowing the free use :-). Are you guys going to maintain this plugin going forward?

    I ran into a critical error I’m hoping you can help me with. Here’s the error after installation:

    An error of type E_ERROR was caused in line 698 of the file /wp-content/plugins/court-reservation/admin/partials/courtres-settings.php. Error message: Uncaught TypeError: in_array(): Argument #2 ($haystack) must be of type array, bool given in /wp-content/plugins/court-reservation/admin/partials/courtres-settings.php:698
    Stack trace:
    #0 /wp-content/plugins/court-reservation/admin/partials/courtres-settings.php(698): in_array()
    #1 /wp-content/plugins/court-reservation/admin/class-courtres-admin.php(706): require_once('/home/zu5rolr2j...')
    #2 /wp-includes/class-wp-hook.php(303): Courtres_Admin->load_admin_settings()
    #3 /wp-includes/class-wp-hook.php(327): WP_Hook->apply_filters()
    #4 /wp-includes/plugin.php(470): WP_Hook->do_action()
    #5 /wp-admin/admin.php(259): do_action()
    #6 {main}
     thrown

    The page I need help with: [log in to see the link]

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

    (@jaloux)

    Here are a few array errors from log:

    [11-Oct-2022 10:36:38 UTC] PHP Warning:  foreach() argument must be of type array|object, bool given in /home/zu5rolr2ji24/public_html/courtone_dk/wp-content/plugins/court-reservation/public/partials/courtres-public-display.php on line 125
    [11-Oct-2022 10:36:38 UTC] PHP Warning:  Undefined array key "Single" in /home/zu5rolr2ji24/public_html/courtone_dk/wp-content/plugins/court-reservation/public/class-courtres-public.php on line 568
    [11-Oct-2022 10:36:38 UTC] PHP Warning:  Undefined array key "Double" in /home/zu5rolr2ji24/public_html/courtone_dk/wp-content/plugins/court-reservation/public/class-courtres-public.php on line 568
    [11-Oct-2022 10:36:38 UTC] PHP Warning:  Undefined array key "Championship" in /home/zu5rolr2ji24/public_html/courtone_dk/wp-content/plugins/court-reservation/public/class-courtres-public.php on line 568
    [11-Oct-2022 10:36:38 UTC] PHP Warning:  Undefined array key "Training" in /home/zu5rolr2ji24/public_html/courtone_dk/wp-content/plugins/court-reservation/public/class-courtres-public.php on line 568
    [11-Oct-2022 10:36:38 UTC] PHP Warning:  Undefined array key "Competition" in /home/zu5rolr2ji24/public_html/courtone_dk/wp-content/plugins/court-reservation/public/class-courtres-public.php on line 568
    Thread Starter jaloux

    (@jaloux)

    Ok, I see it is not compatible with PHP 8. Will you add support for PHP 8 in this plugin?

    Plugin Author webmuehle

    (@webmuehle)

    Hello!

    Thx for your messages. I haven’t tested with PHP 8 yet. Will add compatibility in one of the next updates.

    Best regards,
    Christoph

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Critical error, please can you help?’ is closed to new replies.