We are using the latest version of PhpcmsV9.4.2 to create a website for a conference company. When it comes to an end, we suddenly find that thumbnails of background articles cannot be uploaded! As shown in the figure below: it is normal when you select a file. When you click Start to upload, the above information window "undefined" is displayed. For phpcmsv9, I have installed it N times. This problem is the first time. This is really a dizzy situation. This situation occurs at this crucial moment. We are using the latest version of Phpcms V9.4.2 to create a website for a conference company. When it comes to an end, we suddenly find that thumbnails of background articles cannot be uploaded!
See the figure to explain the problem:
When you select a file, it is normal. When you click Start upload, the above information window "undefined" is displayed ".
For phpcms v9, I have installed it N times. This problem is the first time. This is really a dizzy situation. This situation occurs at this crucial moment.
Based on my intuition, there may be three problems:
1. The server uses the Linux System
2. Use the latest phpcms version.
3. An error occurred while uploading the installation package.
I usually run the problem from simple to complex order.
To eliminate the first case, I installed an earlier version of phpcms v9 and tested it. Everything works. For the remaining problems, I re-upload the installation package and confirm that there will be no file errors during the transmission process. After testing, the problem occurs in the latest version of Phpcms V9.4.2. In the latest version of the program, "BUG" is the most normal.
Take the problem with you and find a solution on the official Phpcms V9 Forum:
1. Open the phpcms \ modules \ attachment \ attachments. php file.
2. Delete the following code from row 3
If (empty ($ this-> userid) {exit ('0 ');}
The reason officially provided is: this indicates that the upload can be performed only after the logon is determined. If the super administrator is logged on, this value is blank, causing the error undefined.
Finally, test and restore everything to normal. ∩ ▂ ∩