• Welcome to Simple Machines Community Forum. Please login or sign up.
January 16, 2022, 05:17:40 AM

News:

Bored?  Looking to kill some time?  Want to chat with other SMF users?  Join us in IRC chat or Discord


Re: Decrypt attachment files

Started by fishoaus, August 31, 2021, 07:28:23 AM

Previous topic - Next topic

fishoaus

how do i de decrypt images have been stuck for ages after up grade months back wonder if my forum attachments are bugged only show up as save then open image, no image as thumbnails view now, would this work help

https://www.simplemachines.org/community/index.php?topic=367382.0

fishoaus

Quote from: fishoaus on August 31, 2021, 07:28:23 AMhow do i de decrypt images have been stuck for ages after up grade months back wonder if my forum attachments are bugged only show up as save then open image, no image as thumbnails view now, would this work help

https://www.simplemachines.org/community/index.php?topic=367382.0

looks like i"ll have to wipe my forum & start again, as i can't figure it out

Arantor

Whoa, hold on there before you go starting over.

What, exactly, is your situation? You have some attachments - do you have the database for those attachments? Did you move the files between servers at some point?

It also might have helped if you'd made your own topic...
No good deed goes unpunished
All helpful urges should be circumvented

Aleksi "Lex" Kilpinen

A Finnish Project Manager (Support Specialist)
 Happily running multiple SMF 2.x installations.
  Fooling around with i7-10700 @ 2,90GHz-4.80GHz / 16Gb / RTX-2070 Super / 3840x2160 / Win 10 x64


How you can help SMF

"Before you allow people access to your forum, especially in an administrative position, you must be aware that that person can seriously damage your forum. Therefore, you should only allow people that you trust, implicitly, to have such access." -Douglas

Sir Osis of Liver

Attachments aren't encrypted, file names are hashed.  It's not too difficult to restore original file names, but attachments won't work if you do.  That's not your problem.

"The best laid schemes o' mice an' men / Gang aft a-gley." - Robert Burns

shawnb61

I suspect you need to doublecheck your attachments configuration.  Repair_settings.php may help.

Check all attachments settings, folders, etc.  Confirm you still have the rows in your attachments table.  If the files are still there, and the rows are in the attachments table, you can likely still recover.


If OTOH you really just want to recover the files, you need some way to rename them back.  I've done this before, instructions here:
https://www.simplemachines.org/community/index.php?msg=3927825
Address the process rather than the outcome.  Then, the outcome becomes more likely.   - Fripp

Arantor

This is why I'm asking if the OP moved files... say with FileZilla :(
No good deed goes unpunished
All helpful urges should be circumvented

fishoaus

September 06, 2021, 04:49:34 AM #7 Last Edit: September 06, 2021, 05:28:23 AM by fishoaus
i had forum up graded by some one else, can see attachments but only by saving not by thumb nails, Had a few extra mods installed & can save them all by ftping back to my computer no viewing on my pc, only view from forum is by click on paper clip open with my default image software if that makes sense

fishoaus

September 06, 2021, 04:58:49 AM #8 Last Edit: September 06, 2021, 05:17:46 AM by fishoaus
Quote from: Arantor on September 05, 2021, 07:29:10 AMWhoa, hold on there before you go starting over.

What, exactly, is your situation? You have some attachments - do you have the database for those attachments? Did you move the files between servers at some point?

It also might have helped if you'd made your own topic...

No not moved between servers just different portal, media gallery i just had to up grade as my forum was way out dated, i just bugged it up from start i say, then had some one else try pic up the pieces, say images not moved or saved properly not sure, yes still have data base forum is still running

fishoaus

Quote from: Arantor on September 06, 2021, 02:47:54 AMThis is why I'm asking if the OP moved files... say with FileZilla :(


i did use filezilla, you have helped me before at dezinerstudio many years ago adding code to new balance, i also use to use your media gallery before i up graded

Arantor

