10up / distributor

Share content between your websites.
https://distributorplugin.com
GNU General Public License v2.0
633 stars 155 forks source link

Featured image/Thumbails distorted when distributing from Parent to Child in Multisite #622

Closed Siedlerchr closed 3 years ago

Siedlerchr commented 4 years ago

Describe the bug When you distribute a post from the parent to a child site, the featured image is distorted. Both parent and child have the same layout/theme and the same image settings.

Not sure if it's relevant, but we use polylang for German + English.

Steps to Reproduce

  1. Create a post with an image at the parent site
  2. Distribute the post to the sub site
  3. Compare the images
  4. See that the images are distored

Expected behavior The distributed post keeps the image ratio.

Screenshots Original site: wpOriginalPosts

Distributed posts: wpDistributedPosts

Environment information

Site Health Info: ``` ### wp-core ### version: 5.4.2 site_language: de_DE user_language: en_US timezone: +00:00 permalink: /%year%/%monthnum%/%postname%/ https_status: true user_registration: false default_comment_status: closed multisite: true user_count: 8 site_count: 5 network_count: 1 dotorg_communication: true ### wp-active-theme ### name: Septera-sic-child (septera-sic-child) version: 1.5.0 author: Cryout Creations author_website: http://www.cryoutcreations.eu parent_theme: none theme_features: editor-style, title-tag, automatic-feed-links, html5, post-formats, custom-background, custom-logo, menus, post-thumbnails, custom-header, responsive-embeds, editor-color-palette, editor-font-sizes, woocommerce, wc-product-gallery-zoom, wc-product-gallery-lightbox, wc-product-gallery-slider, widgets theme_path: /var/www/wordpress/html/wp-content/themes/septera-sic-child ### wp-themes-inactive (5) ### Septera: version: 1.5.0, author: Cryout Creations Twenty Nineteen: version: 1.6, author: the WordPress team Twenty Seventeen: version: 2.3, author: the WordPress team Twenty Sixteen: version: 2.1, author: the WordPress team Twenty Twenty: version: 1.4, author: the WordPress team ### wp-plugins-active (16) ### Blog2Social: Social Media Auto Post & Scheduler: version: 6.4.2, author: Blog2Social, Adenion Category Posts Widget: version: 4.9.5, author: TipTopPress Cookie Notice: version: 1.3.2, author: dFactory Cryout Serious Slider: version: 1.2.0, author: Cryout Creations Disable Block Editor FullScreen mode: version: 1.1.0, author: WP Tools Distributor: version: 1.6.0, author: 10up Inc. Email Encoder - Protect Email Addresses: version: 2.0.8, author: Ironikus Force Regenerate Thumbnails: version: 2.0.6, author: Pedro Elsner MultiSite Clone Duplicator: version: 1.5.3, author: Julien OGER, Pierre DARGHAM, David DAUGREILH, GLOBALIS media systems Polylang: version: 2.7.4, author: WP SYNTEX Redirection: version: 4.8, author: John Godley WordPress Importer: version: 0.7, author: wordpressdotorg WP-Matomo: version: 1.0.22, author: André Bräkling WP Mail SMTP: version: 2.2.1, author: WPForms WP SVG images: version: 3.2, author: KubiQ Yoast Duplicate Post: version: 3.2.5, author: Enrico Battocchi & Team Yoast ### wp-plugins-inactive (4) ### Akismet Anti-Spam: version: 4.1.6, author: Automattic Hello Dolly: version: 1.7.2, author: Matt Mullenweg MailPoet 3 (New): version: 3.47.11, author: MailPoet WP Maintenance Mode: version: 2.2.4, author: Designmodo ### wp-media ### image_editor: WP_Image_Editor_GD imagick_module_version: Not available imagemagick_version: Not available gd_version: 2.2.5 ghostscript_version: not available ### wp-server ### server_architecture: Linux 4.15.0-112-generic x86_64 httpd_software: Apache/2.4.29 (Ubuntu) php_version: 7.2.24-0ubuntu0.18.04.6 64bit php_sapi: apache2handler max_input_variables: 1000 time_limit: 30 memory_limit: 256M max_input_time: 60 upload_max_size: 256M php_post_max_size: 8M curl_version: 7.58.0 OpenSSL/1.1.1 suhosin: false imagick_availability: false htaccess_extra_rules: false ### wp-database ### extension: mysqli server_version: 10.1.44-MariaDB-0ubuntu0.18.04.1 client_version: mysqlnd 5.0.12-dev - 20150407 - $Id: 3591daad22de08524295e1bd073aceeff11e6579 $ ### wp-constants ### WP_HOME: undefined WP_SITEURL: undefined WP_CONTENT_DIR: /var/www/wordpress/html/wp-content WP_PLUGIN_DIR: /var/www/wordpress/html/wp-content/plugins WP_MAX_MEMORY_LIMIT: 256M WP_DEBUG: false WP_DEBUG_DISPLAY: true WP_DEBUG_LOG: true SCRIPT_DEBUG: true WP_CACHE: false CONCATENATE_SCRIPTS: undefined COMPRESS_SCRIPTS: undefined COMPRESS_CSS: undefined WP_LOCAL_DEV: undefined DB_CHARSET: utf8mb4 DB_COLLATE: undefined ### wp-filesystem ### wordpress: writable wp-content: writable uploads: writable plugins: writable themes: writable ### wp_mail_smtp ### version: 2.2.1 license_key_type: lite debug: Mailer: Default (none) PHPMailer was able to connect to SMTP server but failed while trying to send an email.. Mailer: Standard (keine) PHPMailer was able to connect to SMTP server but failed while trying to send an email.. Mailer: WordPress-Standard (keins) PHPMailer was able to connect to SMTP server but failed while trying to send an email. db_tables: wp_wpmailsmtp_tasks_meta ### distributor ### 0: 1.6.0 1: Override Author Byline: Yes Media Handling: Featured image only 2: - Last updated: 2020-07-13 13:48:20 3: N/A ```
jeffpaul commented 4 years ago

