10up / distributor

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

Distributor is not sending default WordPress Gallery images only icons from the origin to the remote site/s #764

Open ldollard opened 3 years ago

ldollard commented 3 years ago

Describe the bug When creating a basic WordPress gallery in a post on MASTER SITE, distributor: will still send the post TO REMOVE SITE but the images do not get sent, instead they appear as icons:

https://we.tl/t-isDLd4awjR

If I use the nextgen gallery on the MASTER SITE they get sent as images and arrive as images, but even though I have nextgen set up exactly the same way on the REMOTE site, the gallery is no longer formed and the images are all over the place.

Steps to Reproduce

  1. ON MASTER SITE > ADD NEW POST > ADD MEDIA > CREATE GALLERY > SELECT IMAGES > CREATE GALLERY > INSERT INTO POST
  2. Click on PUBLISH
  3. Click on Distribute > Select site > Untick Draft > Distribute
  4. See error on MASTER SITE as described above

Expected behavior For the gallery to look the same on the remote site as it does the master site, which is a straight forward gallery.

https://we.tl/t-fmfDvtKN4Y (master site you'll see complete gallery, on the remote you'll see nothing as no images got moved over.

Environment information

Site Health Info: ` ### wp-core ### version: 5.7.2 site_language: en_US user_language: en_US timezone: +00:00 permalink: /%postname%/ https_status: true multisite: false user_registration: 0 blog_public: 0 default_comment_status: undefined environment_type: production user_count: 16 dotorg_communication: true ### wp-paths-sizes ### wordpress_path: /home/520360.cloudwaysapps.com/hqrjcwefja/public_html wordpress_size: 197.37 MB (206960055 bytes) uploads_path: /home/520360.cloudwaysapps.com/hqrjcwefja/public_html/wp-content/uploads uploads_size: 5.75 GB (6174054096 bytes) themes_path: /home/520360.cloudwaysapps.com/hqrjcwefja/public_html/wp-content/themes themes_size: 17.60 MB (18452638 bytes) plugins_path: /home/520360.cloudwaysapps.com/hqrjcwefja/public_html/wp-content/plugins plugins_size: 131.14 MB (137509655 bytes) database_size: 64.70 MB (67846144 bytes) total_size: 6.15 GB (6604822588 bytes) ### wp-dropins (1) ### advanced-cache.php: true ### wp-active-theme ### name: Pro – Child Theme (pro-child) version: 1.0.0 author: Themeco author_website: https://theme.co/ parent_theme: Pro (pro) theme_features: core-block-patterns, cornerstone, post-thumbnails, title-tag, automatic-feed-links, post-formats, woocommerce, wc-product-gallery-zoom, wc-product-gallery-lightbox, wc-product-gallery-slider, align-wide, wp-block-styles, widgets, menus theme_path: /home/520360.cloudwaysapps.com/hqrjcwefja/public_html/wp-content/themes/pro-child auto_update: Disabled ### wp-parent-theme ### name: Pro (pro) version: 4.3.3 author: Themeco author_website: https://theme.co theme_path: /home/520360.cloudwaysapps.com/hqrjcwefja/public_html/wp-content/themes/pro auto_update: Disabled ### wp-plugins-active (36) ### AdRotate Professional: version: 5.8.13, author: Arnan de Gans, Auto-updates enabled Akismet Anti-Spam: version: 4.1.9, author: Automattic, Auto-updates enabled Auto Featured Image (Auto Post Thumbnail): version: 3.8.1, author: Creative Motion , Auto-updates enabled Auto Featured Image premium (Premium): version: 1.3.11, author: Creativemotion , Auto-updates enabled Awesome Weather Widget: version: 3.0.2, author: Hal Gatewood, Auto-updates enabled Breeze: version: 1.2.1, author: Cloudways, Auto-updates enabled Bulk Delete: version: 6.0.2, author: Sudar, Auto-updates enabled Category Posts Widget: version: 4.9.11, author: TipTopPress, Auto-updates enabled Classic Editor: version: 1.6, author: WordPress Contributors, Auto-updates enabled Columns Extension for Display Posts Shortcode: version: 1.0.0, author: Bill Erickson, Auto-updates enabled Contact Form 7: version: 5.4.1, author: Takayuki Miyoshi, Auto-updates enabled Delete Duplicate Posts: version: 4.6.2, author: cleverplugins.com, Auto-updates enabled Display Posts: version: 3.0.2, author: Bill Erickson, Auto-updates enabled Distributor: version: 1.6.4-dev, author: 10up Inc., Auto-updates enabled Embed Any Document Plus: version: 2.6.0, author: Awsm Innovations, Auto-updates enabled Essential Grid: version: 3.0.11, author: ThemePunch, Auto-updates disabled Feed Them Social - for Twitter feed, Youtube, and more: version: 2.9.6.1, author: SlickRemix, Auto-updates enabled HubSpot All-In-One Marketing - Forms, Popups, Live Chat: version: 8.0.166, author: HubSpot, Auto-updates enabled MalCare Security - Free Malware Scanner, Protection & Security for WordPress: version: 4.58, author: MalCare Security, Auto-updates enabled NextGEN Gallery: version: 3.10, author: Imagely, Auto-updates enabled PDF Embedder Premium: version: 4.4.3, author: Lever Technology LLC, Auto-updates enabled Reading Time WP: version: 2.0.10, author: Jason Yingling, Auto-updates enabled Simple Author Box: version: 2.3.21, author: WebFactory Ltd, Auto-updates enabled Simple Lightbox: version: 2.8.1, author: Archetyped, Auto-updates disabled Slider Revolution: version: 6.4.11, author: ThemePunch, Auto-updates enabled Slider Revolution 404 Page Add-On: version: 2.0.1, author: ThemePunch, Auto-updates enabled Slider Revolution Particles Effect: version: 2.3.6, author: ThemePunch, Auto-updates enabled Slider Revolution WP Gallery Add-On: version: 2.0.3, author: ThemePunch, Auto-updates enabled Stock Market Ticker: version: 1.9.5, author: Stockdio, Auto-updates enabled WordPress Related Posts Thumbnails: version: 1.9.1, author: WPBrigade, Auto-updates enabled WP All Import - User Import Add-On Pro: version: 1.1.5, author: Soflyy, Auto-updates enabled WP All Import Pro: version: 4.6.7, author: Soflyy, Auto-updates enabled WP RSS Aggregator: version: 4.18.2, author: RebelCode, Auto-updates enabled WP RSS Aggregator - Templates: version: 0.3.1, author: RebelCode, Auto-updates enabled Yoast Duplicate Post: version: 4.1.2, author: Enrico Battocchi & Team Yoast, Auto-updates enabled Yoast SEO: version: 16.3, author: Team Yoast, Auto-updates disabled ### wp-plugins-inactive (1) ### The Events Calendar: version: 5.6.0, author: The Events Calendar, Auto-updates enabled ### wp-media ### image_editor: WP_Image_Editor_Imagick imagick_module_version: 1687 imagemagick_version: ImageMagick 6.9.7-4 Q16 x86_64 20170114 http://www.imagemagick.org file_uploads: File uploads is turned off post_max_size: 5000M upload_max_filesize: 5000M max_effective_size: 5 GB max_file_uploads: 20 imagick_limits: imagick::RESOURCETYPE_AREA: 16 GB imagick::RESOURCETYPE_DISK: 1.844674407371E+19 imagick::RESOURCETYPE_FILE: 768 imagick::RESOURCETYPE_MAP: 16 GB imagick::RESOURCETYPE_MEMORY: 8 GB imagick::RESOURCETYPE_THREAD: 1 gd_version: 2.2.5 ghostscript_version: 9.26 ### wp-server ### server_architecture: Linux 4.9.0-14-amd64 x86_64 httpd_software: Apache/2.4.25 (Debian) php_version: 7.4.16 64bit php_sapi: fpm-fcgi max_input_variables: 2500 time_limit: 10000 memory_limit: 512M max_input_time: 60 upload_max_filesize: 5000M php_post_max_size: 5000M curl_version: 7.52.1 OpenSSL/1.0.2u suhosin: false imagick_availability: true pretty_permalinks: true htaccess_extra_rules: true ### wp-database ### extension: mysqli server_version: 10.1.48-MariaDB-1~stretch client_version: mysqlnd 7.4.16 ### wp-constants ### WP_HOME: undefined WP_SITEURL: undefined WP_CONTENT_DIR: /home/520360.cloudwaysapps.com/hqrjcwefja/public_html/wp-content WP_PLUGIN_DIR: /home/520360.cloudwaysapps.com/hqrjcwefja/public_html/wp-content/plugins WP_MEMORY_LIMIT: 40M WP_MAX_MEMORY_LIMIT: 512M WP_DEBUG: false WP_DEBUG_DISPLAY: true WP_DEBUG_LOG: false SCRIPT_DEBUG: false WP_CACHE: true CONCATENATE_SCRIPTS: undefined COMPRESS_SCRIPTS: undefined COMPRESS_CSS: undefined WP_LOCAL_DEV: undefined DB_CHARSET: utf8 DB_COLLATE: undefined ### wp-filesystem ### wordpress: writable wp-content: writable uploads: writable plugins: writable themes: writable ### distributor ### 0: 1.6.4-dev 1: Yes 2: info@techforgellc.com 3: Override Author Byline: No Media Handling: Featured image and attached images 4: N/A 5: townsquaredelaware.com//wp-json: - URL: https://townsquaredelaware.com/wp-json - Version: 1.6.4 - Status: valid - Auth method: Username / Password - Username: Betsy Price - Roles Allowed to Push: administrator, editor - Additional data: {"errors":[], "can_post":["post", "page", "attachment", "wp_block", "coblocks_pattern", "jp_pay_order", "jp_pay_product"], "can_get":["post", "page", "attachment", "wp_block", "coblocks_pattern", "jp_pay_order", "jp_pay_product"], "endpoint_suggestion":false, "is_authenticated":"yes"} To Milford Live: - URL: https://mfl.delawarelive.com/wp-json - Version: 1.6.4 - Status: valid - Auth method: Username / Password - Username: Betsy Price - Roles Allowed to Push: administrator, editor - Additional data: {"errors":[], "can_post":["post", "page", "attachment", "wp_block"], "can_get":["post", "page", "attachment", "wp_block"], "endpoint_suggestion":false, "is_authenticated":"yes"} To Delaware Live: - URL: https://dwl.delawarelive.com/wp-json - Version: 1.6.4 - Status: valid - Auth method: Username / Password - Username: Betsy Price - Roles Allowed to Push: administrator, editor - Additional data: {"errors":[], "can_post":["post", "page", "attachment", "wp_block"], "can_get":["post", "page", "attachment", "wp_block"], "endpoint_suggestion":false, "is_authenticated":"yes"} To Townsquare Live: - URL: https://tsl.delawarelive.com/wp-json - Version: 1.6.4 - Status: valid - Auth method: Username / Password - Username: Betsy Price - Roles Allowed to Push: administrator, editor - Additional data: {"errors":[], "can_post":["post", "page", "attachment", "wp_block"], "can_get":["post", "page", "attachment", "wp_block"], "endpoint_suggestion":false, "is_authenticated":"yes"} (DONT TOUCH) From Old Delaware Live Site: - URL: https://delawarelive.com/wp-json - Version: 1.6.4 - Status: valid - Auth method: Username / Password - Username: distributor - Roles Allowed to Push: administrator, editor - Additional data: {"errors":[], "can_post":["post", "page", "attachment", "wp_block", "coblocks_pattern"], "can_get":["post", "page", "attachment", "wp_block", "coblocks_pattern"], "endpoint_suggestion":false, "is_authenticated":"yes"} `

Additional context I felt like this was working last week with nextgen, but honestly, I might be mistaken, its never worked with the default WP image gallery. This is a core part of the sites and the only thing stopping 4 sites going live, any help would be greatly appreciated.

ldollard commented 3 years ago

So investigating some more, i see the images are not actually sent to the remote site, but rather linked to the master

https://mastersite.com/wp-content/uploads/2021/05/image1.jpg

is this expected behavior.

jeffpaul commented 3 years ago

@ldollard to clarify, you're using the Classic Editor and NextGEN Gallery to create these posts/galleries?

ldollard commented 3 years ago

I've use a mixture of it all but yes classic editor and nextgen, also tried without nextgen and without it the images just come over as broken icons.