• Resolved digitalsmithy

    (@digitalsmithy)


    Great looking plugin, perfect for what I need except it doesn’t work with php8.

    The [qem] shortcode produces:

    Fatal error: Uncaught ErrorException: Undefined variable $cat_name

    Full error:

    Fatal error: Uncaught ErrorException: Undefined variable $cat_name in /Local Sites/examplesite/app/public/wp-content/plugins/quick-event-manager/legacy/qem-event-build-functions.php:822 Stack trace: #0 /Local Sites/examplesite/app/public/wp-content/plugins/quick-event-manager/legacy/qem-event-build-functions.php(822): OxyProps\Inc\HTTPRequest->error_handler(2, 'Undefined varia...', '...', 822) #1 /Local Sites/examplesite/app/public/wp-content/plugins/quick-event-manager/legacy/qem-event-build-functions.php(350): qem_build_event('field13', Array, Array, Array, Array, Array, Array) #2 /Local Sites/examplesite/app/public/wp-content/plugins/quick-event-manager/legacy/shortcodes/qem-qem.php(225): qem_event_construct_esc(Array) #3 /Local Sites/examplesite/app/public/wp-includes/shortcodes.php(355): qem_event_shortcode_esc(Array, '', 'qem') #4 [internal function]: do_shortcode_tag(Array) #5 /Local Sites/examplesite/app/public/wp-includes/shortcodes.php(227): preg_replace_callback('/\\[(\\[?)(qem)(?...', 'do_shortcode_ta...', '[qem]\n') #6 /Local Sites/examplesite/app/public/wp-includes/class-wp-hook.php(308): do_shortcode('[qem]\n') #7 /Local Sites/examplesite/app/public/wp-includes/plugin.php(205): WP_Hook->apply_filters('[qem]\n', Array) #8 /Local Sites/examplesite/app/public/wp-includes/post-template.php(255): apply_filters('the_content', '<!-- wp:shortco...') #9 /Local Sites/examplesite/app/public/wp-content/themes/bricks/template-parts/page.php(10): the_content() #10 /Local Sites/examplesite/app/public/wp-includes/template.php(785): require('...') #11 /Local Sites/examplesite/app/public/wp-includes/template.php(718): load_template('...', false, Array) #12 /Local Sites/examplesite/app/public/wp-includes/general-template.php(204): locate_template(Array, true, false, Array) #13 /Local Sites/examplesite/app/public/wp-content/themes/bricks/page.php(12): get_template_part('template-parts/...') #14 /Local Sites/examplesite/app/public/wp-includes/template-loader.php(106): include('...') #15 /Local Sites/examplesite/app/public/wp-blog-header.php(19): require_once('...') #16 /Local Sites/examplesite/app/public/index.php(17): require('...') #17 {main} thrown in /Local Sites/examplesite/app/public/wp-content/plugins/quick-event-manager/legacy/qem-event-build-functions.php on line 822

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

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Alan Fuller

    (@alanfuller)

    What version of PHP 8?

    Getting a FATAL on an undefined variable is a new one for me.

    Normally it is a WARNING

    Plugin Author Alan Fuller

    (@alanfuller)

    I suspect that you have set

    E_STRICT 

    somewhere in your setup rather than more permissive options, QEM has many undefined variables, these do not impact functionality and in ‘normal’ setup woudl just log as ‘warnings’.

    Over time ( a long time ) we will eliminate as many warnings as we can, but these are really for develoepr reference not user reference.

    Thread Starter digitalsmithy

    (@digitalsmithy)

    php8.1.9 – it’s on localhost. I will see about trying it on a live site and if it improves. Thanks for the quick response.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Doesn’t work with php8’ is closed to new replies.