@Siedlerchr thanks for reporting that and for providing the Site Health Info. Can you confirm if that's for the origin or remote site and then provide the similar output from Site Health Info from the other site to compare and see if something's different between those sites?

jeffpaul commented 4 years ago

@Siedlerchr Can you confirm if that's for the origin or remote site and then provide the similar output from Site Health Info from the other site to compare and see if something's different between those sites?

Siedlerchr commented 4 years ago

@jeffpaul The root site and the sub site are in the same multisite network and use the same theme and layout

Root site:

### wp-core ###

version: 5.5.1
site_language: de_DE
user_language: de_DE
timezone: +02:00
permalink: /%year%/%monthnum%/%postname%/
https_status: true
multisite: true
user_registration: false
blog_public: 1
default_comment_status: closed
environment_type: production
user_count: 8
site_count: 5
network_count: 1
dotorg_communication: true

### wp-active-theme ###

name: Septera-sic-child (septera-sic-child)
version: 1.5.0
author: Cryout Creations
author_website: http://www.cryoutcreations.eu
parent_theme: none
theme_features: core-block-patterns, editor-style, title-tag, automatic-feed-links, html5, post-formats, custom-background, custom-logo, menus, post-thumbnails, custom-header, responsive-embeds, editor-color-palette, editor-font-sizes, woocommerce, wc-product-gallery-zoom, wc-product-gallery-lightbox, wc-product-gallery-slider, widgets
theme_path: /var/www/wordpress/html/wp-content/themes/septera-sic-child
auto_update: Deaktiviert

### wp-themes-inactive (5) ###

