Title: Doesn&#8217;t work with php8
Last modified: July 21, 2023

---

# Doesn’t work with php8

 *  Resolved [digitalsmithy](https://wordpress.org/support/users/digitalsmithy/)
 * (@digitalsmithy)
 * [2 years, 10 months ago](https://wordpress.org/support/topic/doesnt-work-with-php8-3/)
 * 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:
 *     ```wp-block-code
       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](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fdoesnt-work-with-php8-3%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

Viewing 3 replies - 1 through 3 (of 3 total)

 *  [Alan Fuller](https://wordpress.org/support/users/alanfuller/)
 * (@alanfuller)
 * [2 years, 10 months ago](https://wordpress.org/support/topic/doesnt-work-with-php8-3/#post-16912906)
 * What version of PHP 8?
   Getting a FATAL on an undefined variable is a new one 
   for me.Normally it is a WARNING
 *  [Alan Fuller](https://wordpress.org/support/users/alanfuller/)
 * (@alanfuller)
 * [2 years, 10 months ago](https://wordpress.org/support/topic/doesnt-work-with-php8-3/#post-16912973)
 * I suspect that you have set
 *     ```wp-block-code
       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](https://wordpress.org/support/users/digitalsmithy/)
 * (@digitalsmithy)
 * [2 years, 10 months ago](https://wordpress.org/support/topic/doesnt-work-with-php8-3/#post-16913373)
 * 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.

 * ![](https://ps.w.org/quick-event-manager/assets/icon-256x256.png?rev=3318950)
 * [Quick Event Manager](https://wordpress.org/plugins/quick-event-manager/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/quick-event-manager/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/quick-event-manager/)
 * [Active Topics](https://wordpress.org/support/plugin/quick-event-manager/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/quick-event-manager/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/quick-event-manager/reviews/)

 * 3 replies
 * 2 participants
 * Last reply from: [digitalsmithy](https://wordpress.org/support/users/digitalsmithy/)
 * Last activity: [2 years, 10 months ago](https://wordpress.org/support/topic/doesnt-work-with-php8-3/#post-16913373)
 * Status: resolved