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.

This program cannot be launched because the api-ms-win-crt-process-l1-1-0.dll file is missing from your computer. Try reinstalling this program to resolve this issue.

This program cannot be launched because the api-ms-win-crt-process-l1-1-0.dll file is missing from your computer. Try reinstalling this program to resolve this issue. Summary of pitfalls

This error message indicates that your computer is missing the system file api-ms-win-crt-process-l1-1-0.dll, which is part of the Microsoft Visual C++ Redistributable. This error typically occurs on Windows 7 or earlier operating systems, as these versions do not come with this file pre-installed...
👁 1083
Warning: chmod(): Permission denied in

Warning: chmod(): Permission denied in Summary of pitfalls

This warning usually occurs when the current user does not have sufficient permissions to modify the permissions of the specified file or directory. To resolve this issue, try the following methods: check whether the ownership and permissions of the file or directory are correct; ensure that the current user has the necessary modification permissions. If you are running PHP on a Linux system, you can use the `chown` and `chmod` commands to change the ownership and permissions of the file or directory. If...
👁 137
There are large item groups in navigation panel which may affect the performance. Consider disabling item grouping in the navigation panel.

There are large item groups in navigation panel which may affect the performance. Consider disabling item grouping in the navigation panel. Summary of pitfalls

This is a warning message that usually appears when using developer tools or certain applications to alert you that there are large groups of items in the navigation panel, which may affect the performance of the navigation panel. In large project groups, the navigation panel needs to load and render large amounts of data, which can slow down performance and cause lag or stuttering. To avoid this, it is recommended to disable item groups or use other methods to group navigation panels. Here are some that may help…
👁 154
SQLSTATE[HY000]: General error: trying to execute an empty query

SQLSTATE[HY000]: General error: trying to execute an empty query Summary of pitfalls

This error is typically caused by using an empty query string or statement when executing a query or preparing a statement using PDO. This may occur if one of the following conditions exists in your PHP code: the query string or statement is empty. Please ensure that your query string or statement contains a valid SQL query; if the string or statement is empty, this error will be thrown. You can use `var_dump()` or an `echo` statement to print the query string before executing the query...
👁 342
mysqli_free_result() expects parameter 1 to be mysqli_result, object given in

mysqli_free_result() expects parameter 1 to be mysqli_result, object given in Summary of pitfalls

This error usually means that you are trying to free an invalid result set object using the mysqli_free_result() function. This may be because you are trying to free a result set that has already been freed, or you are trying to free something that is not a result set object. To resolve this issue, make sure you are passing a valid result set object to the mysqli_free_result() function. You…
👁 219
mysqli_query() expects parameter 1 to be mysqli, null given in

mysqli_query() expects parameter 1 to be mysqli, null given in Summary of pitfalls

This error usually indicates that you failed to establish a successful connection to the MySQL database, or that you closed the connection before calling the mysqli_query() function. Below are some possible causes of this error and corresponding solutions: Failed connection to the MySQL database: Please ensure that you have correctly configured the mysqli_connect() function to connect to the MySQL database, and that the database server...
👁 220
Commands out of sync; you can't run this command now

Commands out of sync; you can't run this command now Summary of pitfalls

This error typically occurs when you attempt to execute the next query before having fully read all the results from the previous queries when using MySQLi to execute multiple queries. This situation often arises when you use the `mysqli::multi_query()` function to execute multiple queries without first using the `mysqli::free_result()` function to release the query results. Below are some possible causes of this error and how to resolve it...
👁 225
Access denied for user 'yiyou_10260'@'localhost' to database 'yiyou_10260'

Access denied for user 'yiyou_10260'@'localhost' to database 'yiyou_10260' Summary of pitfalls

This error message indicates that your MySQL user 'yiyou_10260' does not have the necessary permissions to access the 'yiyou_10260' database. Below are some possible causes of this error and corresponding solutions: Incorrect username or password: Please ensure that you are using the correct username and password. If you are unsure, try using a different MySQL client (for example, phpMyAdmin) to connect...
👁 96
Error occurred during database creation: The string 'moban_yiyou_10260' is too long for a user name (should not exceed 16 characters).

Error occurred during database creation: The string 'moban_yiyou_10260' is too long for a user name (should not exceed 16 characters). Summary of pitfalls

This error occurs because you used an excessively long username when creating the database; MySQL has a limit on the length of usernames – typically, a username should not exceed 16 characters. To resolve this issue, either use a username no longer than 16 characters when creating the database, or create a MySQL user that can use longer usernames and assign this user to the database. If...
👁 203
Most commonly used UA (User Agent) list

Most commonly used UA (User Agent) list Summary of pitfalls

percentuseragentsystem10.1%Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/92.0.4515.131 Safari/537.36Chrome 9…
👁 1012
1 6 7 8 9 10 14