dreamfactory icon indicating copy to clipboard operation
dreamfactory copied to clipboard

Error 500 on fresh install: View [index] not found SplashController.php

Open ktsw89 opened this issue 11 months ago • 3 comments

Hi, i’m trying to install Dreamfactory, I’ve done all the steps without errors but when I try to launch the software I get this error

View [index] not found on SplashController.php line 53

`InvalidArgumentException: View [index] not found.

at /home/treebe_geo/apps/treebe_dreamfactory/project/vendor/laravel/framework/src/Illuminate/View/FileViewFinder.php:137 at Illuminate\View\FileViewFinder->findInPaths() (/home/treebe_geo/apps/treebe_dreamfactory/project/vendor/laravel/framework/src/Illuminate/View/FileViewFinder.php:79) at Illuminate\View\FileViewFinder->find() (/home/treebe_geo/apps/treebe_dreamfactory/project/vendor/laravel/framework/src/Illuminate/View/Factory.php:137) at Illuminate\View\Factory->make() (/home/treebe_geo/apps/treebe_dreamfactory/project/vendor/laravel/framework/src/Illuminate/Foundation/helpers.php:1035) at view() (/home/treebe_geo/apps/treebe_dreamfactory/project/app/Http/Controllers/SplashController.php:23) at DreamFactory\Http\Controllers\SplashController->index() (/home/treebe_geo/apps/treebe_dreamfactory/project/vendor/laravel/framework/src/Illuminate/Routing/Controller.php:54) at Illuminate\Routing\Controller->callAction() (/home/treebe_geo/apps/treebe_dreamfactory/project/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php:43) at Illuminate\Routing\ControllerDispatcher->dispatch() (/home/treebe_geo/apps/treebe_dreamfactory/project/vendor/laravel/framework/src/Illuminate/Routing/Route.php:259) at Illuminate\Routing\Route->runController() (/home/treebe_geo/apps/treebe_dreamfactory/project/vendor/laravel/framework/src/Illuminate/Routing/Route.php:205) at Illuminate\Routing\Route->run() (/home/treebe_geo/apps/treebe_dreamfactory/project/vendor/laravel/framework/src/Illuminate/Routing/Router.php:798) at Illuminate\Routing\Router->Illuminate\Routing{closure}() (/home/treebe_geo/apps/treebe_dreamfactory/project/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:141) at Illuminate\Pipeline\Pipeline->Illuminate\Pipeline{closure}() (/home/treebe_geo/apps/treebe_dreamfactory/project/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php:50) at Illuminate\Routing\Middleware\SubstituteBindings->handle() (/home/treebe_geo/apps/treebe_dreamfactory/project/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:180) at Illuminate\Pipeline\Pipeline->Illuminate\Pipeline{closure}() (/home/treebe_geo/apps/treebe_dreamfactory/project/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/AddQueuedCookiesToResponse.php:37) at Illuminate\Cookie\Middleware\AddQueuedCookiesToResponse->handle() (/home/treebe_geo/apps/treebe_dreamfactory/project/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:180) at Illuminate\Pipeline\Pipeline->Illuminate\Pipeline{closure}() (/home/treebe_geo/apps/treebe_dreamfactory/project/vendor/dreamfactory/df-core/src/Http/Middleware/FirstUserCheck.php:42) at DreamFactory\Core\Http\Middleware\FirstUserCheck->handle() (/home/treebe_geo/apps/treebe_dreamfactory/project/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:180) at Illuminate\Pipeline\Pipeline->Illuminate\Pipeline{closure}() (/home/treebe_geo/apps/treebe_dreamfactory/project/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:116) at Illuminate\Pipeline\Pipeline->then() (/home/treebe_geo/apps/treebe_dreamfactory/project/vendor/laravel/framework/src/Illuminate/Routing/Router.php:797) at Illuminate\Routing\Router->runRouteWithinStack() (/home/treebe_geo/apps/treebe_dreamfactory/project/vendor/laravel/framework/src/Illuminate/Routing/Router.php:776) at Illuminate\Routing\Router->runRoute() (/home/treebe_geo/apps/treebe_dreamfactory/project/vendor/laravel/framework/src/Illuminate/Routing/Router.php:740) at Illuminate\Routing\Router->dispatchToRoute() (/home/treebe_geo/apps/treebe_dreamfactory/project/vendor/laravel/framework/src/Illuminate/Routing/Router.php:729) at Illuminate\Routing\Router->dispatch() (/home/treebe_geo/apps/treebe_dreamfactory/project/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php:190) at Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http{closure}() (/home/treebe_geo/apps/treebe_dreamfactory/project/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:141) at Illuminate\Pipeline\Pipeline->Illuminate\Pipeline{closure}() (/home/treebe_geo/apps/treebe_dreamfactory/project/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php:27) at Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle() (/home/treebe_geo/apps/treebe_dreamfactory/project/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:180) at Illuminate\Pipeline\Pipeline->Illuminate\Pipeline{closure}() (/home/treebe_geo/apps/treebe_dreamfactory/project/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php:86) at Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle() (/home/treebe_geo/apps/treebe_dreamfactory/project/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:180) at Illuminate\Pipeline\Pipeline->Illuminate\Pipeline{closure}() (/home/treebe_geo/apps/treebe_dreamfactory/project/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:116) at Illuminate\Pipeline\Pipeline->then() (/home/treebe_geo/apps/treebe_dreamfactory/project/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php:165) at Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter() (/home/treebe_geo/apps/treebe_dreamfactory/project/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php:134) at Illuminate\Foundation\Http\Kernel->handle() (/home/treebe_geo/apps/treebe_dreamfactory/project/public/index.php:54)`

ktsw89 avatar Jan 09 '25 09:01 ktsw89

Hello,

Can you share what OS you are installing DreamFactory on, and what action you're taking when you say "launch the software"? Can't say I am overly familiar with this specific error, and the file paths in the trace are atypical.

nicdavidson avatar Jan 09 '25 20:01 nicdavidson

Hi, I am using dreamfactory with nginx on a shared opalstack server. It supports Laravel applications. I followed these steps:

  1. Create a new Laravel app at https://my.opalstack.com/apps/.

  2. Assign the new app to a website at https://my.opalstack.com/domains/.

  3. Create a PostgreSQL database

  4. SSH to my Laravel app's shell user and run the following commands:

  5. source scl_source enable php83

  6. cd ~/apps/treebe_dreamfactory

  7. rm -rf project

  8. git clone https://github.com/dreamfactorysoftware/dreamfactory.git ./project

  9. cd project

  10. composer install --no-dev --ignore-platform-reqs

  11. php artisan df:env

  12. php artisan df:setup

When I try to connect from the browser I get error 500... Screenshot 2025-01-10 alle 00 04 07

ktsw89 avatar Jan 09 '25 23:01 ktsw89

same error with docker installation, -branch 7.0.0 the error shows after successfully create the admin account for the first run

[2025-02-21T15:44:55.466873+00:00] local.ERROR: View [index] not found. {"exception":"[object] (InvalidArgumentException(code: 0): View [index] not found. at /opt/dreamfactory/vendor/laravel/framework/src/Illuminate/View/FileViewFinder.php:137)"}

==================

after looking into the codes:

  1. SplashController.php#index has different codes in 7.0.0 and master branch, although 7.0.0 is the latest branch released two weeks ago and no changes afterwards.
  2. try to use the main branch, the error has gone, but with a new error: $version is not defined in firstuser.blade.php
  3. try to remove the $version line in that file, it sticks at the setup page after pressing the "create" button
  4. ……

efinal avatar Feb 21 '25 15:02 efinal