Category: Web Application Development
-
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…
-
Post Views: 18 1. Print the current object, its properties[architecture]=> 2.0 . as shown in Figure 1 2. The code is implemented as follows 3. Print object $wptheme, its attributes[architecture]=> 2.0. Print $wptheme->Architecture with a value of 1.0. Not as expected. as shown in Figure 2 4. Finally found the reason, the influence of the settings in the model file,…