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

Undefined array key "root"[Bug]: #3900

Closed
1 task done
MuhammadAslam945 opened this issue Mar 21, 2023 · 8 comments
Closed
1 task done

Undefined array key "root"[Bug]: #3900

MuhammadAslam945 opened this issue Mar 21, 2023 · 8 comments
Labels

Comments

@MuhammadAslam945
Copy link

Is the bug applicable and reproducable to the latest version of the package and hasn't it been reported before?

  • Yes, it's still reproducable

What version of Laravel Excel are you using?

3.1

What version of Laravel are you using?

9.75

What version of PHP are you using?

8.1

Describe your issue

Undefined array key "root"

How can the issue be reproduced?

Undefined array key "root"

What should be the expected behaviour?

Undefined array key "root"

@MuhammadAslam945
Copy link
Author

Please tell me how i over ride this issue

@patrickbrouwers
Copy link
Member

Sounds like an issue in your own code. Maybe Stackoverflow can help you.

@MuhammadAslam945
Copy link
Author

No I try to find solutions throw stackoverflow it's nothing suggest any thing

@MuhammadAslam945
Copy link
Author

The same code working fine with 8.0 version
same code same library

@MuhammadAslam945
Copy link
Author

even it no tell me in which file that cause

@MuhammadAslam945
Copy link
Author

:\Users\MuhammadAslam\Downloads\laravel\installment_app\vendor\laravel\framework\src\Illuminate\Filesystem\FilesystemManager
.php

: 183

 * @param  array  $config

 * @return \Illuminate\Contracts\Filesystem\Filesystem

 */

public function createLocalDriver(array $config)

{

    $visibility = PortableVisibilityConverter::fromArray(

        $config['permissions'] ?? [],

        $config['directory_visibility'] ?? $config['visibility'] ?? Visibility::PRIVATE

    );



    $links = ($config['links'] ?? null) === 'skip'

        ? LocalAdapter::SKIP_LINKS

        : LocalAdapter::DISALLOW_LINKS;



    $adapter = new LocalAdapter(

        $config['root'], $visibility, $config['lock'] ?? LOCK_EX, $links

    );



    return new FilesystemAdapter($this->createFlysystem($adapter, $config), $adapter, $config);

}



/**

 * Create an instance of the ftp driver.

 *

 * @param  array  $config

 * @return \Illuminate\Contracts\Filesystem\Filesystem

 */

public function createFtpDriver(array $config)

{

@patrickbrouwers
Copy link
Member

You are refering to a Laravel class, you are reporting the bug in the wrong repository

@MuhammadAslam945
Copy link
Author

I found Issue My locat root directory is commented

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