Category: Programming Language
-
Post Views: 21 1. Error in Yii 2.0: Malformed UTF-8 Characters, Possibly Incorrectly Encoded. 2. Check the code below 3. Print out $E->GetMessage(), which contains garbled characters. as shown in Figure 1 4. Edit the code, MB_CONvert_encoding — Convert the encoding of characters. The response status code is: 500, and the response body is: “SQLState[HY000][2002]php_network_getaddresses: getaddrinfo failed: I don’t know…
-
Post Views: 13 1. The comments of the table are garbled. as shown in Figure 1 2. The comments of the fields are garbled. as shown in Figure 2 3. The values in the table are garbled. as shown in Figure 3 4. Add at the beginning of the sql file: set names utf8mb4; 5. Table comments, field comments, and…
-
Post Views: 15 1. In the shell script, an error is reported at runtime: /config/init/config0.sh line 184 appid unbound variable. as shown in Figure 1 2. Check the shell script, its value is:https://console.${RMT_MAIN_DOMAIN}/ccpauth/wx-msg-event/$APPID$/receive. ${rmt_main_domain} needs to be replaced with: dev.xxx.cn. $appId$ does not need to be replaced, it is left as it is, but now it is treated as a…
-
Post Views: 16 1. At this stage, there are 4 Rancher environment variables (the default value is not set, it must be set), and its value includes the public part: dev.xxx.cn 2. In the new stage, update 4 Rancher environment variables (the default value has been set, and there is no need to set it). Add a new environment variable…
-
Post Views: 16 1. After the upload of the picture is successful, the GET request:https://console.xxx.cn/upload/20210319/20210385015127.png, the response 500. The root cause is that the domain name of the image after the upload is successful is not:https://console.xxx.cn, but:https://web.xxx.cn. as shown in Figure 1 2. Open the Initiator tab, view the request call stack, and execute the GET request on line 516…
-
Post Views: 13 1. Reference URL:https://www.shuijingwanwq.com/2020/09/30/4552/, this is a previous blog. 2. When the cluster is deployed, the overall 4 groups of queues are all executed. It can be controlled within half an hour. However, sometimes, the length of time is still uncontrollable, and may even exceed an hour. 3. Decide to print log information in the relevant places in…
-
Post Views: 17 1. Expect the generated SQL statement, as shown in Figure 1 2. LIKE: The first operand should be a field name or dB expression, and the second operand can make a string or an array, representing the value of the first operand that needs to be fuzzy. For example,[‘like’, ‘name’, ‘tester’]will generate name like%tester%. If the range…
-
Post Views: 15 1. PHP fatal errorYii\Base\ErrorExceptionwith messageAllowed memory size of 2147483648 bytes exhausted (Tried to allocate 1084897244 bytes). as shown in Figure 1 2. Downloaded files:https://webtv-test.oss-cn-beijing.aliyuncs.com/rmhadmin/vod/2020/12/02/b73b9e8c3796447494a9dbe6dc66e2ad/b73b9e8c3796447494a9dbe6dc66e2ad_h264_1200k_mp4.mp4. Its size is 1.44 GB. In the local environment, this file is successfully downloaded, memory usage: 6.376 MB, time consuming: 916,308 ms. as shown in Figure 2 3, the uploaded file, its size…