Author: 永夜
-
Post Views: 12 1. Execute the command: git pull –progress –no-rebase -v “origin”, report an error, as shown in Figure 1 Fatal: Unable to accesshttps://github.com/shuijingwan/yii2-starter-kit.git/: Unknown SSL protocol error in connection to github.com:443 2. Decided to use ssh to connect, since both git bash and tortoisegit are possible, use the puttygen tool that comes with TortoiseGit to generate the key,…
-
Post Views: 11 1. Open the backend – content – text component – create text block, error: classtrntv\Aceeditor\Aceeditornot found, as shown in Figure 1 2. Edit yii2-starter-kit\vendor\trntv\yii2-file-kit\composer.json, as shown in Figure 2 “autoload”: { “psr-4”: { “trntv\\filekit\”: “” } }, Modified to: “autoload”: { “psr-4”: { “trntv\\filekit\”: “src/” } }, Note: Redefine the mapping from namespace to directory, the directory…
-
Post Views: 14 1. Install yii2-starter-kit under Windows 10 and Nginx 1.10, and run on the command line: php console/yii app/setup, as shown in Figure 1 2. Error: create unique index IDx_article_slug on {{%article}} (slug) …exception: sqlstate[42000]: Syntax error or access Violation: 1071 specific key was too long; max key length is 767 bytes, as shown in Figure 2 Translation:…
-
Post Views: 11 1. Edit the nginx.conf file and add a total of 5 virtual hosts, as shown in Figure 1: 2. Execute the command: nginx -s reload, reload, report an error, as shown in Figure 2: Tips: nginx:[emerg]Could not build server_names_hash, you should increase server_names_hash_bucket_size: 32 Translation: nginx:[emerg]Unable to build server_names_hash, should add server_names_hash_bucket_size: 32 3. Open the URL:http://nginx.org/en/docs/http/server_names.html,…
-
Post Views: 15 1. The creation of the repository, based on VisualSVN Server 3.5.0 (1) Right-click repositories, select: Create new repository…, select: Regular FSFS repository, as shown in Figure 1 (2) Set the repository name: branch, as shown in Figure 2 (3) Select: single-project repository(with the top-leveltrunk,branchesAndtagsfolders), as shown in Figure 3 (4) Select: nobody has access, as shown in…
-
Post Views: 17 1. You need to refer to the previous website:https://www.shuijingwanwq.com/2016/07/09/1129/; 2. To obtain the implementation of the mobile phone registration verification code, it needs to only support the client version of mainland China before it is compatible. Therefore, the national area code ID is allowed to be empty, and the default value is 0, as shown in Figure…
-
Post Views: 16 1. The basic implementation of RPC based on HPROSE for PHP 1.5.6 and Yii2.0.7, please refer to the website:https://www.shuijingwanwq.com/2016/03/24/953/ 2. Upgrade yii2 through composer and execute the command:composer update, as shown in Figure 1: 3. Open the URL:http://trade.service.ygt.cm/area/get-area-mobile, the error is reported, as shown in Figure 2: PHP warning – Yii\Base\ErrorException include(e:\wwwroot\service.ygt.cm\vendor\hprose\hprose\src\hprose\yii\server.php): Failed to open Stream: No…
-
Post Views: 14 1. When the debugging session is started, a set of debugger windows will be opened under the main editor window. In the debugger window, it keeps prompting waiting for the connection (netbeans-xdebug), as shown in Figure 1; 2. Analysis and discover the “debugging” tab of the “php” option, the session ID (session ID). Any name of the…
-
Post Views: 12 1. Mobile phone dynamic code login, jQuery Validation plugin verification rules, as shown in Figure 1: 2. Enter a registered Taiwan mobile phone number first. Since the national area code is mainland China, so remind: Please set the national area code for overseas mobile phones, as shown in Figure 2: 3. Switch the national area code to…