UPDATES EasyBlog 6.0.14 Released! Joomla 5.x and PHP 8.x compatible now!

Helpdesk

Your Time
Our Time
Response Time
24 — 48 hours
We strive to provide the fastest ever response possible. However, we are not super beings.

Allow at least 24 — 48 hours
  Support is offline
Our team is away during the weekend. Some answers may already be available on our documentation

Rest assured that we will get back to your posts as soon as the week starts!
  Support is offline

Image Path in DataBase Appears Invalid

Josh Lewis · ·
12:20 PM Thursday, 01 January 2015
None
I recently swapped my photos from "/media/com_easysocial/photos" to "/gallery" as well as the avatars to simply "/avatars" via the ES storage configuration. I moved the files over to the appropriate directories, cleared my browser cache and everything displayed as it should. :) I looked into the database table "_social_photos_meta" and saw that the value column attempts to use the full path. A value example is "/media/com_easysocial/photos/4/5/ed65b451e9f39a0933c73544204f32f5_original.jpg". However this does not seem accurate. The image is being accessed through the new path which is "/gallery/4/5/ed65b451e9f39a0933c73544204f32f5_original.jpg". Because the old path is now deleted, if the entire path was actually read it would not display the image at all. But instead images are loading just fine.

Screen shot of the _social_photos table.

http://stackideas.com/forums?controller=attachment&task=displayFile&tmpl=component&id=15535

What I'm getting at is that the root path is being ignored which makes me question why the entire path is being written in the first place. The table "_social_avatars" uses perfect form in my opinion. It also produces way less records based on it's structure (1 record per image rather than 6 just to reference the image paths).

Screen shot of the _social_photos_meta table.

http://stackideas.com/forums?controller=attachment&task=displayFile&tmpl=component&id=15534

Basically I'm looking out for the infrastructure of ES to save you guys and us headaches in the future. (performance wise/potential complaints in the future) In this case it's about saving space where useless information is being stored. Also I'm a bit concerned about the gallery structure in how 6 records are used to access a single image. Why not use the same method as the avatars or at least one that requires accessing less records for a single photo?

I'm still very happy with how the gallery operates from a user point of view. Hoping all is well with the stacked team and wishing you all a happy new year. :)
The replies under this section are restricted to logged in users or users with an active subscription with us