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

Critical: 'Path cannot be empty' #3270

Closed
RixzZ opened this issue Mar 14, 2021 · 3 comments
Closed

Critical: 'Path cannot be empty' #3270

RixzZ opened this issue Mar 14, 2021 · 3 comments
Assignees

Comments

@RixzZ
Copy link

RixzZ commented Mar 14, 2021

Fresh install with:

  • Grav: v1.7.7
  • Admin: v1.10.6

Going to Tools > Logs and selecting 'Email Log' on the first dropdown menu throws a 500 error.

In the 'Grav System Log' a 'critical' error shows up as 'Path cannot be empty' with the following verbose output:

 /var/www/html/system/src/Grav/Common/Helpers/LogViewer.php(57): fopen('', 'rb') 
 /var/www/html/system/src/Grav/Common/Helpers/LogViewer.php(36): Grav\Common\Helpers\LogViewer->tail(false, 20) 
 /var/www/html/vendor/twig/twig/src/Template.php(702): Grav\Common\Helpers\LogViewer->objectTail(false, 20, false) 
 /var/www/html/cache/twig/94/94b142c62db7e41d8b6f634ef8f90cce3bce97689e798c31d9c84cb6d9d6118b.php(54): Twig\Template->getAttribute(Object(Grav\Common\Helpers\LogViewer), 'objectTail', Array, 'method') 
 /var/www/html/vendor/twig/twig/src/Template.php(453): __TwigTemplate_aaf73f8a8f4bbad5ac0b80447e6a6dd88bce94b156e2ce84bd99ff37f32f35e5->doDisplay(Array, Array) 
 /var/www/html/vendor/twig/twig/src/Template.php(420): Twig\Template->displayWithErrorHandling(Array, Array) 
 /var/www/html/cache/twig/89/8908abb9fd86e218bef96a07a2085efb6f058b4bd3b7ab75f44133d3c3057942.php(166): Twig\Template->display(Array) 
 /var/www/html/vendor/twig/twig/src/Template.php(214): __TwigTemplate_9911a9be75d869c7c91dcb31c59b331e1be18d826531fd932963706b5a5d1116->block_content(Array, Array) 
 /var/www/html/cache/twig/e2/e2d8c56b2cabf6174f67c5b934befacc91956b0682a9a6625766d45b4ed68d77.php(317): Twig\Template->displayBlock('content', Array, Array) 
 /var/www/html/vendor/twig/twig/src/Template.php(214): __TwigTemplate_8da8783a11985568a56090ec88cc253b1c6df47687c434d66458f7838f80ab1d->block_content_wrapper(Array, Array) 

I can see that the HTTP request performed when using that option is '/admin/tools/logs?verbose=true&log=email.log'. I don't have an 'email.log' file on any path of my Grav installation so I guess that can be the problem.

There is a similar issue described on #3265, but what you have to do to reproduce it is way different, so I don't know if this have the same origin.

@mahagr
Copy link
Member

mahagr commented Mar 15, 2021

This doesn't look like the same issue as in #3265 which was a bug in uploaded file handling.

Might be related to the missing log file, there's likely a missing check for file existance.

@RixzZ
Copy link
Author

RixzZ commented Mar 16, 2021

Great, thanks!

@rhukster
Copy link
Member

released

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

No branches or pull requests

3 participants