Welcome, Guest. Please login or register.
Did you miss your activation email?

 
Advanced search

22728 Posts in 6695 Topics- by 17594 Members - Latest Member: permsk

24-05-2019 10:07:08
JOOM::GALLERY::FORUMArchiveJoomGallery 2.x ACLMigrationPost-Migration File Extension issue
Pages: [1]
Print
Author Topic: Post-Migration File Extension issue  (Read 3224 times)
0 Members and 1 Guest are viewing this topic.
GJSchaller
Jr. Member
**
Offline Offline

Posts: 71


View Profile WWW
« on: 26-11-2012 17:01:51 »

Using the G2 to JG2ACL script posted elsewhere, I migrated about 7,200 images from G2 to my JoomGallery2 setup, and they all came over without too much trouble.  All of the images are there, along with their data, but there's something weird going on in in the Maintenance Manager now.

When I run a check in the Maintenance Manager, any image (Original, Thumbnail, or Detail) that has an extension in capital letters (i.e. - ".JPG" instead of ".jpg") is viewed by the Maintenance Manager as an "orphan," even though the file is there, and needed for the gallery to display that image.  (I backed up my images and deleted the "orphans," which broke those images in the Gallery - I was able to put the files back without issue, and the Gallery is working again.)

Is this problem an issue with the migration, or with JoomGallery itself?  Is there a simple way to parse all of the files to get them into the proper extension / case, without needing to manually edit 4,200 entries?  I can see the issue happen across all three types - if the Original has the issue, the Thumbnail and Detail do as well.

Thank you!
Logged

Geoffrey Schaller
Technical Officer
http://www.knightrealms.com
GJSchaller
Jr. Member
**
Offline Offline

Posts: 71


View Profile WWW
« Reply #1 on: 26-11-2012 17:45:38 »

In a similar vein, I'm finding that Akeeba Admin Tools .htaccess maker poses issues to images with spaces in the file name, when Front End Protection is turned on.  If I want to mass update my images so that the spaces are converted to "_", is there a way to do this using JoomGallery?  (Such as the Special Characters option - I'm not certain if it will work on existing files that are already uploaded.)

Thank you!
Logged

Geoffrey Schaller
Technical Officer
http://www.knightrealms.com
Chraneco
Developer-Team
Hero Member
*****
Offline Offline

Posts: 3544


View Profile
« Reply #2 on: 26-11-2012 18:42:00 »

Hi,

the situation of having '.JPG' instead of '.jpg' is not handled correctly by maintenance manager of JoomGallery because normally there aren't any '.JPG' in JoomGallery (they are all converted to lower case during upload processing). So this is a problem created by the migration. Unfortunately, I don't have an idea at the moment in which way this could be fixed easily.

However, in the migration helper class there is an option for creating new file names for every image that is migrated. Using this during the migration would at least solve your problem with the spaces in the file names. Additionally, I think this would fix the problem of the '.JPG' file names, too.

Regards
Chraneco
Logged
GJSchaller
Jr. Member
**
Offline Offline

Posts: 71


View Profile WWW
« Reply #3 on: 26-11-2012 18:43:47 »

Good to know - it's something I'll add to the advisory for the G2 Migration script, in case anyone else continues development of it.
Logged

Geoffrey Schaller
Technical Officer
http://www.knightrealms.com
GJSchaller
Jr. Member
**
Offline Offline

Posts: 71


View Profile WWW
« Reply #4 on: 26-11-2012 19:49:51 »

Would it be possible to make a "recreate file names" batch process, that could be applied to existing files?  That way, if a setting was changed after the gallery has been in place for a while (or if a migration occurs, and the files need to be corrected after the fact), that process can be called on existing images to bring them in line?

Thank you!
Logged

Geoffrey Schaller
Technical Officer
http://www.knightrealms.com
GJSchaller
Jr. Member
**
Offline Offline

Posts: 71


View Profile WWW
« Reply #5 on: 28-11-2012 14:51:52 »

I think I may have an easier solution to this, but will need a bit of help creating it.

Would a "migration script" that doesn't actually migrate from an old gallery, but instead applies the class to the items in the existing gallery, be used?

Basically something that cycles through each item in JoomGallery, and applies the renaming process to it, to ensure it meets the standards in the configuration manager, etc.

Again, I am stuck, as I am not familiar with PHP myself - hopefully, this is an easy one to knock out, and might be useful to other people who need it to clean up their Galleries after a migration, or a change in settings.

I'd be willing to pay for a custom job on this, if someone doesn't mind some quick cash.

Thank you!
Logged

Geoffrey Schaller
Technical Officer
http://www.knightrealms.com
Chraneco
Developer-Team
Hero Member
*****
Offline Offline

Posts: 3544


View Profile
« Reply #6 on: 04-10-2015 03:35:00 »

Hi,

this could be also solved with a the migration script I suggested at the end of this thread: http://www.forum.en.joomgallery.net/index.php?topic=5896

Regards
Chraneco
Logged
Pages: [1]
Print
Jump to:  

HOSTED BY SCHWARZKÜNSTLER ®

PROTECTED BY  ZB BLOCK  AND Project Honey Pot
Theme orange-lt created by panic

Bad Behavior has blocked 6276 access attempts in the last 7 days.

maternal