Simple Machines Community Forum

SMF Support => SMF 2.1.x Support => Topic started by: DarkAngel612 on January 13, 2025, 04:15:43 PM

Title: Problems with smileys and attachments
Post by: DarkAngel612 on January 13, 2025, 04:15:43 PM
do I need to run the updater again or is there still the file to upload and "repair" the forum links.

I updated the 2.0 to 2.1.4 Looking at your forum here I see it is 2.1.5 is there a new update?

Upon updating I lost all attachments, they are in the server, I even changed the name of the attachment folder to see if that would change anything. But it claims to be empty except for 3 files...there is a load of files in there and in the DB.

Same for the smilies: they are acting weird: show uip in the posting window area, can be used but all of them show only the code in admin...no little image

Go to edit area/upload them thru there again you are probably saying/thinking....I did and when I was almost through with the multitude of images I clicked to update the one I was on and they all disappeared totally plus I got the white screen of nothingness for the update area.....in the main smiles edit are showing icons but nothing else in admin with them work. So far all else appears to behave...I hope
Title: Re: Problems with smileys and attachments
Post by: DarkAngel612 on January 13, 2025, 04:20:12 PM
Forgot this part:

https://www.pfdlives.com/pfd/index.php?action=forum
version 2.1.4

1 Forum Width Setting 1.2 January 05, 2025, 05:59:18 PM Uninstall Package (https://www.pfdlives.com/pfd/index.php?action=admin;area=packages;sa=uninstall;package=smf-forum-width_1.2.tar.gz;pid=400) List Files (https://www.pfdlives.com/pfd/index.php?action=admin;area=packages;sa=list;package=smf-forum-width_1.2.tar.gz) Delete (https://www.pfdlives.com/pfd/index.php?action=admin;area=packages;sa=remove;package=smf-forum-width_1.2.tar.gz;e6451aad057=1b7d683f322973e705f6d40b8470f343)
2 SMF Staff Page 2.1 January 05, 2025, 06:00:45 PM Uninstall Package (https://www.pfdlives.com/pfd/index.php?action=admin;area=packages;sa=uninstall;package=SMFStaff2.1.zip;pid=402) List Files (https://www.pfdlives.com/pfd/index.php?action=admin;area=packages;sa=list;package=SMFStaff2.1.zip) Delete (https://www.pfdlives.com/pfd/index.php?action=admin;area=packages;sa=remove;package=SMFStaff2.1.zip;e6451aad057=1b7d683f322973e705f6d40b8470f343)
3 ArantorSidebar 1.0.1 January 05, 2025, 06:00:25 PM Uninstall Package (https://www.pfdlives.com/pfd/index.php?action=admin;area=packages;sa=uninstall;package=ArantorSidebar.zip;pid=401) List Files (https://www.pfdlives.com/pfd/index.php?action=admin;area=packages;sa=list;package=ArantorSidebar.zip) Delete (https://www.pfdlives.com/pfd/index.php?action=admin;area=packages;sa=remove;package=ArantorSidebar.zip;e6451aad057=1b7d683f322973e705f6d40b8470f343)
4 Enhanced Quick Reply 1.0.3 January 05, 2025, 06:01:01 PM Uninstall Package (https://www.pfdlives.com/pfd/index.php?action=admin;area=packages;sa=uninstall;package=Enhanced-Quick-Reply_v1.0.3.zip;pid=403) List Files (https://www.pfdlives.com/pfd/index.php?action=admin;area=packages;sa=list;package=Enhanced-Quick-Reply_v1.0.3.zip) Delete (https://www.pfdlives.com/pfd/index.php?action=admin;area=packages;sa=remove;package=Enhanced-Quick-Reply_v1.0.3.zip;e6451aad057=1b7d683f322973e705f6d40b8470f343)
5 Stop Forum Spam 1.5.6 January 05, 2025, 06:01:17 PM Uninstall Package (https://www.pfdlives.com/pfd/index.php?action=admin;area=packages;sa=uninstall;package=Stop-Forum-Spam_1.5.6.tgz;pid=404) List Files (https://www.pfdlives.com/pfd/index.php?action=admin;area=packages;sa=list;package=Stop-Forum-Spam_1.5.6.tgz) Delete (https://www.pfdlives.com/pfd/index.php?action=admin;area=packages;sa=remove;package=Stop-Forum-Spam_1.5.6.tgz;e6451aad057=1b7d683f322973e705f6d40b8470f343)
6 TinyPortal 3.0.1 January 05, 2025, 06:01:32 PM Uninstall Package (https://www.pfdlives.com/pfd/index.php?action=admin;area=packages;sa=uninstall;package=TinyPortal-3.0.1c.zip;pid=405) List Files (https://www.pfdlives.com/pfd/index.php?action=admin;area=packages;sa=list;package=TinyPortal-3.0.1c.zip) Delete (https://www.pfdlives.com/pfd/index.php?action=admin;area=packages;sa=remove;package=TinyPortal-3.0.1c.zip;e6451aad057=1b7d683f322973e705f6d40b8470f343)
7 Contact Page 7.1 January 05, 2025, 06:01:54 PM Uninstall Package (https://www.pfdlives.com/pfd/index.php?action=admin;area=packages;sa=uninstall;package=smfcontactpage7.1.zip;pid=406) List Files (https://www.pfdlives.com/pfd/index.php?action=admin;area=packages;sa=list;package=smfcontactpage7.1.zip) Delete (https://www.pfdlives.com/pfd/index.php?action=admin;area=packages;sa=remove;package=smfcontactpage7.1.zip;e6451aad057=1b7d683f322973e705f6d40b8470f343)
8 Join Reason 3.0.0 January 05, 2025, 06:02:15 PM Uninstall Package (https://www.pfdlives.com/pfd/index.php?action=admin;area=packages;sa=uninstall;package=join-reason_3-0-0.zip;pid=407) List Files (https://www.pfdlives.com/pfd/index.php?action=admin;area=packages;sa=list;package=join-reason_3-0-0.zip) Delete (https://www.pfdlives.com/pfd/index.php?action=admin;area=packages;sa=remove;package=join-reason_3-0-0.zip;e6451aad057=1b7d683f322973e705f6d40b8470f343)
9 SCEditor Max Height 1.0.1 January 05, 2025, 06:02:26 PM Uninstall Package (https://www.pfdlives.com/pfd/index.php?action=admin;area=packages;sa=uninstall;package=SCEditor-Max-Height_v1.0.1.zip;pid=408) List Files (https://www.pfdlives.com/pfd/index.php?action=admin;area=packages;sa=list;package=SCEditor-Max-Height_v1.0.1.zip) Delete (https://www.pfdlives.com/pfd/index.php?action=admin;area=packages;sa=remove;package=SCEditor-Max-Height_v1.0.1.zip;e6451aad057=1b7d683f322973e705f6d40b8470f343)
10 Sorted Package Manager Listing 1.1 January 05, 2025, 06:03:34 PM Uninstall Package (https://www.pfdlives.com/pfd/index.php?action=admin;area=packages;sa=uninstall;package=package-manager-sort_1-1.tar.gz;pid=409) List Files (https://www.pfdlives.com/pfd/index.php?action=admin;area=packages;sa=list;package=package-manager-sort_1-1.tar.gz) Delete (https://www.pfdlives.com/pfd/index.php?action=admin;area=packages;sa=remove;package=package-manager-sort_1-1.tar.gz;e6451aad057=1b7d683f322973e705f6d40b8470f343)
11 Separate the Sticky Topics 1.0.1 January 05, 2025, 06:04:02 PM Uninstall Package (https://www.pfdlives.com/pfd/index.php?action=admin;area=packages;sa=uninstall;package=separate_sticky_topics_101.zip;pid=410) List Files (https://www.pfdlives.com/pfd/index.php?action=admin;area=packages;sa=list;package=separate_sticky_topics_101.zip) Delete (https://www.pfdlives.com/pfd/index.php?action=admin;area=packages;sa=remove;package=separate_sticky_topics_101.zip;e6451aad057=1b7d683f322973e705f6d40b8470f343)
12 Mod Version Checker 1.1 January 05, 2025, 06:04:15 PM Uninstall Package (https://www.pfdlives.com/pfd/index.php?action=admin;area=packages;sa=uninstall;package=modversionchecker.zip;pid=411) List Files (https://www.pfdlives.com/pfd/index.php?action=admin;area=packages;sa=list;package=modversionchecker.zip) Delete (https://www.pfdlives.com/pfd/index.php?action=admin;area=packages;sa=remove;package=modversionchecker.zip;e6451aad057=1b7d683f322973e705f6d40b8470f343)
13 Simple Audio Video Embedder 7.0.5 January 05, 2025, 06:04:26 PM Uninstall Package (https://www.pfdlives.com/pfd/index.php?action=admin;area=packages;sa=uninstall;package=SimpleAudioVideoEmbedder7.0.5.zip;pid=412) List Files (https://www.pfdlives.com/pfd/index.php?action=admin;area=packages;sa=list;package=SimpleAudioVideoEmbedder7.0.5.zip) Delete (https://www.pfdlives.com/pfd/index.php?action=admin;area=packages;sa=remove;package=SimpleAudioVideoEmbedder7.0.5.zip;e6451aad057=1b7d683f322973e705f6d40b8470f343)

  Emu (https://www.pfdlives.com/pfd/index.php?action=admin;area=packages#)
Title: Re: Problems with smileys and attachments
Post by: Sir Osis of Liver on January 13, 2025, 07:51:37 PM
Do the attachment filenames have a .dat extension?  The upgrader adds it when upgrading from 2.0 to 2.1, but sometimes it doesn't.  I have a script that adds the extension, will see if I can find it.

2.1.5 has been running for a while on this forum, but don't think it's been released, so you're good at 2.1.4.


Attached.

Title: Re: Problems with smileys and attachments
Post by: DarkAngel612 on January 14, 2025, 03:50:00 PM
Well I went to the server and Filezilla and even redownloaded one of the fiels and there is nothing indicating any extension of any kind. the ones at our attic do have the .dat and behave themselves...now but I recall in the beginning they also disappeared but returned on their own.

So do I run the file  as a package or just upload it???
Title: Re: Problems with smileys and attachments
Post by: Sir Osis of Liver on January 14, 2025, 04:07:33 PM
Upload it to forum root and run it with direct link.  It will add .dat extension to all hashed filenames, and won't affect files that already have it.  You should have a complete backup of all attachments from the 2.0 install.

Title: Re: Problems with smileys and attachments
Post by: DarkAngel612 on January 14, 2025, 04:27:15 PM
ok will try now.
Title: Re: Problems with smileys and attachments
Post by: DarkAngel612 on January 14, 2025, 04:34:17 PM
ran it and it is fast however only 3 files got the dat and those are the recent ones.


well that is wrong...I see now that the original attachments folder (which registers as empty in admin) did get its majority of files listed with the .dat

But the one with the dot that is supposed to be the one it is supposed to go to  has none save the newest 3 with dat added. should I run it again?

It would seem that it is thoroughly confused. I can try dragging out the attachments 2 directory (the one with only 3 .dat files and run it again or remove the original one to see if running it again might finish this time.
Title: Re: Problems with smileys and attachments
Post by: Sir Osis of Liver on January 14, 2025, 04:40:03 PM
Any attachments uploaded after 2.1.4 upgrade will have the .dat extension.  Did you run the script in forum root?  If so, upload into /attachments and try it there.  Haven't used it in a while, don't remember exactly how it works.
Title: Re: Problems with smileys and attachments
Post by: Sir Osis of Liver on January 14, 2025, 04:42:35 PM
Just tested it, runs from forum root (where Settings.php is).

Should see this when it completes --

Adding .dat extension to attachment hash

Finished




Title: Re: Problems with smileys and attachments
Post by: DarkAngel612 on January 14, 2025, 04:48:25 PM
yuppers that is what it did, man that was quick yet the only ones that show are in #2 folder that got uploaded Here in January

in the main folder it seems only  about midway of files got dat extension yet the admin area says there are 0 files and only registers the 3 from #2 bunch
Title: Re: Problems with smileys and attachments
Post by: Sir Osis of Liver on January 14, 2025, 04:56:22 PM
The script targets the default /attachments directory.  If you have additional attachment directories you have to modify the script for each one -


<?php// Adds .dat extension to attachment hashecho 'Adding .dat extension to attachment hash';$directory = 'attachments/';foreach (glob($directory."*") as $filename) {   $file = realpath($filename);   if (strpos($file, '.htaccess') === false && strpos($file, 'index.php') === false) {  if (strpos($file, '.dat') === false) {    rename($file, $file . ".dat");   }    }}echo '<br /><br />Finished';?>


Change $directory = 'attachments/'; for each directory.

Sounds like the upgrader was able to add the extension to some but not all attachments.  You'll need to run the script on each directory.


Title: Re: Problems with smileys and attachments
Post by: DarkAngel612 on January 14, 2025, 05:04:10 PM
okay did that changed name frm attachment to attachments2 then removed the original directory to a dif one on the server. it did add the .dat now to ALL the files in there but in admin only the January files show up. I guess I will just need to try again with the original folder and hope it  behaves. otherwise I will need to delete all but the latest files and be satisfied.

Lets hope the smilies will behave too.
Title: Re: Problems with smileys and attachments
Post by: Sir Osis of Liver on January 14, 2025, 05:09:44 PM
Are the attachments loading correctly in posts?  You may have caused a problem by moving directories or changing directory names. Check the directory paths in Admin > Attachments and Avatars > Attachment Directories.

The smileys problem is probably an incorrect path, they aren't changed by the upgrade.  Try fixing it with repair_settings.
Title: Re: Problems with smileys and attachments
Post by: DarkAngel612 on January 14, 2025, 05:25:35 PM
does that file still work with 2.1.4?

I did finally remove the 2 attachments folders, made an entirely new one then uploaded all the files [there are a lot from over 10 years] and still nothing they  admin area will only  see 5 files but registers only 3 in admin.
Title: Re: Problems with smileys and attachments
Post by: DarkAngel612 on January 14, 2025, 05:44:58 PM
I forgot to answer that although those 3 are listed in admin they do not show in the forum nor when clicked, claims no file found. in admin it claims there are 5 files and there are only 3 listed. This happened right after I did the update to 2.1.4

Where do I download the repair file, I am blind I think since I don't even find the downloads area.

If need be I will redo the upgrade again...LOL
Title: Re: Problems with smileys and attachments
Post by: Kindred on January 14, 2025, 06:34:09 PM
Did you run the "find and fix errors" or the "clean up orphan attachments" in admin after you upgraded?

If the files are not showing in admin listing, then you may have lost the connection between the forum and the files.

If so, you may need to do some recovery....   I'm not sure how much you will have to restore and rerun upgrade
Title: Re: Problems with smileys and attachments
Post by: Sir Osis of Liver on January 14, 2025, 09:11:49 PM
You can't upload attachments into a different directory than they were originally posted, all the links in the database will be broken.  You'll need to restore the 2.0 forum and run the 2.1 upgrade again.
Title: Re: Problems with smileys and attachments
Post by: DarkAngel612 on January 28, 2025, 02:45:32 PM
ok, after fighting with this forum that has the same issue...I finally ended up reinstalling EVERYTHING, files database, reinstalling software all that wonderful stuff and now have the smilies back. The weird thing was that the smileys behaved I the posting area, choose it then it appears in post and is still showing in the actual post.

I did end up removing all the attachments since some registered as 0kb and none would show in posts at all, it claimed there was no table yet I checked and they were there listed. So aside from the attachments gone I think that is taken care of, for now.

My attic in admin shows the size of the emotis in the first column but NOT the other forum, they are super tiny --I don't think an ant could see them well.

Please point me in the direction of changing the viewing size in admin please.

Am having another issue but will open a different post for it. TIA