Septera: version: 1.5.0, author: Cryout Creations,Automatische Aktualisierungen deaktiviert
Twenty Nineteen: version: 1.7, author: WordPress-Team,Automatische Aktualisierungen deaktiviert
Twenty Seventeen: version: 2.4, author: WordPress-Team,Automatische Aktualisierungen deaktiviert
Twenty Sixteen: version: 2.2, author: WordPress-Team,Automatische Aktualisierungen deaktiviert
Twenty Twenty: version: 1.5, author: WordPress-Team,Automatische Aktualisierungen deaktiviert

### wp-plugins-active (16) ###

Blog2Social: Social Media Auto Post & Scheduler: version: 6.4.2, author: Blog2Social, Adenion, Automatische Aktualisierungen deaktiviert
Category Posts Widget: version: 4.9.5, author: TipTopPress, Automatische Aktualisierungen deaktiviert
Cookie Notice: version: 1.3.2, author: dFactory, Automatische Aktualisierungen deaktiviert
Cryout Serious Slider: version: 1.2.0, author: Cryout Creations, Automatische Aktualisierungen deaktiviert
Disable Block Editor FullScreen mode: version: 1.2.0, author: WP Tools, Automatische Aktualisierungen deaktiviert
Distributor: version: 1.6.0, author: 10up Inc., Automatische Aktualisierungen deaktiviert
Email Encoder - Protect Email Addresses: version: 2.0.8, author: Ironikus, Automatische Aktualisierungen deaktiviert
Force Regenerate Thumbnails: version: 2.0.6, author: Pedro Elsner, Automatische Aktualisierungen deaktiviert
MultiSite Clone Duplicator: version: 1.5.3, author: Julien OGER, Pierre DARGHAM, David DAUGREILH, GLOBALIS media systems, Automatische Aktualisierungen deaktiviert
Polylang: version: 2.8, author: WP SYNTEX (latest version: 2.8.1), Automatische Aktualisierungen deaktiviert
Redirection: version: 4.8, author: John Godley, Automatische Aktualisierungen deaktiviert
WordPress Importer: version: 0.7, author: wordpressdotorg, Automatische Aktualisierungen deaktiviert
WP-Matomo: version: 1.0.22, author: André Bräkling, Automatische Aktualisierungen deaktiviert
WP Mail SMTP: version: 2.3.1, author: WPForms, Automatische Aktualisierungen deaktiviert
WP SVG images: version: 3.2, author: KubiQ, Automatische Aktualisierungen deaktiviert
Yoast Duplicate Post: version: 3.2.5, author: Enrico Battocchi & Team Yoast, Automatische Aktualisierungen deaktiviert

### wp-plugins-inactive (4) ###

Akismet Anti-Spam: version: 4.1.6, author: Automattic, Automatische Aktualisierungen deaktiviert
Hello Dolly: version: 1.7.2, author: Matt Mullenweg, Automatische Aktualisierungen deaktiviert
MailPoet 3 (New): version: 3.48.0, author: MailPoet (latest version: 3.49.1), Automatische Aktualisierungen deaktiviert
WP Maintenance Mode: version: 2.2.4, author: Designmodo, Automatische Aktualisierungen deaktiviert

### wp-media ###

image_editor: WP_Image_Editor_GD
imagick_module_version: Nicht verfügbar
imagemagick_version: Nicht verfügbar
file_uploads: File uploads is turned off
post_max_size: 8M
upload_max_filesize: 256M
max_effective_size: 8 MB
max_file_uploads: 20
gd_version: 2.2.5
ghostscript_version: not available

### wp-server ###

server_architecture: Linux 4.15.0-112-generic x86_64
httpd_software: Apache/2.4.29 (Ubuntu)
php_version: 7.2.24-0ubuntu0.18.04.6 64bit
php_sapi: apache2handler
max_input_variables: 1000
time_limit: 30
memory_limit: 128M
admin_memory_limit: 256M
max_input_time: 60
upload_max_filesize: 256M
php_post_max_size: 8M
curl_version: 7.58.0 OpenSSL/1.1.1
suhosin: false
imagick_availability: false
pretty_permalinks: true
htaccess_extra_rules: false

