Skip to content
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

Call to get $diskUsage can result in plugin failure #9

Closed
BlakesHeaven opened this issue Dec 30, 2020 · 0 comments
Closed

Call to get $diskUsage can result in plugin failure #9

BlakesHeaven opened this issue Dec 30, 2020 · 0 comments

Comments

@BlakesHeaven
Copy link
Owner

When a symbolic link exists for a missing folder the function to get the disk usage size fails and causes the whole plugin to fail.

Adding Try-Catch shows the following error:

Caught exception: SplFileInfo::getSize(): stat failed for /customers/a/f/3/uwcc.uk/httpd.www/bl-content/uploads/pages/monthly-mag-jan-21

Below shows the bad dir, "monthly-mag-jan-21":
image

Once the bad dir is deleted the issue is solved.

Because the getSize() function is core Bludit I won't be solving it here; I'll leave in the Try-Catch as this at least now shows the error and allows this plugin to continue working.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant