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

Install Problem #22

Closed
mpf101112 opened this issue May 31, 2016 · 4 comments
Closed

Install Problem #22

mpf101112 opened this issue May 31, 2016 · 4 comments
Assignees
Labels

Comments

@mpf101112
Copy link

I am receiving this error and do not know how to fix it.

Invalid backend configuration.
Readable volumes not available.

Help please

Thanks

@tabacitu
Copy link
Member

tabacitu commented Jun 1, 2016

I'm assuming this error is just in the File Manager view.

Did you:

  1. publish the elFinder config file, like instructed in step 3?
    php artisan vendor:publish --provider="Backpack\CRUD\CrudServiceProvider" --tag="elfinder"
  2. do step 5?

This error is usually thrown when there's an issue either in config/filesystems.php or in config/elfinder.php. This is how config/elfinder.php should look:


    /*
    |--------------------------------------------------------------------------
    | Upload dir
    |--------------------------------------------------------------------------
    |
    | The dir where to store the images (relative from public)
    |
    */
    'dir' => ['uploads'],

    /*
    |--------------------------------------------------------------------------
    | Filesystem disks (Flysytem)
    |--------------------------------------------------------------------------
    |
    | Define an array of Filesystem disks, which use Flysystem.
    | You can set extra options, example:
    |
    | 'my-disk' => [
    |        'URL' => url('to/disk'),
    |        'alias' => 'Local storage',
    |    ]
    */
    'disks' => [
    ],

    /*
    |--------------------------------------------------------------------------
    | Routes group config
    |--------------------------------------------------------------------------
    |
    | The default group settings for the elFinder routes.
    |
    */

    'route' => [
        'prefix' => 'admin/elfinder',
        'middleware' => ['web', 'auth'], //Set to null to disable middleware filter
    ],

    /*
    |--------------------------------------------------------------------------
    | Access filter
    |--------------------------------------------------------------------------
    |
    | Filter callback to check the files
    |
    */

    'access' => 'Barryvdh\Elfinder\Elfinder::checkAccess',

    /*
    |--------------------------------------------------------------------------
    | Roots
    |--------------------------------------------------------------------------
    |
    | By default, the roots file is LocalFileSystem, with the above public dir.
    | If you want custom options, you can set your own roots below.
    |
    */

    'roots' => null,

    /*
    |--------------------------------------------------------------------------
    | Options
    |--------------------------------------------------------------------------
    |
    | These options are merged, together with 'roots' and passed to the Connector.
    | See https://github.com/Studio-42/elFinder/wiki/Connector-configuration-options-2.1
    |
    */

    'options' => array(),

    /*
    |--------------------------------------------------------------------------
    | Root Options
    |--------------------------------------------------------------------------
    |
    | These options are merged, together with every root by default.
    | See https://github.com/Studio-42/elFinder/wiki/Connector-configuration-options-2.1#root-options
    |
    */
    'root_options' => array(

    ),

@mpf101112
Copy link
Author

Hi, I’m new with Laravel and appreciate the response.

I went through all the steps and this is what I have.

// config/filesystems.php

|

*/



'disks' => [



    'local' => [

        'driver' => 'local',

        'root' => storage_path('app'),

    ],



    'public' => [

        'driver' => 'local',

        'root' => storage_path('app/public'),

        'visibility' => 'public',

    ],



    's3' => [

        'driver' => 's3',

        'key' => 'your-key',

        'secret' => 'your-secret',

        'region' => 'your-region',

        'bucket' => 'your-bucket',

    ],



    'uploads' => [

        'driver' => 'local',

        'root' => public_path('uploads'),

    ],

],

];

//--config/elfinder.php

|--------------------------------------------------------------------------

| Upload dir

|--------------------------------------------------------------------------

|

| The dir where to store the images (relative from public)

|

*/

'dir' => ['uploads'],



/*

|--------------------------------------------------------------------------

| Filesystem disks (Flysytem)

|--------------------------------------------------------------------------

|

| Define an array of Filesystem disks, which use Flysystem.

| You can set extra options, example:

|

| 'my-disk' => [

|        'URL' => url('to/disk'),

|        'alias' => 'Local storage',

|    ]

*/

'disks' => [

    // 'uploads',

],

