- This topic has 3 replies, 2 voices, and was last updated 5 months, 1 week ago by
David.
-
AuthorPosts
-
October 15, 2022 at 1:11 am #2374138
Charles
Hi,
Until yesterday I had not thought about file paths in WordPress or Generatepress. However, when I moved one site from a 2012 Windows Server to my new Ubuntu server I noticed some of the photos did not display. Some do most do not.
https://dutton-white.com/commissions/I can see the file paths in view source, for the main picture they look right.
`<figure class=”wp-block-image size-full”><img width=”600″ height=”283″
src=”https://dutton-white.com/wp-content/uploads/commissions/porsche-commission.jpg” alt=””
class=”wp-image-123″ srcset=”https://dutton-white.com/wp-content/uploads/porsche-commission.jpg 600w,
https://dutton-white.com/wp-content/uploads/porsche-commission-300×142.jpg 300w”
sizes=”(max-width: 600px) 100vw, 600px” />
</figure>If I put the file path in a browser
https://dutton-white.com/wp-content/uploads/commissions/porsche-commission.jpg
I see the graphic
Yet the picture is not showing in the page.In edit mode I can see the picture.
I can see the two alternatives in the srcset they are in the folder commissions along with the full size option.
However, what seems to have happened is the smaller versions of the picture do not have the correct file path to the folder in this case commissions.Any suggestions as to how I can fix the folder file path for the srcset pictures?
Many thanks
Charles
October 15, 2022 at 5:02 am #2374285David
StaffCustomer SupportHi there,
the Theme has no control over those URLs, we don’t interfere with permalinks.
It seems that the migration did not respect the custom folder structure in the URL.How was the migration performed ?
Documentation: http://docs.generatepress.com/
Adding CSS: http://docs.generatepress.com/article/adding-css/October 15, 2022 at 12:39 pm #2374715Charles
Hi David,
I tried moving the database from the original server to the new server again but still got the same result.
I tried removing the class=”wp-image-***” code from each picture which had the result of making the picture display – not sure if this is a fatal thing one should not do but alas the website owner died a few months ago.
I will see how I go moving some more websites.
I suspect that the plugin which I used to create the additional folder structure was in some ways responsible for the file path corruption. I will try and guard against a plugin like that malfunctioning in the future.
Thanks for taking a look.
Kind regardsCharles
October 16, 2022 at 5:18 am #2375096David
StaffCustomer SupportYeah it may be worth checking with that plugin author to see if others have experience similar issues.
Sorry we couldn’t be of much help
Documentation: http://docs.generatepress.com/
Adding CSS: http://docs.generatepress.com/article/adding-css/ -
AuthorPosts
- You must be logged in to reply to this topic.