Page 1 of 1

Changing/renaming media db dirs

Posted: Sun Apr 16, 2017 12:35 pm
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

Re: Changing/renaming media db dirs

Posted: Mon Apr 17, 2017 11:18 pm
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

Re: Changing/renaming media db dirs

Posted: Mon Apr 17, 2017 11:49 pm
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

Re: Changing/renaming media db dirs

Posted: Wed Apr 19, 2017 6:52 pm
by Imajica
feel free to change the editor as necessary

John