/*

|--------------------------------------------------------------------------

| Routes group config

|--------------------------------------------------------------------------

|

| The default group settings for the elFinder routes.

|

*/



'route' => [

    'prefix'     => 'admin/elfinder',

    'middleware' => ['web', 'auth'], //Set to null to disable middleware filter

],



/*

|--------------------------------------------------------------------------

| Access filter

|--------------------------------------------------------------------------

|

| Filter callback to check the files

|

*/



'access' => 'Barryvdh\Elfinder\Elfinder::checkAccess',



/*

|--------------------------------------------------------------------------

| Roots

|--------------------------------------------------------------------------

|

| By default, the roots file is LocalFileSystem, with the above public dir.

| If you want custom options, you can set your own roots below.

|

*/



'roots' => null,



/*

|--------------------------------------------------------------------------

| Options

|--------------------------------------------------------------------------

|

| These options are merged, together with 'roots' and passed to the Connector.

| See https://github.com/Studio-42/elFinder/wiki/Connector-configuration-options-2.1

|

*/



'options' => [],

];

Thanks

From: Cristian Tabacitu [mailto:[email protected]]
Sent: Wednesday, June 1, 2016 12:46 AM
To: Laravel-Backpack/crud [email protected]
Cc: mpf101112 [email protected]; Author [email protected]
Subject: Re: [Laravel-Backpack/crud] Install Problem (#22)

I'm assuming this error is just in the File Manager view.

Did you:

  1. publish the elFinder config file, like instructed in step 3?
    php artisan vendor:publish --provider="Backpack\CRUD\CrudServiceProvider" --tag="elfinder"
  2. do step 5?

This error is usually thrown when there's an issue either in config/filesystems.php or in config/elfinder.php. This is how config/elfinder.php should look:

/*
|--------------------------------------------------------------------------
| Upload dir
|--------------------------------------------------------------------------
|
| The dir where to store the images (relative from public)
|
*/
'dir' => ['uploads'],

/*
|--------------------------------------------------------------------------
| Filesystem disks (Flysytem)
|--------------------------------------------------------------------------
|
| Define an array of Filesystem disks, which use Flysystem.
| You can set extra options, example:
|
| 'my-disk' => [
|        'URL' => url('to/disk'),
|        'alias' => 'Local storage',
|    ]
*/
'disks' => [
],

/*
|--------------------------------------------------------------------------
| Routes group config
|--------------------------------------------------------------------------
|
| The default group settings for the elFinder routes.
|
*/

'route' => [
    'prefix' => 'admin/elfinder',
    'middleware' => ['web', 'auth'], //Set to null to disable middleware filter
],

/*
|--------------------------------------------------------------------------
| Access filter
|--------------------------------------------------------------------------
|
| Filter callback to check the files
|
*/

'access' => 'Barryvdh\Elfinder\Elfinder::checkAccess',

/*
|--------------------------------------------------------------------------
| Roots
|--------------------------------------------------------------------------
|
| By default, the roots file is LocalFileSystem, with the above public dir.
| If you want custom options, you can set your own roots below.
|
*/

'roots' => null,

/*
|--------------------------------------------------------------------------
| Options
|--------------------------------------------------------------------------
|
| These options are merged, together with 'roots' and passed to the Connector.
| See https://github.com/Studio-42/elFinder/wiki/Connector-configuration-options-2.1
|
*/

'options' => array(),

/*
|--------------------------------------------------------------------------
| Root Options
|--------------------------------------------------------------------------
|
| These options are merged, together with every root by default.
| See https://github.com/Studio-42/elFinder/wiki/Connector-configuration-options-2.1#root-options
|
*/
'root_options' => array(

),


You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub #22 (comment) , or mute the thread https://github.com/notifications/unsubscribe/AM7CFptOA7vzkI94OKUh-zfO6rMs7J7-ks5qHSqkgaJpZM4IqzXx .

@tabacitu
Copy link
Member

tabacitu commented Jun 3, 2016

Ok, I'll investigate, maybe the file publishing doesn't work any more.
In the meantime, please use the configuration I've posted above.

Cheers!

@tabacitu tabacitu self-assigned this Jun 3, 2016
@tabacitu tabacitu added the Bug label Jun 3, 2016
@tabacitu
Copy link
Member

Checked, installed multiple times, works as expected.

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

No branches or pull requests

2 participants