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

TypeError: is_file(): Argument #1 ($filename) must be of type string, SplFileInfo given in /var/www/html/lib/private/Profiler/FileProfilerStorage.php:103 #194

Closed
come-nc opened this issue Apr 17, 2023 · 0 comments · Fixed by nextcloud/server#37834
Assignees

Comments

@come-nc
Copy link
Contributor

come-nc commented Apr 17, 2023

$ occ profiler:clear
An unhandled exception has been thrown:
TypeError: is_file(): Argument #1 ($filename) must be of type string, SplFileInfo given in /var/www/html/lib/private/Profiler/FileProfilerStorage.php:103
Stack trace:
#0 /var/www/html/lib/private/Profiler/FileProfilerStorage.php(103): is_file(Object(SplFileInfo))
#1 /var/www/html/lib/private/Profiler/Profiler.php(119): OC\Profiler\FileProfilerStorage->purge()
#2 /var/www/html/apps-extra/profiler/lib/Command/Clear.php(30): OC\Profiler\Profiler->clear()
#3 /var/www/html/apps-extra/photos/vendor/symfony/console/Command/Command.php(298): OCA\Profiler\Command\Clear->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#4 /var/www/html/core/Command/Base.php(177): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#5 /var/www/html/apps-extra/photos/vendor/symfony/console/Application.php(1040): OC\Core\Command\Base->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#6 /var/www/html/apps-extra/photos/vendor/symfony/console/Application.php(301): Symfony\Component\Console\Application->doRunCommand(Object(OCA\Profiler\Command\Clear), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#7 /var/www/html/apps-extra/photos/vendor/symfony/console/Application.php(171): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#8 /var/www/html/lib/private/Console/Application.php(215): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#9 /var/www/html/console.php(100): OC\Console\Application->run()
#10 /var/www/html/occ(11): require_once('/var/www/html/c...')
#11 {main}⏎       
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

Successfully merging a pull request may close this issue.

1 participant