-
Notifications
You must be signed in to change notification settings - Fork 191
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
delete-stray-images.php
is totally broken as of c483e12
#350
Comments
That fix prevents a lot of orphaned files, but I still get them regularly for whatever reason, mostly with multi-image uploads. I threw together a script to move the orphan files that you can try. |
@Couchy i tried this but doesnt seem to be working, having problem moving files to orphan directory, could you check that again? |
@tunayuyar Did you change the variables at the start with your root directory, database, and credentials? I can't test this because I don't use vichan anymore. |
@Couchy yes i did. if i run it from browser it shows just 1 image moved and gives link(which not moved to orphan directory) if i run it through cli, see below
|
@tunayuyar Ah, in the rename calls, put quotes around the second argument. Not sure how that happened. |
@Couchy i think that worked. Also line 58 thumbnails was missing the quotes around second argument too, that fixed everything. |
Apparently we forgot about this script when we added multi image posting...in 2013.
c483e12
No one noticed until @tunayuyar opened #345, which is an as yet unknown bug probably in
post.php
, where it callsclean($pid)
.I'm not going to be fixing this (for free anyway), but am opening an issue so people are aware.
The text was updated successfully, but these errors were encountered: