gutenberg icon indicating copy to clipboard operation
gutenberg copied to clipboard

Footnotes content is not pasted when copied via `Copy all blocks` and pasted into a new post

Open zdenys opened this issue 1 year ago • 7 comments

Description

When I copied all blocks from a post containing the Footnotes block into a new post, all the content was pasted except for the content of the footnotes. Initially commented here:

  • https://github.com/WordPress/gutenberg/issues/57152#issuecomment-1898298375

Step-by-step reproduction instructions

  1. Create a post and add a few footnotes
  2. Copy the entire content via Copy all blocks (via the three-dots menu)
  3. Paste into a new post
  4. Notice that the Footones block is pasted but not the actual text of the footnotes

Screenshots, screen recording, code snippet

https://github.com/WordPress/gutenberg/assets/39308239/1655b2dd-7ee9-49d7-9f4a-b275f5f42537

Environment info

Gutenberg 17.5.0 WordPress 6.4.2

### wp-core ###

version: 6.4.2
site_language: en_US
user_language: en_US
timezone: +00:00
permalink: /%year%/%monthnum%/%day%/%postname%/
https_status: true
multisite: false
user_registration: 0
blog_public: 1
default_comment_status: open
environment_type: production
user_count: 1
dotorg_communication: true

### wp-paths-sizes ###

wordpress_path: /srv/users/useradaed232/apps/useradaed232/public
wordpress_size: 54.02 MB (56648913 bytes)
uploads_path: /srv/users/useradaed232/apps/useradaed232/public/wp-content/uploads
uploads_size: 0.00 B (0 bytes)
themes_path: /srv/users/useradaed232/apps/useradaed232/public/wp-content/themes
themes_size: 12.06 MB (12644846 bytes)
plugins_path: /srv/users/useradaed232/apps/useradaed232/public/wp-content/plugins
plugins_size: 49.78 MB (52200684 bytes)
database_size: 3.13 MB (3276800 bytes)
total_size: 118.99 MB (124771243 bytes)

### wp-active-theme ###

name: Twenty Twenty-Four (twentytwentyfour)
version: 1.0
author: the WordPress team
author_website: https://wordpress.org
parent_theme: none
theme_features: core-block-patterns, post-thumbnails, responsive-embeds, editor-styles, html5, automatic-feed-links, widgets-block-editor, block-templates
theme_path: /srv/users/useradaed232/apps/useradaed232/public/wp-content/themes/twentytwentyfour
auto_update: Disabled

### wp-themes-inactive (2) ###

Twenty Twenty-Three: version: 1.3, author: the WordPress team, Auto-updates disabled
Twenty Twenty-Two: version: 1.6, author: the WordPress team, Auto-updates disabled

### wp-plugins-active (3) ###

Companion Plugin: version: 1.30, author: Osk, Auto-updates disabled
Gutenberg: version: 17.5.0, author: Gutenberg Team, Auto-updates disabled
Jetpack: version: 13.0, author: Automattic, Auto-updates disabled

### wp-plugins-inactive (2) ###

Akismet Anti-spam: Spam Protection: version: 5.3, author: Automattic - Anti-spam Team (latest version: 5.3.1), Auto-updates disabled
Hello Dolly: version: 1.7.2, author: Matt Mullenweg, Auto-updates disabled

### wp-media ###

image_editor: WP_Image_Editor_GD
imagick_module_version: Not available
imagemagick_version: Not available
imagick_version: Not available
file_uploads: 1
post_max_size: 1024M
upload_max_filesize: 512M
max_effective_size: 512 MB
max_file_uploads: 20
gd_version: bundled (2.1.0 compatible)
gd_formats: GIF, JPEG, PNG, WebP, BMP
ghostscript_version: 9.26

### wp-server ###

server_architecture: Linux 4.4.0-210-generic x86_64
httpd_software: Apache/2.4.58 (Unix) OpenSSL/1.0.2g
php_version: 8.0.30 64bit
php_sapi: fpm-fcgi
max_input_variables: 5000
time_limit: 30
memory_limit: 256M
max_input_time: -1
upload_max_filesize: 512M
php_post_max_size: 1024M
curl_version: 7.47.0 OpenSSL/1.0.2g
suhosin: false
imagick_availability: false
pretty_permalinks: true
htaccess_extra_rules: false
current: 2024-01-18T11:32:47+00:00
utc-time: Thursday, 18-Jan-24 11:32:47 UTC
server-time: 2024-01-18T11:32:46+00:00

### wp-database ###

extension: mysqli
server_version: 5.7.33-0ubuntu0.16.04.1-log
client_version: mysqlnd 8.0.30
max_allowed_packet: 268435456
max_connections: 500

### wp-constants ###

WP_HOME: undefined
WP_SITEURL: undefined
WP_CONTENT_DIR: /srv/users/useradaed232/apps/useradaed232/public/wp-content
WP_PLUGIN_DIR: /srv/users/useradaed232/apps/useradaed232/public/wp-content/plugins
WP_MEMORY_LIMIT: 40M
WP_MAX_MEMORY_LIMIT: 256M
WP_DEBUG: true
WP_DEBUG_DISPLAY: true
WP_DEBUG_LOG: true
SCRIPT_DEBUG: false
WP_CACHE: false
CONCATENATE_SCRIPTS: undefined
COMPRESS_SCRIPTS: undefined
COMPRESS_CSS: undefined
WP_ENVIRONMENT_TYPE: Undefined
WP_DEVELOPMENT_MODE: undefined
DB_CHARSET: utf8
DB_COLLATE: undefined

