-
Notifications
You must be signed in to change notification settings - Fork 156
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Featured Image not transfered #380
Comments
@dmaslogh welcome to Distributor and thanks for the feedback, it's greatly appreciated! Can you confirm the following to help us triage your issue?
|
@jeffpaul thanks!
Hope this helps. |
@dmaslogh there are some reports of weirdness with ACF, any chance the images are in a field there that aren't getting distributed or is it literally the default WP featured image field? |
@jeffpaul it's the standard Featured Image from WP enabled in a CPT. We are not dealing with ACF image fields. |
@dmaslogh is the CPT setup on both the origin and distributed sites? If so, are these custom CPTs or are they created using a plugin (e.g. CPT UI)? |
@jeffpaul I've created a plugin that registers the same CPT on both sites. The CPTs are created by code, the internal fields are created using ACF. |
@dmaslogh ok, that's helpful detail. I'm labeling this as a |
@jeffpaul I'll need to check with my client, but I think I can share with you some code if you need it. Just let me know if there's something specific you find useful for this research and I'll try to provide it asap. |
@jeffpaul Did you have any luck reviewing this? Did you at least reproduce the error on your side? |
@dmaslogh we're currently focused on finishing up our 1.5.0 release, which is mainly focused on major performance improvements on the Push and Pull screens within Distributor as well as an enhanced connection setup process. From there we'll be reviewing open issues and PRs to determine what to target in our next release, so for now I'm milestoning this for |
@jeffpaul thanks! |
We've been having this same issue with an external connection. For some reason, some posts aren't transferring the standard featured image. After activating the debug log, we're getting the following error: |
@Kpudlo thanks for the debug info, that's massively helpful! |
@dmaslogh what sort of hosting environment is your multisite running on? The internals of Distributor use download_url to download the featured image and then sideload it into the media library. If the server is unable to connect to other sites within the multisite, then it would be unable to download the image. This could be due to DNS, firewalls, HTTP authentication, or some other issue. I had to implement some additional filters for a client to pass basic HTTP authentication since all of the sites in their multisite have that enabled and it was not able to download the image. @jeffpaul do you think a pull request to use the filesystem to copy and sideload the image instead of doing a download would be a good idea for a multisite connection? |
@jeffpaul @petenelson I really like this idea, though I'm not exactly sure how we'd go about it. The current approach uses Is your thought here to use the filesystem to copy the image and then build our own But yes, definitely something I'm interested in seeing an approach for, as I think this could potentially help with performance, as we'd be copying an image instead of making a remote request to download the image. |
Yep, that's what I was thinking, shouldn't be a a big lift to make this change. |
👍 Cool, sounds good to me. I'm happy to review and test it out once you have something in place. Thanks! |
Closed via #567. |
I've started using this plugin, run several tests on it and it's working fine except for the fact that's not transferring any Featured Image. Not from posts, pages or CPTs.
The text was updated successfully, but these errors were encountered: