Please, initialize the "propel.runtime" parameter.
把源码放在其他服务器,可以正常运行,环境 都一样都是PHP7.1,但是这台服务器始终报获取不到配置的错误,重装了一次系统,还是这个错误,有没有能帮忙解决的? 我跟踪过这个获取配置文件的代码,确实是NULL 但是对应的config目录下面确实有对应的配置文件。。
InvalidArgumentException in RuntimeServiceProvider.php line 58:
Unable to guess Propel runtime config file. Please, initialize the "propel.runtime" parameter.
in RuntimeServiceProvider.php line 58
at RuntimeServiceProvider->registerRuntimeConfiguration() in RuntimeServiceProvider.php line 40
at RuntimeServiceProvider->boot()
at call_user_func_array(array(object(RuntimeServiceProvider), 'boot'), array()) in Container.php line 508
at Container->call(array(object(RuntimeServiceProvider), 'boot')) in Application.php line 769
at Application->bootProvider(object(RuntimeServiceProvider)) in Application.php line 752
at Application->Illuminate\Foundation{closure}(object(RuntimeServiceProvider), '20')
at array_walk(array(object(EventServiceProvider), object(RoutingServiceProvider), object(AuthServiceProvider), object(CookieServiceProvider), object(DatabaseServiceProvider), object(EncryptionServiceProvider), object(FilesystemServiceProvider), object(FoundationServiceProvider), object(NotificationServiceProvider), object(PaginationServiceProvider), object(SessionServiceProvider), object(ViewServiceProvider), object(AppServiceProvider), object(AuthServiceProvider), object(EventServiceProvider), object(RouteServiceProvider), object(CaptchaServiceProvider), object(RolesServiceProvider), object(ActiveServiceProvider), object(FlashServiceProvider), object(RuntimeServiceProvider), object(ServiceProvider), object(ValidationServiceProvider), object(TranslationServiceProvider)), object(Closure)) in Application.php line 753
at Application->boot() in BootProviders.php line 17
at BootProviders->bootstrap(object(Application)) in Application.php line 203
at Application->bootstrapWith(array('Illuminate\Foundation\Bootstrap\DetectEnvironment', 'Illuminate\Foundation\Bootstrap\LoadConfiguration', 'Illuminate\Foundation\Bootstrap\ConfigureLogging', 'Illuminate\Foundation\Bootstrap\HandleExceptions', 'Illuminate\Foundation\Bootstrap\RegisterFacades', 'Illuminate\Foundation\Bootstrap\RegisterProviders', 'Illuminate\Foundation\Bootstrap\BootProviders')) in Kernel.php line 254
at Kernel->bootstrap() in Kernel.php line 145
at Kernel->sendRequestThroughRouter(object(Request)) in Kernel.php line 117
at Kernel->handle(object(Request)) in index.php line 53
1 Comment
@jiangas51#1349 propel.runtime 这个没配置 或者读取到的值为空 你把对应配置项拷贝出来我看下