### wp-database ###

extension: mysqli
server_version: 10.1.44-MariaDB-0ubuntu0.18.04.1
client_version: mysqlnd 5.0.12-dev - 20150407 - $Id: $

### wp-constants ###

WP_HOME: undefined
WP_SITEURL: undefined
WP_CONTENT_DIR: /var/www/wordpress/html/wp-content
WP_PLUGIN_DIR: /var/www/wordpress/html/wp-content/plugins
WP_MAX_MEMORY_LIMIT: 256M
WP_DEBUG: false
WP_DEBUG_DISPLAY: true
WP_DEBUG_LOG: true
SCRIPT_DEBUG: true
WP_CACHE: false
CONCATENATE_SCRIPTS: undefined
COMPRESS_SCRIPTS: undefined
COMPRESS_CSS: undefined
WP_LOCAL_DEV: undefined
DB_CHARSET: utf8mb4
DB_COLLATE: undefined

### wp-filesystem ###

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

### wp_mail_smtp ###

version: 2.3.1
license_key_type: lite
debug: Mailer: Default (none)
PHPMailer was able to connect to SMTP server but failed while trying to send an email.. Mailer: Standard (keine)
PHPMailer was able to connect to SMTP server but failed while trying to send an email.. Mailer: WordPress-Standard (keins)
PHPMailer was able to connect to SMTP server but failed while trying to send an email.
db_tables: wp_wpmailsmtp_tasks_meta

### distributor ###

0: 1.6.0
1: 
    Override Author Byline: Yes
    Media Handling: Featured image only
2: 

### pll_options ###

browser: 1
rewrite: 1
hide_default: 1
force_lang: 0
redirect_lang: 1
media_support: 0
sync: post_date, menu_order, _thumbnail_id
post_types: 0
taxonomies: 0
domains: 0
version: 2.8
default_lang: de
primary: de => 42 | en => 40
sidebar: de => 0 | en => 0
footer: de => 38 | en => 39
socials: de => 41 | en => 41
previous_version: 2.7.4

### pll_language_de ###

term_id: 43
name: DE
slug: de
term_group: 0
term_taxonomy_id: 43
count: 54
tl_term_id: 44
tl_term_taxonomy_id: 44
tl_count: 4
locale: de_DE
is_rtl: 0
w3c: de-DE
facebook: de_DE
flag_url: example.com/wp-content/plugins/polylang/flags/de.png
home_url: example.com/
search_url: example.com/
mo_id: 1822
page_on_front: 1798
page_for_posts: 0
flag_code: de

### pll_language_en ###

term_id: 46
name: EN
slug: en
term_group: 0
term_taxonomy_id: 46
count: 45
tl_term_id: 47
tl_term_taxonomy_id: 47
tl_count: 4
locale: en_GB
is_rtl: 0
w3c: en-GB
facebook: en_GB
flag_url: example.com/wp-content/plugins/polylang/flags/gb.png
home_url: example.com/en/
search_url: example.com/en/
mo_id: 1823
page_on_front: 879
page_for_posts: 0
flag_code: gb

Sub Site:

### wp-core ###

version: 5.5.1
site_language: de_DE
user_language: de_DE
timezone: Europe/Berlin
permalink: /%year%/%monthnum%/%day%/%postname%/
https_status: true
multisite: true
user_registration: false
blog_public: 1
default_comment_status: closed
environment_type: production
user_count: 8
site_count: 5
network_count: 1
dotorg_communication: true

### wp-active-theme ###

name: Septera (septera)
version: 1.5.0
author: Cryout Creations
author_website: http://www.cryoutcreations.eu
parent_theme: none
theme_features: core-block-patterns, editor-style, title-tag, automatic-feed-links, html5, post-formats, custom-background, custom-logo, menus, post-thumbnails, custom-header, responsive-embeds, editor-color-palette, editor-font-sizes, woocommerce, wc-product-gallery-zoom, wc-product-gallery-lightbox, wc-product-gallery-slider, widgets
theme_path: /var/www/wordpress/html/wp-content/themes/septera
auto_update: Deaktiviert

