Hongmu Notes
Home Summary of pitfalls

Summary of pitfalls

A summary of common mistakes encountered when building websites... This list isn't exhaustive; it merely records the issues I faced during my own development projects.

Windows Batch: Batch delete specified files from a specified directory.

Windows Batch: Batch delete specified files from a specified directory. Summary of pitfalls

You can use the following Windows batch command to delete files and shortcuts with specific names in a specified directory in bulk: @echo off set "rootDir=C:\your\root\directory"; // Replace "C:\your\root\directory" with your target root directory set "fileName=newbi..."
👁 260
When docking Baidu api, an error was reported, with error code: redirect_uri_mismatch error message: Invalid redirect uri.

When docking Baidu api, an error was reported, with error code: redirect_uri_mismatch error message: Invalid redirect uri. Summary of pitfalls

This error usually occurs when the authorized redirect URI used with the Baidu API does not match the redirect URI you configured in Application Management. You should check the following aspects for any discrepancies: verify whether the redirect URI you set in Application Management matches the redirect URI used in your code; confirm that your redirect URI is correct; and ensure that the redirect URI is a valid domain name or IP address for your application. Check...
👁 661
Nuxt re-packaging

Nuxt re-packaging Summary of pitfalls

To rebuild a Nuxt.js application, follow these steps: Install the Node.js runtime environment and the NPM package manager on your server. Use Git to pull the latest code from the source code repository. Navigate to the project directory and run the following command to install dependencies: `npm install`. Then, run the following command to package the application: `npm run build`. Once the packaging is complete, run the following command to launch the application...
👁 151
Nuxt redeployment

Nuxt redeployment Summary of pitfalls

To redeploy your Nuxt.js application, follow these steps: Install the Node.js runtime environment and the NPM package manager on your server. Use Git to pull the latest code from your source code repository. Navigate to the project directory and run the following command to install dependencies: `npm install`. Generate static files—if your application is using the Nuxt.js static site generator mode...
👁 162
After deploying and launching the Nuxt project, how do you clear all cache?

After deploying and launching the Nuxt project, how do you clear all cache? Summary of pitfalls

After deploying your Nuxt.js application, you can clear all caches using the following steps: navigate to your project directory on the server, stop the Nuxt application, delete the `.nuxt` and `node_modules` folders from the project root directory, and remove the Nuxt application's cache files from the server – these cache files may be stored in different locations, depending on your server configuration. For example, if you have...
👁 809
Warning: DOMDocument::loadHTML(): htmlParseEntityRef: expecting ';' in Entity, line: 212

Warning: DOMDocument::loadHTML(): htmlParseEntityRef: expecting ';' in Entity, line: 212 Summary of pitfalls

This warning usually indicates that your HTML document contains entity references that have not been properly defined or used. Entity references are a way to represent special characters in HTML; for example, < represents the less-than sign, & represents the & symbol, and so on. To resolve this issue, you can try the following methods: check whether your HTML document contains...
👁 189
Warning: DOMDocument::loadHTML(): Tag nav invalid in Entity, line: 31 in

Warning: DOMDocument::loadHTML(): Tag nav invalid in Entity, line: 31 in Summary of pitfalls

This error usually indicates that your HTML document contains invalid tags—such as tags that are not allowed or tags that have not been properly closed. In such cases, the DOM parser may be unable to correctly parse the HTML document, leading to a loading failure. To resolve this issue, you can try the following steps: check whether the HTML document is formatted correctly, ensuring that all tags are properly closed and that no unauthorized tags are used...
👁 112
Below the Baota panel – what does the `user.ini` file mean?

Below the Baota panel – what does the `user.ini` file mean? Summary of pitfalls

The.user.ini file is used to configure the PHP runtime environment; it serves as a configuration file for the PHP interpreter running on web servers such as Apache or Nginx. Within the Baota Panel, the.user.ini file is typically placed in the website's root directory and can be used to override certain settings defined in the PHP global configuration file, php.ini. The contents that can be configured in the.user.ini file include...
👁 662
PHP PaTa Warning: scandir(): open_basedir restriction is in effect. The file (/www/wwwrootyiyou/) is not within the allowed path(s): (/www/wwwroot/eyoucms.yanshi.4s5.cn/: /tmp/)

PHP PaTa Warning: scandir(): open_basedir restriction is in effect. The file (/www/wwwrootyiyou/) is not within the allowed path(s): (/www/wwwroot/eyoucms.yanshi.4s5.cn/: /tmp/) Summary of pitfalls

This warning message is generated because the server is configured with an `open_basedir` restriction, which limits the file system access scope for PHP scripts; however, your script is attempting to access a directory outside this permitted range, thereby triggering the warning. There are several ways to resolve this issue: You can modify the server configuration by contacting your server administrator and requesting that the `open_basedir` setting be adjusted to include the directory you intend to access within the permitted scope...
👁 362
unzip LinuxPanel.zip -bash: unzip: command not found

unzip LinuxPanel.zip -bash: unzip: command not found Summary of pitfalls

This error message is because the unzip command line tool is not installed in your Linux system. You can use the following command to install the unzip tool: For Debian/Ubuntu systems: sudo apt-get install unzip For CentOS/RHEL systems: sudo yum install unzip The installation is complete…
👁 188
1 7 8 9 10 11 14