Tag: syntax error
-
Post Views: 18 1. Error when the program is running: syntax error, unexpected,, expecting]. as shown in Figure 1 2. The code to catch the exception is implemented as follows, and finally find that the exception is not caught 3. Adjust the code implementation, and change the Throwable $E to \Throwable $E. Capture was successful. The log is generated as…
-
Post Views: 86 1. Enable WSL, refer to: https://www.shuijingwanwq.com/en/2021/12/23/9949/ , execute to step 5 3, the existing test.sh file, the code is as follows 4. Run Windows Terminal as an administrator and execute the command: bash test.sh . run successfully. as shown in Figure 1 5. The existing Themes.sh file, the code is as follows 6. Error at runtime: syntax…
-
Post Views: 19 1. When performing database migration, an error is reported: sqlstate[42000]: Syntax Error or Access Violation: 1059 Identifier nametheme_installation_version_preset_theme_store_theme_version_id_indexis too long. as shown in Figure 1 The index length limit of MySQL 5.7 defaults to 64, while the length of the Theme_Installation_Version_Preset_Theme_Store_Theme_Version_ID_Index is 68. as shown in Figure 2 3. In Laravel 6, each indexing method accepts an…
-
Post Views: 16 1. The performance of the web page is that when the request parameter is input:\, the response is 200, which in turn causes the response to 500 when the template is rendered. as shown in Figure 1 2. View the corresponding logs in the Alibaba Cloud Log Service SLS, and report an error when parsing the JSON…
-
Post Views: 16 1. Reference URL:https://lighthouse-php.com/4/testing/phpunit.html#setup, test with phpunit . In Lighthouse, it is easy to add automated tests with phpunit. 2. Run the GraphQL Query API and respond 200. The main test field: The responses of TheMeAssets. as shown in Figure 1 3. Edit /modules/themestore/tests/functional/graphql/onlineStoreEthemeGraphQLapTest.php, the code is as follows 4. Execute the command: ./vendor/bin/phpunit .\modules\themestore\tests\functional\graphql\OnlineStoreEthemeGraphQLapTest.php . Error: Failed…
-
Post Views: 16 1. Interface response to SQL error: SQLSTATE[42000]: Syntax error or access Violation: 1064 you have an error in your SQL syntax; check the manual that Corresponds to your MySQL Server version for the right syntax to use near6. as shown in Figure 1 2. Remove the request parameter: filter[and][0][or][1][keyword][fis]=, the response is 200, and no error is…
-
Post Views: 11 1. Upgrade the container in Rancher and report an error: /config/init/config0.sh: line 1314: syntax error near unexpected token `}, as shown in Figure 1 2. In phpstorm, edit /config/init/config0.sh, prompt: expected a command. , comment out the corresponding code, as shown in Figure 2 3. The upgrade is successful in Rancher, as shown in Figure 3
-
Post Views: 57 1. Execute Vagrant on Windows 10 and report an error: Vagrant failed to initialize at a very early stage, as shown in Figure 1 2. The reason should be that Vagrant has been updated recently, and Vagrant can be automatically tried by running the following command (remove and reinstall All plugins), follow the prompts to execute the…