• 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

Error unlinking directory while deleting some users

lovedigit

👽 Chevereto Freak
▶ Reproduction steps
  1. Edit user profile
  2. Delete user profile
  3. System throw error if user has folder which needs to be unlinked
😢 Unexpected result

Website shows "An error occurred. Please try again later." but error is reported in php as mentioned below:

📃 Error log message

How could I be so stupid. My php reporting was off in chevereto system settings. So, system was not throwing any error even when debug level was set to 3.
Here is the stack trace which is shown while deleting certain users.


[CODE title="error"]Fatal error [0]: unlink(/var/www/path/content/images/users/WfMdD): Is a directory
Triggered in /app/lib/classes/class.user.php at line 462

Stack trace:
#0 /app/routes/route.json.php(1124): CHV\User::delete()
#1 /lib/G/classes/class.handler.php(235): G\Handler->{closure}()
#2 /lib/G/classes/class.handler.php(135): G\Handler->processRequest()
#3 /app/web.php(478): G\Handler->__construct()
#4 /app/loader.php(299): require_once('/app/web.php')
#5 /index.php(20): include_once('/app/loader.php')" while reading response header from upstream, client: IP-redacted, server: domain.com, request: "POST /json HTTP/1.1", upstream: "fastcgi://unix:/var/run/php/php7.4-fpm-domain.sock:", host: "domain.com", referrer: "https://domain.com/dashboard/user/{user-id-redacted}"[/CODE]
 
Back
Top