• Welcome to the Chevereto User Community!

    Here, users from all over the world come together to learn, share, and collaborate on everything related to Chevereto. It's a place to exchange ideas, ask questions, and help improve the software.

    Please keep in mind:

    • This community is user-driven. Always be polite and respectful to others.
    • Support development by purchasing a Chevereto license, which also gives you priority support.
    • Go further by joining the Community Subscription for even faster response times and to help sustain this space
  • Chevereto Support CLST

    Support response

    Support checklist

    • Got a Something went wrong message? Read this guide and provide the actual error. Do not skip this.
    • Confirm that the server meets the System Requirements
    • Check for any available Hotfix - your issue could be already reported/fixed
    • Read documentation - It will be required to Debug and understand Errors for a faster support response

unlink fails with multiple files in one call

Status
Not open for further replies.

lonepress

Chevereto Member
In a few places, chevereto attempts to delete multiple files by calling unlink with multiple arguments. This doesn't work, and results in the deletion attempt failing silently. It works fine if you replace the call with a foreach loop calling unlink each iteration.

This is happening in:
app/lib/classes/class.image.php: line 505
app/lib/classes/class.user.php: lines 228 and 266
app/routes/route.json.php: line 919
 
Ok, I've changed it but class user doesn't have unlink() with multiple arguments.
 
Yes, you were right, I didn't look close enough. The 2 in user called unlink(str_replace(...)), and I didn't notice the str_replace call.
 
Status
Not open for further replies.
Back
Top