Year: 2022
-
Post Views: 19 1. When executing “./20.04/nginx_add_site.sh”, fill in the project name and report the error “Item name contains illegal characters” error. as shown in Figure 1 2. Edit ./20.04/nginx_add_site.sh, and comment out the code that prompts the error. as shown in Figure 2 3. The execution will be executed again ./20.04/nginx_add_site.sh, no more errors will be reported. as shown…
-
Post Views: 14 1. Error in Homestead: sqlstate[HY000][2002]php_network_getaddresses: getaddrinfo failed: temporary failure in name resolution. as shown in Figure 1 2. Edit the .env file, and db_host=mysql modify it to db_host=127.0.0.1. No more errors.
-
Post Views: 21 1. Timed out while waiting for the machine to boot. The configured (“config.vm.boot_timeout” value) time period. as shown in Figure 1 2. Although the map has been modified to e:/wwwroot/vagrant, it was: ~/code before. Still decide to create a new directory: ~/code 3. Run again: vagrant reload –provision, no more errors.
-
Post Views: 19 1. In Laravel 6, after the model applies soft deletion, the record is inserted again, and the unique key conflicts. as shown in Figure 1 2. The reason is that after applying soft deletion, when you use the delete method on the model instance, the current date and time will be written to the deleted_at field. At…
-
Post Views: 15 1. Only errors are reported in Linux: Failed to load type: OnlineStoreEthemePreset. Make sure the type is present in your schema definition. It is available in the local Windows 10 environment. as shown in Figure 1 2. Execute the command: php artisan cache: clear, clear the cache. The interface request was successful. The reason is that GraphQL…
-
Post Views: 14 1. There is a php Blade code block, which is placed in mysql, and its code is stored in the field schema, as shown in Figure 1 2. Some variables, already declared in the php script, the code block is shown below 3. The code of the compiled template file is as follows. 4. Decided to skip…
-
Post Views: 17 1. The original format of JSON data is as follows. The order of its key names is as follows: TexGetCux, QKGYGZ2st, YE9GC1KXT, Q1YQZ2RBI. as shown in Figure 1 2. Execute the code to insert the database as follows, print $extra[‘schema’] 3. Print $extra[‘schema’], which is equal to the original format of JSON data. as shown in Figure…
-
Post Views: 19 1. The command in the task queue artisan::call, the code is as follows 2. Check the generated log file to confirm that the command has been executed. Confirm that the command was not executed because the log file of -1 was not generated. as shown in Figure 1 3. Decide to manually execute the command line in…
-
Post Views: 20 1. Install a theme, which is implemented based on the queue. The code is as follows 2. Based on the preliminary analysis conclusion, when the material to the synchronization theme is executed to the CDN, it feels like the operation of the program is suddenly interrupted. the present situation. as shown in Figure 1 3. It feels…
-
Post Views: 13 1. Error in GraphQL: variable “$sessionID” of type “string” used in position expecting type “string!”.. as shown in Figure 1 2. View request query 3. Check the GraphQL document, $sessionId: String!. is missing !. as shown in Figure 2 4. After the adjustment in the request query, no more errors are reported. as shown in Figure 3