### wp-themes-inactive (5) ###

Septera-sic-child: version: 1.5.0, author: Cryout Creations,Automatische Aktualisierungen deaktiviert
Twenty Nineteen: version: 1.7, author: WordPress-Team,Automatische Aktualisierungen deaktiviert
Twenty Seventeen: version: 2.4, author: WordPress-Team,Automatische Aktualisierungen deaktiviert
Twenty Sixteen: version: 2.2, author: WordPress-Team,Automatische Aktualisierungen deaktiviert
Twenty Twenty: version: 1.5, author: WordPress-Team,Automatische Aktualisierungen deaktiviert

### wp-plugins-active (13) ###

Category Posts Widget: version: 4.9.5, author: TipTopPress, Automatische Aktualisierungen deaktiviert
Cookie Notice: version: 1.3.2, author: dFactory, Automatische Aktualisierungen deaktiviert
Cryout Serious Slider: version: 1.2.0, author: Cryout Creations, Automatische Aktualisierungen deaktiviert
Disable Block Editor FullScreen mode: version: 1.2.0, author: WP Tools, Automatische Aktualisierungen deaktiviert
Distributor: version: 1.6.0, author: 10up Inc., Automatische Aktualisierungen deaktiviert
Email Encoder - Protect Email Addresses: version: 2.0.8, author: Ironikus, Automatische Aktualisierungen deaktiviert
Force Regenerate Thumbnails: version: 2.0.6, author: Pedro Elsner, Automatische Aktualisierungen deaktiviert
MultiSite Clone Duplicator: version: 1.5.3, author: Julien OGER, Pierre DARGHAM, David DAUGREILH, GLOBALIS media systems, Automatische Aktualisierungen deaktiviert
Polylang: version: 2.8, author: WP SYNTEX (latest version: 2.8.1), Automatische Aktualisierungen deaktiviert
WordPress Importer: version: 0.7, author: wordpressdotorg, Automatische Aktualisierungen deaktiviert
WP Maintenance Mode: version: 2.2.4, author: Designmodo, Automatische Aktualisierungen deaktiviert
WP SVG images: version: 3.2, author: KubiQ, Automatische Aktualisierungen deaktiviert
Yoast Duplicate Post: version: 3.2.5, author: Enrico Battocchi & Team Yoast, Automatische Aktualisierungen deaktiviert

### wp-plugins-inactive (7) ###

Akismet Anti-Spam: version: 4.1.6, author: Automattic, Automatische Aktualisierungen deaktiviert
Blog2Social: Social Media Auto Post & Scheduler: version: 6.4.2, author: Blog2Social, Adenion, Automatische Aktualisierungen deaktiviert
Hello Dolly: version: 1.7.2, author: Matt Mullenweg, Automatische Aktualisierungen deaktiviert
MailPoet 3 (New): version: 3.48.0, author: MailPoet (latest version: 3.49.1), Automatische Aktualisierungen deaktiviert
Redirection: version: 4.8, author: John Godley, Automatische Aktualisierungen deaktiviert
WP-Matomo: version: 1.0.22, author: André Bräkling, Automatische Aktualisierungen deaktiviert
WP Mail SMTP: version: 2.3.1, author: WPForms, Automatische Aktualisierungen deaktiviert

### wp-media ###

image_editor: WP_Image_Editor_GD
imagick_module_version: Nicht verfügbar
imagemagick_version: Nicht verfügbar
file_uploads: File uploads is turned off
post_max_size: 8M
upload_max_filesize: 256M
max_effective_size: 8 MB
max_file_uploads: 20
gd_version: 2.2.5
ghostscript_version: not available

### wp-server ###

