Giter Site home page Giter Site logo

Error 500 about laravel-file-manager HOT 9 CLOSED

alexusmai avatar alexusmai commented on August 16, 2024
Error 500

from laravel-file-manager.

Comments (9)

alexusmai avatar alexusmai commented on August 16, 2024

Hi,

What is in the logs?

from laravel-file-manager.

olcy avatar olcy commented on August 16, 2024

Hi,

Thank's for the reply, if i use the fm button i have this in log :

==> /var/log/nginx/access.log <== xxx.xxx.xxx.xxx - - [03/Jul/2019:19:43:15 +0200] "GET /gestion HTTP/2.0" 200 4426 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:67.0) Gecko/20100101 Firefox/67.0" xxx.xxx.xxx.xxx - - [03/Jul/2019:19:43:16 +0200] "GET /assets/backend/fonts/fontawesome-webfont.woff2?v=4.7.0 HTTP/2.0" 200 77391 "https://domain.com/assets/backend/css/font-awesome.min.css" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:67.0) Gecko/20100101 Firefox/67.0" xxx.xxx.xxx.xxx - - [03/Jul/2019:19:43:18 +0200] "GET /gestionnaire-de-medias HTTP/2.0" 200 2931 "https://domain.com/gestion" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:67.0) Gecko/20100101 Firefox/67.0" xxx.xxx.xxx.xxx - - [03/Jul/2019:19:43:18 +0200] "GET /file-manager/fm-button HTTP/2.0" 200 1430 "https://domain.com/gestionnaire-de-medias" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:67.0) Gecko/20100101 Firefox/67.0" xxx.xxx.xxx.xxx - - [03/Jul/2019:19:43:18 +0200] "GET /file-manager/initialize HTTP/2.0" 200 947 "https://domain.com/file-manager/fm-button" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:67.0) Gecko/20100101 Firefox/67.0" xxx.xxx.xxx.xxx - - [03/Jul/2019:19:43:18 +0200] "GET /file-manager/content?disk=public HTTP/2.0" 500 732 "https://domain.com/file-manager/fm-button" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:67.0) Gecko/20100101 Firefox/67.0" xxx.xxx.xxx.xxx - - [03/Jul/2019:19:43:18 +0200] "GET /file-manager/tree?disk=public HTTP/2.0" 500 734 "https://domain.com/file-manager/fm-button" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:67.0) Gecko/20100101 Firefox/67.0"

If i use tinymce :
==> /var/log/nginx/access.log <== xxx.xxx.xxx.xxx - - [03/Jul/2019:19:48:02 +0200] "GET /file-manager/tinymce HTTP/2.0" 200 1647 "https://domain.com/gestion/wiki/edit/43" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:67.0) Gecko/20100101 Firefox/67.0" xxx.xxx.xxx.xxx - - [03/Jul/2019:19:48:02 +0200] "GET /file-manager/initialize HTTP/2.0" 200 950 "https://domain.com/file-manager/tinymce" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:67.0) Gecko/20100101 Firefox/67.0" xxx.xxx.xxx.xxx - - [03/Jul/2019:19:48:02 +0200] "GET /file-manager/content?disk=public HTTP/2.0" 500 739 "https://domain.com/file-manager/tinymce" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:67.0) Gecko/20100101 Firefox/67.0" xxx.xxx.xxx.xxx - - [03/Jul/2019:19:48:02 +0200] "GET /file-manager/tree?disk=public HTTP/2.0" 500 729 "https://domain.com/file-manager/tinymce" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:67.0) Gecko/20100101 Firefox/67.0"

I have no error in error.log and no error in laravel.log

Thnk's in advance for you're help 👍

from laravel-file-manager.

alexusmai avatar alexusmai commented on August 16, 2024

Maybe you forgot to create symbolic link (if your disk use storage/app folder) - docs

Folders permissions - something like this:

find /var/www/your_folder_here -type f -exec chmod 644 {} \;

