Year: 2022
-
Post Views: 18 1. In Laravel 6 , error: E:\\wwwroot\\object\\vendor\\ramsey\\uuid\sr c\\converter\\number\\degradedNumberConverter.php”, “class”: “ramsey\Uuid\\Exception\\UnsatisfiedDependencyException as shown in Figure 1 2. In the build production environment, execute: composer install –prefer-dist –no-ansi –no-interaction –no-progress –no-scripts –no-dev. 3. In Composer.json’s require configuration, add “moontoast/math”. Execute: composer require moontoast/math. Execute again: composer install –prefer-dist –no-ansi –no-interaction –no-progress –no-scripts –no-dev. No more errors.
-
Post Views: 16 1. PHP_CodeSniffer marks PHP, JavaScript and CSS files to detect and repair violations of a set of defined encoding standards. When executing PHPCS, you will be prompted for the analysis of File: Found 1 Error Affecting 1 Line. as shown in Figure 1 2. First confirm the first file, on line 182, there is ;; , you…
-
Post Views: 18 1. In the CI/CD Pipelines of GitLab, the build composer fails. as shown in Figure 1 2. Search the class in the local environmentFaker\Factory, to confirm that /vendor/fzaninotto/faker/src/faker/factory.php exists. Execute in the local environment: php artisan key:generate succeeds. as shown in Figure 2 3. Check the log in gitlab-runner, if[ ! -x “vendor” ];then echoVendor not exists;…
-
Post Views: 18 1. The parameters requested by the front-end are empty strings. as shown in Figure 1 2. After the backend is saved, the value of the title is null . 3. Print all request parameters in the backend, var_dump($request->all()); Confirm that the value of the title has been converted to null. as shown in Figure 2 4. Reference:https://learnku.com/docs/laravel/6.x/validation/5144#6633ca.…
-
Post Views: 21 1. The existing code is implemented as follows 2. The final generated JSON data structure is as follows: 3. The Blade {{ }} statement is automatically passed through PHP’s HtmlSpecialChars function to prevent XSS attacks. Therefore, you need {!! !!} to prevent the “(double quotes) from being converted into HTML entities. 4. However, the generated JSON structure…
-
Post Views: 16 1. In Navicat for MySQL, when the table is copied from one database to another, an error is reported:[ERR]1292 – Incorrect DateTime Value:0000-00-00 00:00:00for columnCREATED_AT_GMTat row 1. as shown in Figure 1 2. Execute: Select version(), it is found that the version of the two database software is inconsistent. They are: 5.7.19-log and 8.0.23-0ubuntu0.20.04.1. as shown in…
-
Post Views: 22 1. Execute sudowWWphp artisan es:migrate, error: CUSTOM Analyzer[ik_smart_synonym]Failed to find tokenizer under name[ik_smart]. as shown in Figure 1 2. Reference: Execute the command: ./20.04/install_elasticsearch.sh 7 After installing Elasticsearch, the corresponding version of the IK word segmentation plugin is not installed. The operation was successful. as shown in Figure 2
-
Post Views: 20 1. Execute the command: ./20.04/install_elasticsearch.sh 7 After installing Elasticsearch, the corresponding version of the IK segmentation plugin is not installed. as shown in Figure 1 2. Decide to edit install_elasticsearch.sh, the reason should be to determine whether the code to install the plugin is invalid. 3. Execute the command: /usr/share/elasticsearch/bin/elasticsearch-plugin list, there is still no corresponding plugin.…