Category: Web Framework
-
Post Views: 21 1. In a queue task, you need to download the zip file first, and then decompress it. Now, after the decompression is successful, you need to delete the downloaded zip file. Now implemented. 2. When the decompression fails: call to undefined function modules\themestoredb\handlers\checkhere(), you also need to delete the corresponding zip file, you need to Failed(Exception $Exception)…
-
Post Views: 16 1. In Laravel Framework 6.20.44, Nuwave/Lighthouse V5.52.1, an error is reported: Argument 1 Passed to App\\Exceptions\\Handler::report() must be an instance of exception, instance of error given, called in E:\WWRoot\\Object\Vendor\\nuwave\Lighthouse\src\execution\\reportingErrorHandler.php on line 39. as shown in Figure 1 2. Reference:https://www.shuijingwanwq.com/en/2022/01/26/9945/. The root cause is that the framework is not compatible with the extended version. However, it is now…
-
Post Views: 19 1. In Laravel Framework 6.20.44, Nuwave/Lighthouse V5.52.1, an error is reported: Argument 1 Passed to App\\Exceptions\\Handler::report() must be an instance of exception, instance of error given, called in E:\WWRoot\\Object\Vendor\\nuwave\Lighthouse\src\execution\\reportingErrorHandler.php on line 39. as shown in Figure 1 2. Reference:https://www.shuijingwanwq.com/en/2022/01/26/9945/. The root cause is that the framework is not compatible with the extended version. However, it is now…
-
Post Views: 20 1. In the API response, the field: “Processing”: False, . as shown in Figure 1 2. The type of field processing is tinyint(1). Its value is 0, 1. as shown in Figure 2 3. The original implementation is as follows 4. The $casts property in the model provides a convenient way to convert attributes to common data…
-
Post Views: 73 1. When executing yarn, an error is reported: Failed to apply patch for package laravel-mix. patches\Laravel-mix+6.0.43.patch could not be parsed. as shown in Figure 1 2. Check the git log, the previous version of patches\Laravel-mix+6.0.43.patch is: patches\laravel-mix+6.0.48.patch. as shown in Figure 2 3. After deleting the directory: node_modules, execute again: yarn, and still report the same error.…
-
Post Views: 20 1. In Lighthouse 5, an error is reported: illuminate\contracts\container\bindingResolutionException : target[Interface]Is not instantiable while building[Resolver]… as shown in Figure 1 2. Edit ThemeStoreGraphQL/Resources/GraphQL/Theme_Setting.GraphQL , comment out: TemplateSettingsData(BaseName: String!):[ThemeSection]@field(resolver: “modules\\themestoreGraphQL\\resolver\\onlinestoreetheme\\TemplateSettingsDataResolver”). Then no errors will be reported. 3. After uncommenting, check ThemeStoreGraphQL/Resolver/OnlineStoreEtheme/TemplateSettingsDateResolver.php . TemplateSchemaLoaderInterface is passed as a parameter to the constructor. 4. Check the service provider class of…
-
Post Views: 21 1. In Lighthouse 5, an error is reported: Failed to find class Modules\\ThemeStore\\Validators\\ThemeAsset\\CreateTheMeAssetInputValidator in namespaces[App\\GraphQL\\Validators]for directive @Validator. as shown in Figure 1 2. Confirm that the class Modules\\TheMeStore\\Validators\\ThemeAsset\\CreateTheMeAssetInputValidator has been migrated to Modules\\ThemeStoreGraphQL\\Validators\\ThemeAsset\\CreateTheMeAssetInputValidator . as shown in Figure 2 3. In the instruction @Validator After the class file path is adjusted to: Modules\\ThemeStoreGraphQL\\Validators\\ThemeAsset\\CreateTheMeAssetInputValidator, no more errors are…