find /var/www/your_folder_here -type d -exec chmod 755 {} \;

find /var/www/your_folder_here/storage/* -type d -exec chmod 775 {} \;

find /var/www/your_folder_here/bootstrap/cache -type d -exec chmod 775 {} \;

Show your config - filesystems.php ('disks' array)

from laravel-file-manager.

olcy avatar olcy commented on August 16, 2024

I have tried you're solutions for permissions but it's dosn't help.

This my filesystems.php

`<?php

return [

/*
|--------------------------------------------------------------------------
| Default Filesystem Disk
|--------------------------------------------------------------------------
|
| Here you may specify the default filesystem disk that should be used
| by the framework. The "local" disk, as well as a variety of cloud
| based disks are available to your application. Just store away!
|
*/

'default' => env('FILESYSTEM_DRIVER', 'local'),

/*
|--------------------------------------------------------------------------
| Default Cloud Filesystem Disk
|--------------------------------------------------------------------------
|
| Many applications store files both locally and in the cloud. For this
| reason, you may specify a default "cloud" driver here. This driver
| will be bound as the Cloud disk implementation in the container.
|
*/

'cloud' => env('FILESYSTEM_CLOUD', 's3'),

/*
|--------------------------------------------------------------------------
| Filesystem Disks
|--------------------------------------------------------------------------
|
| Here you may configure as many filesystem "disks" as you wish, and you
| may even configure multiple disks of the same driver. Defaults have
| been setup for each driver as an example of the required options.
|
| Supported Drivers: "local", "ftp", "sftp", "s3", "rackspace"
|
*/

'disks' => [

    'local' => [
        'driver' => 'local',
        'root' => storage_path('app'),
    ],

    'public' => [
        'driver' => 'local',
        'root' => storage_path('app/public'),
        'url' => env('APP_URL').'/storage',
        'visibility' => 'public',
    ],

    's3' => [
        'driver' => 's3',
        'key' => env('AWS_ACCESS_KEY_ID'),
        'secret' => env('AWS_SECRET_ACCESS_KEY'),
        'region' => env('AWS_DEFAULT_REGION'),
        'bucket' => env('AWS_BUCKET'),
        'url' => env('AWS_URL'),
    ],

],

];
`
Thank's for you're time !

from laravel-file-manager.

alexusmai avatar alexusmai commented on August 16, 2024

Try to check your filesystems settings without using LFM, use tinker:

php artisan tinker

// try to execute command - the list of folders in the root directory of the drive should be displayed.
Storage::disk('public')->directories();

from laravel-file-manager.

olcy avatar olcy commented on August 16, 2024

The command return this :
`Psy Shell v0.9.9 (PHP 7.3.6-1+020190531112735.39+stretch1.gbp6131b7 — cli) by Justin Hileman

Storage::disk('public')->directories();
PHP Warning: mkdir(): Invalid path in /var/www/sarp-front-end/vendor/league/flysystem/src/Adapter/Local.php on line 104
League/Flysystem/Exception with message 'Impossible to create the root directory "". '
`

from laravel-file-manager.

alexusmai avatar alexusmai commented on August 16, 2024

I think the problem is in the folder permissions... you using storage folder - it mean you need to create a symbolic link(see higher), then you need to add folders permissions:

find /var/www/your_folder_here/storage/* -type d -exec chmod 775 {} \;

The user may not have access rights to these folders...

from laravel-file-manager.

olcy avatar olcy commented on August 16, 2024

Thnk's for you're help @alexusmai !

The problem is solved, i have delete the symlink in /var/www/public/storage
and in /var/www/storage/app/storage

And i have tried to regenerate it with php artisan storage:link

You're package is awesome ! 👍

from laravel-file-manager.

yudhees avatar yudhees commented on August 16, 2024

@alexusmai I have an issue when I upload my project in live server and opens file manager it give internal server error 500 but file manager works fine in localhost please help me to resolve this

from laravel-file-manager.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.