About PhpcmsV9.4.2 thumbnails upload-PHP development

Source: Internet
Author: User
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. ∩ ▂ ∩

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.