That's kind of what I'm wondering about: FileZilla can and does damage file attachments in SMF if not explicitly configured not to. :(
No good deed goes unpunished
All helpful urges should be circumvented

Sir Osis of Liver

If the images are viewable by any means (apparently they are), they haven't been damaged by FZ ascii d/l, which corrupts the files and makes them unuseable.
"The best laid schemes o' mice an' men / Gang aft a-gley." - Robert Burns

fishoaus

Quote from: shawnb61 on September 06, 2021, 01:01:21 AMI suspect you need to doublecheck your attachments configuration.  Repair_settings.php may help.

Check all attachments settings, folders, etc.  Confirm you still have the rows in your attachments table.  If the files are still there, and the rows are in the attachments table, you can likely still recover.


If OTOH you really just want to recover the files, you need some way to rename them back.  I've done this before, instructions here:
https://www.simplemachines.org/community/index.php?msg=3927825

I am not sure how to do this But images are still all there & i have downloaded them in binary can view a lot of them on pc & in forum but only shows the paper clip on forum , open with my default image viewer same on pc right click open with

shadav

ok so attachments work, images are fine it's just they aren't being displayed in the post
sounds to me more like your theme's display.template.php or in your sources folder the display.php is messed up
what version of smf is this
what theme are you using
does this do this with the default theme
what mods do you have installed

also
in your admin under forum then under Attachments and Avatars and then attachment settings
is this box checkmarked?
Display image attachments as pictures under post

Sir Osis of Liver

Do all attachments fail to load?  Can you attach pics successfully to new posts?
"The best laid schemes o' mice an' men / Gang aft a-gley." - Robert Burns

fishoaus

September 08, 2021, 07:51:54 AM #15 Last Edit: September 08, 2021, 08:09:56 AM by fishoaus
Quote from: Sir Osis of Liver on September 07, 2021, 06:12:59 PMDo all attachments fail to load?  Can you attach pics successfully to new posts?

yes can attach  but fail to display image, only paper clip to open with default image viewer

fishoaus


fishoaus

Quote from: shadav on September 07, 2021, 09:09:34 AMok so attachments work, images are fine it's just they aren't being displayed in the post
sounds to me more like your theme's display.template.php or in your sources folder the display.php is messed up
what version of smf is this
what theme are you using
does this do this with the default theme
what mods do you have installed

also
in your admin under forum then under Attachments and Avatars and then attachment settings
is this box checkmarked?
Display image attachments as pictures under post

yes images attachments  box checked &  avatars, yes display  image attachments as pictures under posts checked

smf 2.0.18 theme dzinersutdio theme newbalance old as now, default theme does same no display images


mods

1.    Simple Audio Video Embedder    6.0.4    August 31, 2021, 08:59:55 PM.   
2.    TinyPortal    2.1.0    August 30, 2021, 10:06:56 PM.   
3.    Contact Page    5.0.1a    May 20, 2021, 08:40:17 PM.   
4.    Sortable Packages (and Installed Time)    1.3.5    May 19, 2021, 02:51:13 AM.   
5.    Levertine Gallery    1.1.1    April 30, 2021, 09:23:32 PM.

Sir Osis of Liver

Looking at your pic test post, link to attachment is correct, download works, image file is fine.  What's not working is 'Display image attachments as pictures under post' setting.  If it actually is checked, then you probably have a mod problem.  Only one I don't recognize is Levertine Gallery, you can try uninstalling that.
"The best laid schemes o' mice an' men / Gang aft a-gley." - Robert Burns

Aleksi "Lex" Kilpinen

I don't think Levertine really does anything about attachments in posts, so that one seems unlikely. Though it does add a lot of permissions handling regarding the gallery.
A Finnish Project Manager (Support Specialist)
 Happily running multiple SMF 2.x installations.
  Fooling around with i7-10700 @ 2,90GHz-4.80GHz / 16Gb / RTX-2070 Super / 3840x2160 / Win 10 x64


How you can help SMF

"Before you allow people access to your forum, especially in an administrative position, you must be aware that that person can seriously damage your forum. Therefore, you should only allow people that you trust, implicitly, to have such access." -Douglas

Advertisement: