Changing/renaming media db dirs

Found a bug? Tell us!!
Post Reply
yellowled
Regular
Posts: 7111
Joined: Fri Jan 13, 2006 11:46 am
Location: Eutin, Germany
Contact:

Changing/renaming media db dirs

Post by yellowled »

s9y 2.2.0-beta1, PHP 7.0.11

Reproduce:
– I had an image called steak.jpg in a folder called Artikel in the media db, so the path to said image was /uploads/Artikel/steak.jpg
– I renamed the folder to artikel (lowercase) because I was suspecting that the Uppercase in the path was irritating the responsive images parser while testing the new plugin.
– In articles where said image was used, the new path is now replaced as /uploads/artikelsteak.jpg – which of course results in a broken image (404).

I'm just not sure if this is new in 2.1.x or if that existed before … anyone still have a pre-2.1.x test blog? (Which is also why I did not create a GitHub issue yet.)

YL
Imajica
Regular
Posts: 59
Joined: Mon Dec 05, 2016 5:26 pm
Location: Racine
Contact:

Re: Changing/renaming media db dirs

Post by Imajica »

I have a 2.0.5 that I haven't updated yet

it's also blank because I haven't finished theming it yet

John
yellowled
Regular
Posts: 7111
Joined: Fri Jan 13, 2006 11:46 am
Location: Eutin, Germany
Contact:

Re: Changing/renaming media db dirs

Post by yellowled »

Thanks for providing me access to that.

So, in 2.0.5, this does not happen. However, it does not happen because the reference to the image in the article is not changed at all. I'm not sure if this is because John's test blog uses WYSIWYG and my dev blog doesn't or if it's because of PHP 5.6 vs 7.0 or because of the missing responsive images plugin which is only in 2.2.0-beta1 … hard to replicate. :?

YL
Imajica
Regular
Posts: 59
Joined: Mon Dec 05, 2016 5:26 pm
Location: Racine
Contact:

Re: Changing/renaming media db dirs

Post by Imajica »

feel free to change the editor as necessary

John
Post Reply