-
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
External connections do not distribute media #975
Comments
Hope this gets fixed soon.. really need this as well... |
@peterwilsoncc I've performed the steps you suggested above, and I've seen that media is distributed between external connections without any problems (Tested on the "develop" branch). Please have a look at the video and let me know if there is anything I missed. dist-975-working.mp4 |
Hey Faisal, |
Hey Faisal,
Thank you for the response, I looked at the video, and this is also working
for me.
However, the problem I had is with images inside ACF fields. Most of my
clients posts are extended with ACF fields to add photo's or have ACF
wysiwyg fields to add content (with the possibility to add images in there)
And those images don't get synced.
G.
*Geert Leysen*Addict | Adventurer | Online Marketing Consultant
***@***.*** ***@***.***>*
…On Thu, Jan 12, 2023 at 10:20 AM Faisal Alvi ***@***.***> wrote:
@peterwilsoncc <https://github.com/peterwilsoncc> I've performed the
steps you suggested above, and I've seen that media is distributed between
external connections without any problems (Tested on the "develop" branch).
Please have a look at the video and let me know if there is anything I
missed.
https://user-images.githubusercontent.com/25176325/212026447-bad4f4b7-30c7-4591-a2c9-d0df4f49a5b1.mp4
—
Reply to this email directly, view it on GitHub
<#975 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAGM73BSNUZ2NYCAYPQVHXTWR7EF5ANCNFSM6AAAAAASHJ2QUA>
.
You are receiving this because you commented.Message ID:
***@***.***>
|
So a few things here:
I have run some tests myself with just in-content images and I've found some issues (see below). As such I'm reopening this issue. Note we may want to update the description of this issue to make it more clear that it seems to be more of an issue with in-content images and not featured images. All tests were run with the setting Internal Connections
External Connections
So from my testing, not a single scenario passed entirely. Most of them distributed the image as expected but just didn't update the URL in the content to reference the new site. But Pushing content to an external connection didn't do anything with media. I still need to investigate why this is happening (unless someone else gets to this first) but definitely seems to be a problem. For reference, this setting was added in #184, so may be worth looking at that to get a sense of where to start. |
Following up on the ^ above, I refreshed my memory even further on this and most of the above failures are expected (though would still be great to get fixed). See #152 as well as this comment for more details but the current approach will send images over (if the setting is in place) but won't actually update the image URLs in the content (as there's more to still figure out there on how best to handle this). So looks like the main failure here that isn't already known is Pushing to External Connections, as that doesn't seem to send images at all. |
@dkotter I had a look at it and I found that for pushing, the featured image does not appear while debugging locally, but it does appear if both sites are publically available. The root cause of the issue seemed to be the fact that the SSL certificates on localhost are self-signed (which does not get recognised by the PHP container). To test this issue, I have created two different WP instances on my server. The credentials are available here. (Both sites and the server is temporary so it's okay to expose them publically for time being). |
@faisal-alvi @dkotter I came back to this while looking at another PR. The reason I was not seeing features images in an external pull request was because my local was set up to use content URLs with a relative scheme In WordPress this fails because WordPress isn't a browser so there is no scheme to be relative to (code reference). In this block of code, Distributor should check for relative URLs and add a scheme if there isn't one set distributor/includes/utils.php Lines 925 to 935 in ba8834c
Technically, there is no reason an I suggest we default to an |
@roshniahuja I see you self-assigned this ticket. Please note that I have updated the description to mention that the issue is with the in-content images and not featured images. Also, please see #975 (comment) for more details if you haven't already. |
@faisal-alvi , I am not working on this task anymore so I removed my self from this task. Thanks..!! |
Closing via #1110 |
Describe the bug
When pushing or pulling content from an external connection, no media is distributed regardless of the settings in the admin.
This occurs regardless of whether the featured image is attached to the post or not.
Internal/network connections do distribute the featured images.
Updates:
Steps to Reproduce
a. Push the post from the first sites screen
b. Pull the post from the second sites admin
Screenshots, screen recording, code snippet
Source site
Pulled content
Pushed content
Environment information
No response
WordPress information
Code of Conduct
The text was updated successfully, but these errors were encountered: