Jump to content

Fix broken attachments / Исправить сломанные вложения

Featured Replies

Posted
comment_179124

Hello guys, is there any plugin or application or modification which can help me fix broken attachments?

For example, It should list all the attachment URLs which are broken in forum topics or a single forum topic. Next step would be redirecting those broken URLs so that they can be fixed.

image.png.79b781cc668fcfd0785ad934d69dac63.png

Google Translation

Привет, ребята, есть ли какой-нибудь плагин, приложение или модификация, которые могут помочь мне исправить сломанные вложения?

Например, он должен перечислить все URL-адреса вложений, которые не работают в темах форума или отдельной теме форума. Следующим шагом будет перенаправление этих неработающих URL-адресов, чтобы их можно было исправить.

  • Orpheus changed the title to Fix broken attachments / Исправить сломанные вложения
  • 2 недели спустя...
comment_179612

I don't think there's an easy way to do it. 

I'd dump the posts table, get all attachments from there by mask and check their existence in the attachments table and on disk.

  • Author
comment_179677
On 4/7/2022 at 8:13 PM, Desti said:

I don't think there's an easy way to do it. 

I'd dump the posts table, get all attachments from there by mask and check their existence in the attachments table and on disk.

Sorry for the late reply. I only moved the attachments using the Storage Settings feature provided and from then the topic/post image links (not all of them) are broken.

image.png.f6e929e4de26cdfd755e7c6d67a6e2e0.png

All attachments have however moved on the disk to the new location but not all attachment links have updated in topics/posts which is kinda weird.

comment_179700

@Orpheus It's best to restore your original folder/location backup first. Then, if all is working fine, zip everything from your old working directory and extract it to the desired destination. Only then, change the storage settings and uncheck the 'Move files automatically' option.

  • Author
comment_179706
10 hours ago, BlackShot said:

@Orpheus It's best to restore your original folder/location backup first. Then, if all is working fine, zip everything from your old working directory and extract it to the desired destination. Only then, change the storage settings and uncheck the 'Move files automatically' option.

Can't do that, I don't have any recent backups before that change and it has been long time since I made the change.

Only some posts/topics are affected by this change which is weird.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.


Guest
Ответить в этой теме...

Последние посетители 0

  • No registered users viewing this page.