Activating Snippets breaks on WordPress 6.3
-
When you click on the toggle switch to enable a snippet it will crash with the following error:
2023/09/03 18:26:46 [error] 565#565: *11996 FastCGI sent in stderr: "PHP message: PHP Fatal error: Uncaught TypeError: Code_Snippets\update_shared_network_snippets(): Argument #1 ($snippets) must be of type array, Code_Snippets\Snippet given, called in /var/www/html/wp-content/plugins/code-snippets/php/snippet-ops.php on line 371 and defined in /var/www/html/wp-content/plugins/code-snippets/php/snippet-ops.php:221
Stack trace:0 /var/www/html/wp-content/plugins/code-snippets/php/snippet-ops.php(371): Code_Snippets\update_shared_network_snippets()
1 /var/www/html/wp-content/plugins/code-snippets/php/class-list-table.php(785): Code_Snippets\activate_snippets()
2 /var/www/html/wp-content/plugins/code-snippets/php/class-list-table.php(948): Code_Snippets\List_Table->process_requested_actions()
3 /var/www/html/wp-content/plugins/code-snippets/php/admin-menus/class-manage-menu.php(118): Code_Snippets\List_Table->prepare_items()
4 /var/www/html/wp-includes/class-wp-hook.php(310): Code_Snippets\Man" while reading response header from upstream, client: 162.158.158.223, server: html, request: "POST /wp-admin/admin.php?page=snippets HTTP/2.0", upstream: "fastcgi://unix:/var/run/php/php-fpm.sock:", host: "html", referrer: "https://redacted.com/wp-admin/admin.php?page=snippets"
- The topic ‘Activating Snippets breaks on WordPress 6.3’ is closed to new replies.