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

errors showing in dashboard #39

Closed
nicholastillman opened this issue Jun 16, 2016 · 9 comments
Closed

errors showing in dashboard #39

nicholastillman opened this issue Jun 16, 2016 · 9 comments

Comments

@nicholastillman
Copy link

I am getting this in the dashboard:

Last 10 PHP Errors
[16-Jun-2016 19:10:13 UTC] PHP Warning: file_put_contents(cache/host-sites-1466104213.txt): failed to open stream: No such file or directory
in /srv/www/default/dashboard/vvv_dash/cache.php on line 87

[16-Jun-2016 19:10:13 UTC] PHP Warning: Invalid argument supplied for foreach()
in /srv/www/default/dashboard/vvv_dash/cache.php on line 167

[16-Jun-2016 19:10:13 UTC] PHP Warning: scandir(): (errno 2): No such file or directory
in /srv/www/default/dashboard/vvv_dash/cache.php on line 165

[16-Jun-2016 19:10:13 UTC] PHP Warning: scandir(cache/): failed to open dir: No such file or directory
in /srv/www/default/dashboard/vvv_dash/cache.php on line 165

[16-Jun-2016 19:10:13 UTC] PHP Warning: Invalid argument supplied for foreach()
in /srv/www/default/dashboard/vvv_dash/cache.php on line 167

[16-Jun-2016 19:10:13 UTC] PHP Warning: scandir(): (errno 2): No such file or directory
in /srv/www/default/dashboard/vvv_dash/cache.php on line 165

[16-Jun-2016 19:10:13 UTC] PHP Warning: scandir(cache/): failed to open dir: No such file or directory
in /srv/www/default/dashboard/vvv_dash/cache.php on line 165

Suggestions?

Thanks for this great tool to use in development by the way.

@topdown
Copy link
Owner

topdown commented Jun 16, 2016

If it does not exist, create directory {your_vagrant_dir}/www/default/dashboard/cache
Changing {your_vagrant_dir} to where ever you have this setup

Then chmod it to 777

If that does not work you may have to do it in the box

vagrant ssh
mkdir /srv/www/default/dashboard/vvv_dash/cache
chmod 777 /srv/www/default/dashboard/vvv_dash/cache
exit

Thanks

@nicholastillman
Copy link
Author

Tried but neither process worked. Ill try uninstalling then reinstalling.

@topdown
Copy link
Owner

topdown commented Jun 17, 2016

Ok, thats weird, I would have thought it would have fixed it.
I'm going to run some tests also to see if I can replicate the issue.

@nicholastillman
Copy link
Author

Thanks for your help

@topdown
Copy link
Owner

topdown commented Jun 17, 2016

Are you just seeing these errors in the Last 10 Errors or are you seeing them on screen?

The last 10 errors will always be there as they are pulled from the server error.log

@topdown
Copy link
Owner

topdown commented Jun 17, 2016

This startup issue should be fixed in the latest develop and master branches now.

Note: the errors will still show in the latest 10 errors box, which is just pulled from the logs. Its not happening every time.
The only way to make that go away is to delete the log.
Go to the directory you have this vagrant setup and open the log directory.
Delete php_errors.log

That will empty the Last 10 Errors box.

@nicholastillman
Copy link
Author

In the Last 10, It doesn't show on my work computer, I'll delete the errors log. Will the log regenerate if any errors occur? I see it as helpful in debugging, just was't sure what was causing it. Again thanks for your help, and for a great resource!

@topdown
Copy link
Owner

topdown commented Jun 17, 2016

Yes, it regenerates when the server detects PHP errors.

@topdown
Copy link
Owner

topdown commented Jun 18, 2016

Closing this for now. Feel free to open a new ticket if you have any more issues. Thanks

@topdown topdown closed this as completed Jun 18, 2016
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

2 participants