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

production.ERROR: Class "Opcodes\LogViewer\Utils\Utils" not found #126

Closed
Tiagospem opened this issue Oct 9, 2022 · 5 comments
Closed

Comments

@Tiagospem
Copy link

Hi, on production server sometimes this error occurs

[2022-10-08 22:26:55] production.ERROR: Class "Opcodes\LogViewer\Utils\Utils" not found (View: /var/www/vhosts/topoleiloes.com.br/httpdocs/vendor/opcodesio/log-viewer/resources/views/livewire/log-list.blade.php) {"userId":20000,"exception":"[object] (Illuminate\\View\\ViewException(code: 0): Class \"Opcodes\\LogViewer\\Utils\\Utils\" not found (View: /var/www/vhosts/topoleiloes.com.br/httpdocs/vendor/opcodesio/log-viewer/resources/views/livewire/log-list.blade.php)

CleanShot 2022-10-08 at 22 34 29@2x

@arukompas
Copy link
Contributor

hey @Tiagospem , can you please try clearing the view cache? And updating to the latest Log Viewer. The class definitely exists.

@Tiagospem
Copy link
Author

Tiagospem commented Oct 19, 2022

I don't know what happens anymore. I install the package via composer require, I run it the first time, it works perfectly, after a while, error 500 appears, always something is wrong, this only happens with a project in production.

The only thing different is that I use the redis cache, but I have 7 other similar projects and that doesn't happen.

CleanShot.2022-10-19.at.16.36.32.mp4
CleanShot.2022-10-19.at.16.38.12.mp4

production.ERROR: Undefined variable $showLevelsDropdown (View: /var/www/vhosts/topoleiloes.com.br/httpdocs/vendor/opcodesio/log-viewer/resources/views/livewire/log-list.blade.php) (View: /var/www/vhosts/topoleiloes.com.br/httpdocs/vendor/opcodesio/log-viewer/resources/views/livewire/log-list.blade.php) {"userId":20000,"exception":"[object] (Illuminate\\View\\ViewException(code: 0): Undefined variable $showLevelsDropdown (View: /var/www/vhosts/topoleiloes.com.br/httpdocs/vendor/opcodesio/log-viewer/resources/views/livewire/log-list.blade.php) (View: /var/www/vhosts/topoleiloes.com.br/httpdocs/vendor/opcodesio/log-viewer/resources/views/livewire/log-list.blade.php) at /var/www/vhosts/topoleiloes.com.br/httpdocs/storage/framework/views/1b6e4ae27ba0e61a057f2be9e60b9f03d350bd65.php:10)

@arukompas
Copy link
Contributor

Hey @Tiagospem

The first video shows installation of a different package :)
You can install this package with the command composer require opcodesio/log-viewer

Also the error Undefined variable $showLevelsDropdown is now different from the original one. I've released an update, v1.6.3 which hopefully fixes this error for you :) Let me know!

@Tiagospem
Copy link
Author

sorry, I confused the package installation :/, but the problem occurred with the correct package. Updated to the latest version, let's see, thanks

@arukompas
Copy link
Contributor

No problem @Tiagospem

Closing as it's potentially fixed. Let me know if there's still an issue with v1.6.3 version.

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