Category: Web Application Development
-
Post Views: 13 1. Error in PHP 7.4: Illegal offset type in issue or empty. as shown in Figure 1 2. The code is as follows: 3. Print $setting, its value is the object. as shown in Figure 2 4. will $setting[‘settingId’]Convert to string. 5. The value of the printed and converted string is as follows 6. No more errors.
-
Post Views: 16 1. In response to the error in the GraphQL API: Expected a value of type \”URL\” but received: (Empty String). as shown in Figure 1 2. Print the object of the response, its value is String(0) “”. 3. Set in GraphQL, value: url . is allowed for null. But when it is String(0) “” , it is…
-
Post Views: 16 1. Respond to the GraphQL API and report an error: fields “default” cause they return conflicting types float! and boolean!. use Different aliases on the fields to fetch both if this was interested. 2. Check the query request and find that there is a corresponding prompt: fields “default” cause they return conflicting types “float!” and “boolean!”. Use…
-
Post Views: 15 1. Now the translation strings are stored in the files in the resources/lang directory. In this directory, every language supported by the application should have a corresponding subdirectory: 2. The previous call method: return trans(online_store_theme_graphql::validation.custom.theme_editor_session.theme_editor_session_id_exists_rule); 3. Plan to translate files are stored in the resources/lang directory in JSON format 3. Deliberately distinguish /en/validation.php from en.json to confirm…
-
Post Views: 22 1. The database migration implementation is as follows, and an index is added to the UUID type field. 2. After the migration is performed, the table field type is char(36). as shown in Figure 1 3. In the constructor of the model file, set the field value of the UUID type to: str::OrderDuUID() to take advantage of…
-
Post Views: 17 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 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…
-
Post Views: 16 1. Since in Windows 10, the setting of the maximum number of seconds (timeout time) that the task can perform does not take effect. Therefore, it is decided to test this feature in the online Linux server. 2. Add: sleep(1200); to the handle() method of the job; because $timeout = 600; , it is expected that it…
-
Post Views: 18 1. Since in Windows 10, the setting of the maximum number of seconds (timeout time) that the task can perform does not take effect. Therefore, it is decided to test this feature in the online Linux server. 2. Add: sleep(1200); to the handle() method of the job; because $timeout = 600; , it is expected that it…
-
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)…