You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Looks like this is an issue with the stricter type checking on newer PHP versions. Checking the type of both vars before running type-based comparisons should hopefully fix this.
I get the following error on PHP 8, 8.1 and 8.2. With PHP 7.4 everything is fine. The snippets list does not load anymore, I get a blank page.
AH01071: Got error 'PHP message: PHP Fatal error: Uncaught TypeError: Unsupported operand types: string - string in /var/www//var/www/wordpress/wp-content/pluginscode-snippets-pro/php/class-list-table.php:1092\nStack trace:\n#0 /var/www//var/www/wordpress/wp-content/pluginscode-snippets-pro/php/class-list-table.php(1150): Code_Snippets\\List_Table->get_sort_direction()\n#1 [internal function]: Code_Snippets\\List_Table->usort_reorder_callback()\n#2 /var/www//var/www/wordpress/wp-content/pluginscode-snippets-pro/php/class-list-table.php(1055): usort()\n#3 /var/www//var/www/wordpress/wp-content/pluginscode-snippets-pro/php/admin-menus/class-manage-menu.php(118): Code_Snippets\\List_Table->prepare_items()\n#4 /var/www/wordpress/wp-includes/class-wp-hook.php(308): Code_Snippets\\Manage_Menu->load()\n#5 /var/www/wordpress/wp-includes/class-wp-hook.php(332): WP_Hook->apply_filters()\n#6 /var/www/wordpress/wp-includes/plugin.php(517): WP_Hook->do_action()\n#7...', referer: https:/myblog.dev/wp-admin/admin.php?page=import-code-snippets&imported=50
The text was updated successfully, but these errors were encountered: