-
Notifications
You must be signed in to change notification settings - Fork 920
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
Elfinder route issue #233
Comments
Having the same issue, there appears to be a config file generated for elfinder, and in it this:
But it doesn't seem to do anything with the config, or the name isn't right. Going to continue installing other modules and see if they have the same issue so I can work out what the config should be. Work around for now would be to hardcode in admin before it.
|
Modify the route section in the config/elfinder.php file like this:
|
That just means if the config entry doesn't exist then it falls back to /admin, but the config entry does exist in config/backpack/base.php - the issue is why it isn't being picked up in the elfinder config? To be accessible it would need to be registered in the ConfigServiceProvider somewhere? Don't know enough about how configs are loaded in Laravel 5 to know if that's been done and just doesn't matter / can't cross-config, or if it's not being done. Presume it must be done as you can access the config variables in blade templates. |
Yes, that is right. They know about it and they will fix it. Till then you can do the same as i did. |
Hi guys, I can't replicate the problem. Tried it on a bunch of projects and it worked for me. Also works out of the box if I change the admin prefix from 'admin' to 'administration'. @AurelDragut , if you didn't get this in your config/elfinder.php file when you published it 'route' => [
'prefix' => config('backpack.base.route_prefix').'/elfinder',
'middleware' => ['web', 'auth'], //Set to null to disable middleware filter
], it probably means: @unbolt , might be a service provider order issue? In you 'providers' => [
/*
* Laravel Framework Service Providers...
*/
Illuminate\Auth\AuthServiceProvider::class,
Illuminate\Broadcasting\BroadcastServiceProvider::class,
Illuminate\Bus\BusServiceProvider::class,
Illuminate\Cache\CacheServiceProvider::class,
Illuminate\Foundation\Providers\ConsoleSupportServiceProvider::class,
Illuminate\Cookie\CookieServiceProvider::class,
Illuminate\Database\DatabaseServiceProvider::class,
Illuminate\Encryption\EncryptionServiceProvider::class,
Illuminate\Filesystem\FilesystemServiceProvider::class,
Illuminate\Foundation\Providers\FoundationServiceProvider::class,
Illuminate\Hashing\HashServiceProvider::class,
Illuminate\Mail\MailServiceProvider::class,
Illuminate\Notifications\NotificationServiceProvider::class,
Illuminate\Pagination\PaginationServiceProvider::class,
Illuminate\Pipeline\PipelineServiceProvider::class,
Illuminate\Queue\QueueServiceProvider::class,
Illuminate\Redis\RedisServiceProvider::class,
Illuminate\Auth\Passwords\PasswordResetServiceProvider::class,
Illuminate\Session\SessionServiceProvider::class,
Illuminate\Translation\TranslationServiceProvider::class,
Illuminate\Validation\ValidationServiceProvider::class,
Illuminate\View\ViewServiceProvider::class,
/*
* Package Service Providers...
*/
//
/*
* Application Service Providers...
*/
App\Providers\AppServiceProvider::class,
// App\Providers\BroadcastServiceProvider::class,
App\Providers\AuthServiceProvider::class,
App\Providers\EventServiceProvider::class,
App\Providers\RouteServiceProvider::class,
/*
* Backpack Service Providers...
*/
Backpack\Base\BaseServiceProvider::class,
Backpack\CRUD\CrudServiceProvider::class,
Backpack\NewsCRUD\NewsCRUDServiceProvider::class,
Backpack\LangFileManager\LangFileManagerServiceProvider::class,
Spatie\Backup\BackupServiceProvider::class,
Backpack\BackupManager\BackupManagerServiceProvider::class,
Backpack\LogManager\LogManagerServiceProvider::class,
Backpack\Settings\SettingsServiceProvider::class,
Backpack\PageManager\PageManagerServiceProvider::class,
Backpack\PermissionManager\PermissionManagerServiceProvider::class,
Backpack\MenuCRUD\MenuCRUDServiceProvider::class,
Backpack\LangFileManager\LangFileManagerServiceProvider::class,
Barryvdh\Debugbar\ServiceProvider::class,
], Notice the first one is Base, then CRUD. Does this fix it for you? Cheers! |
i got that in the config file, but i had to add the "backup" value (you know, the one we setup in case we don't have a config/env value at that moment) in order to make it work, just like i wrote to @unbolt. It might be just a matter of "/" considering i added "/admin" and in the config file we have "admin". Could it be another server issue (just like the one with "enum")? |
@unbolt this should work for you: |
Has this issue been solved? i seem to be getting the same problem of not being able to access the elfinder from admin/elfinder but i can access it from /elfinder. I've done the installation process twice now and still same problem. adding 'admin' to the prefix in the elfinder config file seems to fix the problem but will only works for the default value in base.php. |
Did you try this? |
Hopefuly you guys have got this sorted now, I'm just closing it to keep it tidy, feel free to carry on if need be! :) if not try out the suggestions #191 |
I just made a fresh install to test some ideas and i discovered that there is a problem with elfinder routes: they all miss the "/admin" prefix. Did you change that? Or it needs a fix?
The text was updated successfully, but these errors were encountered: