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

image not display #290

Open
daltancarlos opened this issue May 3, 2018 · 3 comments
Open

image not display #290

daltancarlos opened this issue May 3, 2018 · 3 comments

Comments

@daltancarlos
Copy link

Hi guys, after i upload my image. It was not working. Permission set to 777. Here is the error
2018-05-03 09:33:45] local.ERROR: Symfony\Component\Debug\Exception\FatalThrowableError: Call to undefined function Illuminate\Filesystem\finfo_file() in /home/xms/public_html/laraadmincode/vendor/laravel/framework/src/Illuminate/Filesystem/Filesystem.php:254
Stack trace:
#0 /home/xms/public_html/laraadmincode/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(217): Illuminate\Filesystem\Filesystem->mimeType('/home/xms/publi...')
#1 /home/xms/public_html/laraadmincode/app/Http/Controllers/LA/UploadsController.php(127): Illuminate\Support\Facades\Facade::__callStatic('mimeType', Array)
#2 [internal function]: App\Http\Controllers\LA\UploadsController->get_file('tqb6quqhbcvlcar...', 'REAL-ID_icon_pu...')
#3 /home/xms/public_html/laraadmincode/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(80): call_user_func_array(Array, Array)
#4 /home/xms/public_html/laraadmincode/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(146): Illuminate\Routing\Controller->callAction('get_file', Array)
#5 /home/xms/public_html/laraadmincode/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(94): Illuminate\Routing\ControllerDispatcher->call(Object(App\Http\Controllers\LA\UploadsController), Object(Illuminate\Routing\Route), 'get_file')
#6 [internal function]: Illuminate\Routing\ControllerDispatcher->Illuminate\Routing{closure}(Object(Illuminate\Http\Request))
#7 /home/xms/public_html/laraadmincode/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php(52): call_user_func(Object(Closure), Object(Illuminate\Http\Request))
#8 [internal function]: Illuminate\Routing\Pipeline->Illuminate\Routing{closure}(Object(Illuminate\Http\Request))
#9 /home/xms/public_html/laraadmincode/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(102): call_user_func(Object(Closure), Object(Illuminate\Http\Request))
#10 /home/xms/public_html/laraadmincode/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(96): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#11 /home/xms/public_html/laraadmincode/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(54): Illuminate\Routing\ControllerDispatcher->callWithinStack(Object(App\Http\Controllers\LA\UploadsController), Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request), 'get_file')
#12 /home/xms/public_html/laraadmincode/vendor/laravel/framework/src/Illuminate/Routing/Route.php(174): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request), 'App\Http\Contro...', 'get_file')
#13 /home/xms/public_html/laraadmincode/vendor/laravel/framework/src/Illuminate/Routing/Route.php(140): Illuminate\Routing\Route->runController(Object(Illuminate\Http\Request))
#14 /home/xms/public_html/laraadmincode/vendor/laravel/framework/src/Illuminate/Routing/Router.php(724): Illuminate\Routing\Route->run(Object(Illuminate\Http\Request))
#15 [internal function]: Illuminate\Routing\Router->Illuminate\Routing{closure}(Object(Illuminate\Http\Request))
#16 /home/xms/public_html/laraadmincode/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php(52): call_user_func(Object(Closure), Object(Illuminate\Http\Request))
#17 /home/xms/public_html/laraadmincode/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/VerifyCsrfToken.php(64): Illuminate\Routing\Pipeline->Illuminate\Routing{closure}(Object(Illuminate\Http\Request))
#18 [internal function]: Illuminate\Foundation\Http\Middleware\VerifyCsrfToken->handle(Object(Illuminate\Http\Request), Object(Closure))
#19 /home/xms/public_html/laraadmincode/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(136): call_user_func_array(Array, Array)
#20 [internal function]: Illuminate\Pipeline\Pipeline->Illuminate\Pipeline{closure}(Object(Illuminate\Http\Request))
#21 /home/xms/public_html/laraadmincode/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php(32): call_user_func(Object(Closure), Object(Illuminate\Http\Request))
#22 /home/xms/public_html/laraadmincode/vendor/laravel/framework/src/Illuminate/View/Middleware/ShareErrorsFromSession.php(49): Illuminate\Routing\Pipeline->Illuminate\Routing{closure}(Object(Illuminate\Http\Request))
#23 [internal function]: Illuminate\View\Middleware\ShareErrorsFromSession->handle(Object(Illuminate\Http\Request), Object(Closure))
#24 /home/xms/public_html/laraadmincode/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(136): call_user_func_array(Array, Array)
#25 [internal function]: Illuminate\Pipeline\Pipeline->Illuminate\Pipeline{closure}(Object(Illuminate\Http\Request))
#26 /home/xms/public_html/laraadmincode/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php(32): call_user_func(Object(Closure), Object(Illuminate\Http\Request))
#27 /home/xms/public_html/laraadmincode/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(64): Illuminate\Routing\Pipeline->Illuminate\Routing{closure}(Object(Illuminate\Http\Request))
#28 [internal function]: Illuminate\Session\Middleware\StartSession->handle(Object(Illuminate\Http\Request), Object(Closure))
#29 /home/xms/public_html/laraadmincode/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(136): call_user_func_array(Array, Array)
#30 [internal function]: Illuminate\Pipeline\Pipeline->Illuminate\Pipeline{closure}(Object(Illuminate\Http\Request))
#31 /home/xms/public_html/laraadmincode/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php(32): call_user_func(Object(Closure), Object(Illuminate\Http\Request))
#32 /home/xms/public_html/laraadmincode/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/AddQueuedCookiesToResponse.php(37): Illuminate\Routing\Pipeline->Illuminate\Routing{closure}(Object(Illuminate\Http\Request))
#33 [internal function]: Illuminate\Cookie\Middleware\AddQueuedCookiesToResponse->handle(Object(Illuminate\Http\Request), Object(Closure))
#34 /home/xms/public_html/laraadmincode/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(136): call_user_func_array(Array, Array)
#35 [internal function]: Illuminate\Pipeline\Pipeline->Illuminate\Pipeline{closure}(Object(Illuminate\Http\Request))
#36 /home/xms/public_html/laraadmincode/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php(32): call_user_func(Object(Closure), Object(Illuminate\Http\Request))
#37 /home/xms/public_html/laraadmincode/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/EncryptCookies.php(59): Illuminate\Routing\Pipeline->Illuminate\Routing{closure}(Object(Illuminate\Http\Request))
#38 [internal function]: Illuminate\Cookie\Middleware\EncryptCookies->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/xms/public_html/laraadmincode/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(136): call_user_func_array(Array, Array)
#40 [internal function]: Illuminate\Pipeline\Pipeline->Illuminate\Pipeline{closure}(Object(Illuminate\Http\Request))
#41 /home/xms/public_html/laraadmincode/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php(32): call_user_func(Object(Closure), Object(Illuminate\Http\Request))
#42 [internal function]: Illuminate\Routing\Pipeline->Illuminate\Routing{closure}(Object(Illuminate\Http\Request))
#43 /home/xms/public_html/laraadmincode/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(102): call_user_func(Object(Closure), Object(Illuminate\Http\Request))
#44 /home/xms/public_html/laraadmincode/vendor/laravel/framework/src/Illuminate/Routing/Router.php(726): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#45 /home/xms/public_html/laraadmincode/vendor/laravel/framework/src/Illuminate/Routing/Router.php(699): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#46 /home/xms/public_html/laraadmincode/vendor/laravel/framework/src/Illuminate/Routing/Router.php(675): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#47 /home/xms/public_html/laraadmincode/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(246): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#48 [internal function]: Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http{closure}(Object(Illuminate\Http\Request))
#49 /home/xms/public_html/laraadmincode/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php(52): call_user_func(Object(Closure), Object(Illuminate\Http\Request))
#50 /home/xms/public_html/laraadmincode/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/CheckForMaintenanceMode.php(44): Illuminate\Routing\Pipeline->Illuminate\Routing{closure}(Object(Illuminate\Http\Request))
#51 [internal function]: Illuminate\Foundation\Http\Middleware\CheckForMaintenanceMode->handle(Object(Illuminate\Http\Request), Object(Closure))
#52 /home/xms/public_html/laraadmincode/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(136): call_user_func_array(Array, Array)
#53 [internal function]: Illuminate\Pipeline\Pipeline->Illuminate\Pipeline{closure}(Object(Illuminate\Http\Request))
#54 /home/xms/public_html/laraadmincode/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php(32): call_user_func(Object(Closure), Object(Illuminate\Http\Request))
#55 [internal function]: Illuminate\Routing\Pipeline->Illuminate\Routing{closure}(Object(Illuminate\Http\Request))
#56 /home/xms/public_html/laraadmincode/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(102): call_user_func(Object(Closure), Object(Illuminate\Http\Request))
#57 /home/xms/public_html/laraadmincode/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(132): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#58 /home/xms/public_html/laraadmincode/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(99): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#59 /home/xms/public_html/laraadmin/index.php(53): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))

@leopinzon
Copy link

@daltancarlos What laravel version are you using?

@daltancarlos
Copy link
Author

it was all good now @leopinzon. thanks for your reply. I just install the fileinfo.so module. The second issue i face right now is the
"FatalThrowableError in Connection.php line 64: Parse error: syntax error, unexpected 'const' (T_CONST), expecting variable (T_VARIABLE)"

" in Connection.php line 64
at Composer\Autoload\includeFile('/home/xms/public_html/laraadmincode/vendor/composer/../doctrine/dbal/lib/Doctrine/DBAL/Connection.php') in ClassLoader.php line 322
at ClassLoader->loadClass('Doctrine\DBAL\Connection')
at spl_autoload_call('Doctrine\DBAL\Connection')
at class_exists('Doctrine\DBAL\Connection') in Connection.php line 871
at Connection->isDoctrineAvailable() in Grammar.php line 286
at Grammar->compileChange(object(Blueprint), object(Fluent), object(MySqlConnection)) in Blueprint.php line 107
at Blueprint->toSql(object(MySqlConnection), object(MySqlGrammar)) in Blueprint.php line 82
at Blueprint->build(object(MySqlConnection), object(MySqlGrammar)) in Builder.php line 229
at Builder->build(object(Blueprint)) in Builder.php line 130"

I am using "PHP Version 7.0.30" on my server and the laraadmin is araadmin:1.0.40.

thanks

@leopinzon
Copy link

@daltancarlos OHHHHH!!! that may be a good starting point to get into. Laraadmin is currently supported on Laravel 5.3; and Laravel is supported on PHP 7.1*. I'd suggest something painful but at the end of the day, will save you lots of issues: Try upgrading your PHP to 7.1*

Also it may be super useful to take a look on this prerequisites (taken from this laravel 5.3 server requirements):

PHP between 5.6.4 & 7.1.*
OpenSSL PHP Extension
PDO PHP Extension
Mbstring PHP Extension
Tokenizer PHP Extension
XML PHP Extension

Best luck!!!

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

No branches or pull requests

2 participants