Problem with PHP 8.3.26 and 8.4.13
-
Hello! It seems that the plugin is not compatible with the PHP 8.3.26 and 8.4.13 version. When I activate Tickera on that version I get the fatal error:
Fatal error: Uncaught TypeError: array_merge(): Argument #2 must be of type array, null given in /var/www/vhosts/my_site/my_site/wp-content/plugins/tickera-event-ticketing-system/tickera.php:1758 Stack trace: #0 /var/www/vhosts/my_site/my_site/wp-content/plugins/tickera-event-ticketing-system/tickera.php(1758): array_merge() #1 /var/www/vhosts/my_site/my_site/wp-content/plugins/tickera-event-ticketing-system/tickera.php(1483): Tickera\TC->admin_capabilities() #2 /var/www/vhosts/my_site/my_site/wp-includes/class-wp-hook.php(324): Tickera\TC->add_required_capabilities() #3 /var/www/vhosts/my_site/my_site/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters() #4 /var/www/vhosts/my_site/my_site/wp-includes/plugin.php(517): WP_Hook->do_action() #5 /var/www/vhosts/my_site/my_site/wp-admin/admin.php(176): do_action() #6 /var/www/vhosts/my_site/my_site/wp-admin/index.php(10): require_once(‘…’) #7 {main} thrown in /var/www/vhosts/my_site/my_site/wp-content/plugins/tickera-event-ticketing-system/tickera.php on line 1758
However, you can just add the check to the tickera.php file to fix this problem: https://prnt.sc/4KmfAJem5eLe
return apply_filters( 'tc_admin_capabilities', array_merge( (array) $capabilities, is_array($role->capabilities) ? $role->capabilities : [] ) );Please consider adding the fix to the next plugin update. Thank you!
The page I need help with: [log in to see the link]
You must be logged in to reply to this topic.