### wp-filesystem ###

wordpress: writable
wp-content: writable
uploads: writable
plugins: writable
themes: writable

### jetpack ###

site_id: false
ssl_cert: No
time_diff: false
version_option: 13.0:1705576597
old_version: 13.0:1705576597
public: Private
master_user: No master user set.
is_offline_mode: off
is_offline_mode_constant: off
current_user: #1 demo
tokens_set: None
blog_token: Not set.
user_token: Not set.
version: 13.0
jp_plugin_dir: /srv/users/useradaed232/apps/useradaed232/public/wp-content/plugins/jetpack/
plan: free
protect_header: false
full_sync: {"started":"Thu, 01 Jan 1970 00:00:00 +0000","finished":"Thu, 01 Jan 1970 00:00:00 +0000","progress":[],"config":[]}
sync_size: undefined
sync_lag: 0 seconds
full_sync_size: undefined
full_sync_lag: 0 seconds
idc_urls: {"home":"https:\/\/formal-lizard.jurassic.ninja","siteurl":"https:\/\/formal-lizard.jurassic.ninja","WP_HOME":"","WP_SITEURL":""}
idc_error_option: false
idc_optin: true
cxn_tests: All Pass.

Please confirm that you have searched existing issues in the repo.

Yes

Please confirm that you have tested with all plugins deactivated except Gutenberg.

Yes

zdenys avatar Jan 18 '24 11:01 zdenys

Hi, This issue has gone 30 days without any activity. This means it is time for a check-in to make sure it is still relevant. If you are still experiencing this issue with the latest versions, you can help the project by responding to confirm the problem and by providing any updated reproduction steps. Thanks for helping out.

github-actions[bot] avatar Feb 21 '24 00:02 github-actions[bot]

This is still reproducible.

zdenys avatar Feb 21 '24 06:02 zdenys

Hi, This issue has gone 30 days without any activity. This means it is time for a check-in to make sure it is still relevant. If you are still experiencing this issue with the latest versions, you can help the project by responding to confirm the problem and by providing any updated reproduction steps. Thanks for helping out.

github-actions[bot] avatar Mar 25 '24 00:03 github-actions[bot]

I was able to reproduce this using the provided instructions on v18.7.1.

stacimc avatar Jul 09 '24 21:07 stacimc

There was another report here: https://wordpress.org/support/topic/copy-all-blocks-does-not-copy-footnote-content/

I also tested and was able to replicate it. Gutenberg 18.7.1 WordPress 6.4.2 Chrome 126.0.6478.127

Copying & pasting works ok if pasting is done on the same post, but when you paste the clipboard content to a different post, the footnote content is missing.

If you paste the content on a post that previously had footnotes (but deleted), the old ones appear back even if you are pasting different ones.

naokomc avatar Jul 17 '24 03:07 naokomc

I confirm this problem still exists. I hope it gets some attention, as it is a serious problem on sites that rely on footnotes.

jfagreg avatar Aug 11 '24 15:08 jfagreg

Reproduction Report

Description

This report validates whether the issue can be reproduced.

Environment

  • WordPress: 6.9-alpha-60301
  • PHP: 8.2.28
  • Server: Apache/2.4.62 (Debian)
  • Database: mysqli (Server: 11.8.2-MariaDB-ubu2404 / Client: mysqlnd 8.2.28)
  • Browser: Chrome 137.0.0.0
  • OS: macOS
  • Theme: Twenty Twenty-Five 1.2
  • MU Plugins:
    • Gutenberg Test Plugin, Disable Login Autofocus
    • Gutenberg Test Plugin, Disable Remote Patterns
    • Gutenberg Test Plugin, Enable Templates UI
    • Gutenberg Test Plugin, No-cache Headers
    • Gutenberg Test Plugin, Normalize Theme
    • server-timing.php
  • Plugins:
    • Gutenberg 21.0.0
    • Test Reports 1.2.0

Actual Results

  1. ✅ Error condition occurs (reproduced).

Supplemental Artifacts

https://github.com/user-attachments/assets/5903c84e-f0e3-4451-8cba-ff120a11e41d

shubhtoy avatar Jun 16 '25 10:06 shubhtoy

This bug is present in a site of mine.

Copy operations fail.

Also, the footnote field doesn't accept text in any other way either. Manually typing text results in no text output. This has been constant in every wordpress version I've used on my site. (I'm afraid I can't remember how long I've been running this particular site for).

The bug is present when all plugins are deactivated and the theme is changed.

Currently: WordPress Version 6.8.1 Theme: Bricks

sunilw avatar Jun 29 '25 23:06 sunilw

I think there have been enough reports, I've also tested on my end, and it's still happening today as expected. So its time to remove the Needs Testing tag and delve into the PR.

SirLouen avatar Jul 30 '25 11:07 SirLouen