There is no problem not worth solving, and no technology not worth learning!

When executing php artisan config:clear, an error is reported: ErrorException : include(e:\wwwroot\object\vendor\composer/../../modules/them eStoreGraphQL/Providers/GraphQLResolverServiceProvider.php): Failed to open stream: no such file or directory

执行 php artisan config:clear 时,报错:ErrorException : include(E:\wwwroot\object\vendor\composer/../../Modules/ThemeStoreGraphQL/Providers/GraphQlResolverServiceProvider.php): failed to open stream: No such file or directory

1. When executing php artisan config:clear, an error is reported: ErrorException : include(e:\wwwroot\object\vendor\composer/../../modules/them eStoreGraphQL/Providers/GraphQLResolverServiceProvider.php): Failed to open stream: no such file or directory. as shown in Figure 1

执行 php artisan config:clear 时,报错:ErrorException  : include(E:\wwwroot\object\vendor\composer/../../Modules/ThemeStoreGraphQL/Providers/GraphQlResolverServiceProvider.php): failed to open stream: No such file or directory
Figure 1

PS E:\wwwroot\object> php artisan config:clear

   ErrorException  : include(E:\wwwroot\object\vendor\composer/../../Modules/ThemeStoreGraphQL/Providers/GraphQlResolverServiceProvider.php): failed to open stream: No such file or directory

  at E:\wwwroot\object\vendor\composer\ClassLoader.php:571
    567|  * @private
    568|  */
    569| function includeFile($file)
    570| {
  > 571|     include $file;
    572| }
    573|

  Exception trace:

  1   include()
      E:\wwwroot\object\vendor\composer\ClassLoader.php:571

  2   Composer\Autoload\includeFile("E:\wwwroot\object\vendor\composer/../../Modules/ThemeStoreGraphQL/Providers/GraphQlResolverServiceProvider.php")
      E:\wwwroot\object\vendor\composer\ClassLoader.php:428

  Please use the argument -v to see more details.


2. Confirm the file modules/themestoreGraphQL/providers/GraphQLResolverServiceProvider.php It no longer exists and is renamed: modules/OnlineStoreEthemeGraphQL/Providers/GraphQLResolverServiceProvider.php

3. Execute the composer install command to regenerate vendor\composer\classloader.php. Error: in providerRepository.php line 208: classModules\ThemeStoreGraphQL\Providers\GraphQLResolverServiceProviderNot found script @php artisan package:discover –ansi handling the post-autoload-dump event returned with error code 1. as shown in Figure 2

执行:composer install 命令,以重新生成 vendor\composer\ClassLoader.php。报错:In ProviderRepository.php line 208: Class 'Modules\ThemeStoreGraphQL\Providers\GraphQlResolverServiceProvider' not found Script @php artisan package:discover --ansi handling the post-autoload-dump event returned with error code 1
Figure 2

PS E:\wwwroot\object> composer install
Installing dependencies from lock file (including require-dev)
Verifying lock file contents can be installed on current platform.
Package operations: 0 installs, 29 updates, 0 removals
  ...
> Illuminate\Foundation\ComposerScripts::postAutoloadDump
> @php artisan package:discover --ansi

In ProviderRepository.php line 208:

  Class 'Modules\ThemeStoreGraphQL\Providers\GraphQlResolverServiceProvider' not
  found


Script @php artisan package:discover --ansi handling the post-autoload-dump event returned with error code 1


4. The reason is that the providers of /config/app.php contain:\modules\themestoreGraphQL\providers\GraphQlResolverServiceProvider::Class,

5. Execute again: composer install, php artisan config:clear, all run successfully.


PS E:\wwwroot\object> composer install
Installing dependencies from lock file (including require-dev)
Verifying lock file contents can be installed on current platform.
Nothing to install, update or remove
...
Package manifest generated successfully.
111 packages you are using are looking for funding.
Use the `composer fund` command to find out more!
PS E:\wwwroot\object> php artisan config:clear
Configuration cache cleared!


 

 

PHP / Laravel / Yii2 Legacy Project Maintenance & Long-Term Technical Support

If your PHP / Laravel / Yii2 project is already in production but needs bug fixing, API troubleshooting, performance optimization, developer handover support, or long-term maintenance, feel free to contact me for remote technical support.

Ideal For:
✅ PHP legacy systems without active maintenance
✅ Laravel / Yii2 project bug fixes
✅ Admin panel feature iterations
✅ RESTful API troubleshooting
✅ MySQL / Redis / Nginx performance issues
✅ Long-term remote part-time maintenance

We can start with a small task:
✅ Production error troubleshooting
✅ API issue analysis
✅ Slow query and performance bottleneck diagnosis
✅ Initial code structure review
✅ Deployment environment and log inspection

If you would like to discuss your project, please contact me and mention: PHP Maintenance Consultation.

Contact Me:
Telegram: @shuijingwan
WeChat: 13980074657
Email: shuijingwanwq@gmail.com

评论

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.