server_architecture: Linux 4.15.0-112-generic x86_64
httpd_software: Apache/2.4.29 (Ubuntu)
php_version: 7.2.24-0ubuntu0.18.04.6 64bit
php_sapi: apache2handler
max_input_variables: 1000
time_limit: 30
memory_limit: 128M
admin_memory_limit: 256M
max_input_time: 60
upload_max_filesize: 256M
php_post_max_size: 8M
curl_version: 7.58.0 OpenSSL/1.1.1
suhosin: false
imagick_availability: false
pretty_permalinks: true
htaccess_extra_rules: false

### wp-database ###

extension: mysqli
server_version: 10.1.44-MariaDB-0ubuntu0.18.04.1

### wp-constants ###

WP_HOME: undefined
WP_SITEURL: undefined
WP_CONTENT_DIR: /var/www/wordpress/html/wp-content
WP_PLUGIN_DIR: /var/www/wordpress/html/wp-content/plugins
WP_MAX_MEMORY_LIMIT: 256M
WP_DEBUG: false
WP_DEBUG_DISPLAY: true
WP_DEBUG_LOG: true
SCRIPT_DEBUG: true
WP_CACHE: false
CONCATENATE_SCRIPTS: undefined
COMPRESS_SCRIPTS: undefined
COMPRESS_CSS: undefined
WP_LOCAL_DEV: undefined
DB_CHARSET: utf8mb4
DB_COLLATE: undefined

### wp-filesystem ###

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

### distributor ###

0: 1.6.0
1: 
    Override Author Byline: Yes
    Media Handling: Featured image and attached images
2: 

### pll_options ###

browser: 1
rewrite: 1
hide_default: 1
force_lang: 0
redirect_lang: 1
media_support: 0
sync: 0
post_types: 0
taxonomies: 0
domains: 0
version: 2.8
previous_version: 2.7.4
default_lang: de
primary: de => 4 | en => 40
sidebar: de => 0 | en => 0
footer: de => 2 | en => 38
socials: de => 3 | en => 3

### pll_language_de ###

term_id: 6
name: DE
slug: de
term_group: 0
term_taxonomy_id: 6
count: 26
tl_term_id: 22
tl_term_taxonomy_id: 22
tl_count: 2
locale: de_DE
is_rtl: 0
w3c: de-DE
facebook: de_DE
flag_url: example.com/wp-content/plugins/polylang/flags/de.png
home_url: otherWebsiteExample.com//
search_url: otherWebsiteExample.com//
mo_id: 963
page_on_front: 10
page_for_posts: 0
flag_code: de

### pll_language_en ###

term_id: 25
name: EN
slug: en
term_group: 0
term_taxonomy_id: 25
count: 23
tl_term_id: 26
tl_term_taxonomy_id: 26
tl_count: 2
locale: en_GB
is_rtl: 0
w3c: en-GB
facebook: en_GB
flag_url: example.com/wp-content/plugins/polylang/flags/gb.png
home_url: otherWebsiteExample.com
search_url: otherWebsiteExample.com
mo_id: 967
page_on_front: 978
page_for_posts: 0
flag_code: gb
dinhtungdu commented 4 years ago

@Siedlerchr can you check the direct link of those images? I want to check if they're distorted by CSS.

Siedlerchr commented 4 years ago

@dinhtungdu They are different, I checked with another post which is distorted. When I hit regenerate thumbnails in WP it will be correct afterwards. I also rechecked all image settings and both boxes have the same width and height on the parent + child Child: https://www.inspireprojekt.de/wp-content/uploads/sites/4/2020/08/Pressefoto_Eroeffnung_Koe12-Kopie-1-640x300.jpg Parent: https://www.safetyinnovation.center/wp-content/uploads/2020/08/Pressefoto_Eroeffnung_Koe12-Kopie-1-440x300.jpg

jeffpaul commented 4 years ago

@Siedlerchr so it sounds like its not Distributor affecting those images but another plugin that you have active (Force Regenerate Thumbnails or WP SVG images perhaps)?