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

Possible incompatibility with Telescope #1721

Closed
MattRogowski opened this issue Apr 22, 2020 · 8 comments · Fixed by #3023
Closed

Possible incompatibility with Telescope #1721

MattRogowski opened this issue Apr 22, 2020 · 8 comments · Fixed by #3023
Labels

Comments

@MattRogowski
Copy link

MattRogowski commented Apr 22, 2020

Bug Description

When installing Telescope if you have a cached config file, the following error is thrown:

InvalidArgumentException 
Driver [statamic] is not supported.

image

I haven't changed any of the drivers from a default installation, other than the queue driver to use redis.

No idea if this is an issue with Statamic or Telescope, so feel free to close if it's not your problem.

How to Reproduce

Install Laravel Telescope
Cache your config file with php artisan config:cache
The whole application will error
The only way to then fix is to set TELESCOPE_ENABLED=false in your .env file and then run rm bootstrap/cache/config.php followed by another php artisan config:cache

Environment

Statamic version: 3.0.0-beta.26
PHP version: 7.4.2
Install method (choose one): Fresh install from statamic/statamic

@dannylepage
Copy link

Hi @MattRogowski were you ever able to resolve this problem?

@MattRogowski
Copy link
Author

@dannylepage Still seems to happen on the latest build for me, I just disabled config caching in the end.

@dellow
Copy link

dellow commented Aug 28, 2020

Also seeing this issue.

@jasonvarga
Copy link
Member

You shouldn't be caching your config locally. Avoid caching your config is the solution here.

@roelofr
Copy link

roelofr commented Oct 1, 2020

I'm seeing this error too on my production environment when I have the caching method set to file (Redis or other memory-based caches are not an option). This is not just for local dev but it also blocks the php artisan optimize command.

Debug info:

Statamic 3.0.14 Pro
Laravel 7.28.3
PHP 7.4.8

@aimensasi
Copy link

Any updates on this. I need to cache the config for optimization on production and the issue still persist.

@jasonvarga
Copy link
Member

Telescope is a development tool. We're not going to dedicate time to working on making it work in production.
If you can figure it out, we'd happily accept a pull request.

If I was to guess at a solution, I might try disabling the auto-discovery and manually register the telescope provider as per the instructions here. https://laravel.com/docs/8.x/telescope#local-only-installation
Seems like the issue is that it gets wired up before Statamic.

@jasonvarga
Copy link
Member

Actually now that I've said I wouldn't spend time on it, I think I've found a solution. 😆

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

Successfully merging a pull request may close this issue.

7 participants