WPManageNinja / easy-code-manager

The High-Performance File Based Code Snippet Plugin for WP
https://fluentsnippets.com
23 stars 8 forks source link

Error on upgrade to WordPress 6.64 / php 8.0 #29

Open Ian-MP opened 1 week ago

Ian-MP commented 1 week ago

The following error was generated following an upgrade to WordPress 6.64 / php 8.0. It does not seem to interfere (as far as I can tell) but I thought it worth mentioning. The error was generated by 'Query Monitor' and is as follows:

Attempt to read property "the_title" on null

wp-content/fluent-snippet-storage/1-misc-shortcodes.php:60
custom_postname_func()
wp-includes/shortcodes.php:434
do_shortcode_tag()
wp-includes/shortcodes.php:434
preg_replace_callback()
wp-includes/shortcodes.php:273
do_shortcode()
wp-includes/class-wp-hook.php:324
apply_filters('the_content')
wp-includes/rest-api/endpoints/class-wp-rest-posts-controller.php:1871
WP_REST_Posts_Controller->prepare_item_for_response()
wp-includes/rest-api/endpoints/class-wp-rest-posts-controller.php:575
WP_REST_Posts_Controller->get_item()
wp-includes/rest-api/class-wp-rest-server.php:1230
WP_REST_Server->respond_to_request()
wp-includes/rest-api/class-wp-rest-server.php:1063
WP_REST_Server->dispatch()
wp-includes/rest-api.php:547
rest_do_request()
wp-includes/rest-api.php:2925
rest_preload_api_request()
wp-includes/rest-api.php:2925
array_reduce()
wp-includes/block-editor.php:753
block_editor_rest_api_preload()
wp-admin/edit-form-blocks.php:80