composer update error

Laraship QuestionsCategory: issues & Bugscomposer update error
jimmy asked 5 years ago
hello, I have an error when a send "composer update" command Warning: Ambiguous class resolution, "CoralsUserProvidersUserEventServiceProvider" was found in both "/var/www/html/mywevi/Corals/core/User/Classes/UserEventServiceProviderTEST.php" and "/var/www/html/mywevi/Corals/core/User/Providers/UserEventServiceProvider.php", the first will be used. Warning: Ambiguous class resolution, "CoralsSettingsTransformersCustomFieldSettingTransformer" was found in both "/var/www/html/mywevi/Corals/core/Settings/update-batches/CustomFieldSettingTransformer.php" and "/var/www/html/mywevi/Corals/core/Settings/Transformers/CustomFieldSettingTransformer.php", the first will be used. Warning: Ambiguous class resolution, "CoralsSettingsTransformersSettingTransformer" was found in both "/var/www/html/mywevi/Corals/core/Settings/update-batches/SettingTransformer.php" and "/var/www/html/mywevi/Corals/core/Settings/Transformers/SettingTransformer.php", the first will be used. Warning: Ambiguous class resolution, "CoralsSettingsTransformersCustomFieldSettingPresenter" was found in both "/var/www/html/mywevi/Corals/core/Settings/Transformers/CustomFieldSettingPresenter.php" and "/var/www/html/mywevi/Corals/core/Settings/Models/CustomFieldSettingPresenter.php", the first will be used. Warning: Ambiguous class resolution, "CoralsSettingsFacadesSettings" was found in both "/var/www/html/mywevi/Corals/core/Settings/Models/Settings.php" and "/var/www/html/mywevi/Corals/core/Settings/Facades/Settings.php", the first will be used. Warning: Ambiguous class resolution, "CoralsSettingsFacadesModules" was found in both "/var/www/html/mywevi/Corals/core/Settings/Models/Modules.php" and "/var/www/html/mywevi/Corals/core/Settings/Facades/Modules.php", the first will be used. Warning: Ambiguous class resolution, "CoralsActivityTransformersActivityPresenter" was found in both "/var/www/html/mywevi/Corals/core/Activity/Transformers/ActivityPresenter.php" and "/var/www/html/mywevi/Corals/core/Settings/Facades/ActivityPresenter.php", the first will be used. Warning: Ambiguous class resolution, "CoralsSettingsProvidersSettingsAuthServiceProvider" was found in both "/var/www/html/mywevi/Corals/core/Settings/Classes/SettingsAuthServiceProvider.php" and "/var/www/html/mywevi/Corals/core/Settings/Providers/SettingsAuthServiceProvider.php", the first will be used. Warning: Ambiguous class resolution, "CoralsFoundationSearchTermBuilder" was found in both "/var/www/html/mywevi/Corals/core/Foundation/Search/TermBuilder.php" and "/var/www/html/mywevi/Corals/core/Foundation/update-batches/TermBuilder.php", the first will be used. Warning: Ambiguous class resolution, "CoralsUserMailUserRegistered" was found in both "/var/www/html/mywevi/Corals/core/User/Mail/UserRegistered.php" and "/var/www/html/mywevi/Corals/core/Foundation/Transformers/UserRegistered.php", the first will be used. Warning: Ambiguous class resolution, "CoralsFoundationTransformersFractalPresenter" was found in both "/var/www/html/mywevi/Corals/core/Foundation/Search/FractalPresenter.php" and "/var/www/html/mywevi/Corals/core/Foundation/Transformers/FractalPresenter.php", the first will be used. Warning: Ambiguous class resolution, "CoralsFoundationProvidersBaseUpdateModuleServiceProvider" was found in both "/var/www/html/mywevi/Corals/core/Foundation/DataTables/BaseUpdateModuleServiceProvider.php" and "/var/www/html/mywevi/Corals/core/Foundation/Providers/BaseUpdateModuleServiceProvider.php", the first will be used. Warning: Ambiguous class resolution, "CoralsThemeThemes" was found in both "/var/www/html/mywevi/Corals/core/Elfinder/Themes.php" and "/var/www/html/mywevi/Corals/core/Theme/Themes.php", the first will be used. Warning: Ambiguous class resolution, "CoralsMenuProvidersMenuAuthServiceProvider" was found in both "/var/www/html/mywevi/Corals/core/Menu/Providers/MenuAuthServiceProvider.php" and "/var/www/html/mywevi/Corals/core/Theme/Commands/MenuAuthServiceProvider.php", the first will be used. Warning: Ambiguous class resolution, "CoralsThemeMiddlewaresetTheme" was found in both "/var/www/html/mywevi/Corals/core/User/Facades/setTheme.php" and "/var/www/html/mywevi/Corals/core/Theme/Middleware/setTheme.php", the first will be used. Warning: Ambiguous class resolution, "CoralsThemeTheme" was found in both "/var/www/html/mywevi/Corals/core/Elfinder/Theme.php" and "/var/www/html/mywevi/Corals/core/Theme/Theme.php", the first will be used. Warning: Ambiguous class resolution, "CoralsThemeThemeServiceProvider" was found in both "/var/www/html/mywevi/Corals/core/Elfinder/ThemeServiceProvider.php" and "/var/www/html/mywevi/Corals/core/Theme/ThemeServiceProvider.php", the first will be used. Warning: Ambiguous class resolution, "CoralsThemeThemeViewFinder" was found in both "/var/www/html/mywevi/Corals/core/Elfinder/ThemeViewFinder.php" and "/var/www/html/mywevi/Corals/core/Theme/ThemeViewFinder.php", the first will be used. Warning: Ambiguous class resolution, "CoralsThemeProvidersThemeRouteServiceProvider" was found in both "/var/www/html/mywevi/Corals/core/User/Facades/ThemeRouteServiceProvider.php" and "/var/www/html/mywevi/Corals/core/Theme/Providers/ThemeRouteServiceProvider.php", the first will be used. IlluminateFoundationComposerScripts::postAutoloadDump @php artisan package:discover PHP Warning: Uncaught ErrorException: require(/var/www/html/mywevi/Corals/core/Elfinder/config/themes.php): failed to open stream: No such file or directory in /var/www/html/mywevi/vendor/laravel/framework/src/Illuminate/Support/ServiceProvider.php:59 Stack trace: 0 /var/www/html/mywevi/vendor/laravel/framework/src/Illuminate/Support/ServiceProvider.php(59): IlluminateFoundationBootstrapHandleExceptions->handleError(2, 'require(/var/ww...', '/var/www/html/m...', 59, Array) 1 /var/www/html/mywevi/vendor/laravel/framework/src/Illuminate/Support/ServiceProvider.php(59): require() 2 /var/www/html/mywevi/Corals/core/Elfinder/ThemeServiceProvider.php(13): IlluminateSupportServiceProvider->mergeConfigFrom('/var/www/html/m...', 'themes') 3 /var/www/html/mywevi/vendor/laravel/framework/src/Illuminate/Foundation/Application.php(586): CoralsThemeThemeServiceProvider->register() 4 /var/www/html/mywevi/Corals/core/Foundation/FoundationServiceProvider.php(78): IlluminateFoundationApplication->register(Object(CoralsTheme in /var/www/html/mywevi/vendor/laravel/framework/src/Illuminate/Support/ServiceProvider.php on line 59 PHP Fatal error: IlluminateSupportServiceProvider::mergeConfigFrom(): Failed opening required '/var/www/html/mywevi/Corals/core/Elfinder/config/themes.php' (include_path='.:/usr/share/php') in /var/www/html/mywevi/vendor/laravel/framework/src/Illuminate/Support/ServiceProvider.php on line 59 In ServiceProvider.php line 59: IlluminateSupportServiceProvider::mergeConfigFrom(): Failed opening requi red '/var/www/html/mywevi/Corals/core/Elfinder/config/themes.php' (include_ path='.:/usr/share/php') Script @php artisan package:discover handling the post-autoload-dump event returned with error code 255 Have you got a solution please?
1 Answers
laraship Staff answered 5 years ago

Hello,

There is definitely an issue of the extracted page we just veorifed the package, for example there is no file CustomFieldSettingTransformer.php under

/var/www/html/mywevi/Corals/core/Settings/update-batches/CustomFieldSettingTransformer.php”

so you may mixed files up when you extract the package