Solution displayed in the dialog box
Include/uploadsafe. inc. change the imtypes of Line 1 in php to imgtypes and add a g and then update the system cache. However, the 45th speed browser test fails. I don't know why, but it can be solved in the past.
try the following solution:
Userlogin. class. Php file, open it in the code editor, and add the following code before session_start () in the second line:
The code is as follows: |
Copy code |
If (isset ($ _ POST ["PHPSESSID"]) { Session_id ($ _ POST ["PHPSESSID"]); } Else if (isset ($ _ GET ["PHPSESSID"]) { Session_id ($ _ GET ["PHPSESSID"]); } |
Save the file and overwrite it.
The uploaded image dialog box shows FILEID: X. Solution:
Site background, noticed for the UTF-8 version, so a detailed test, view the management directory under the swfupload. php made a few breakpoints
Test. The cause of the problem is found in the generated thumbnail.
Check out your include/common. inc. php file format UTF-8 encoded friend, note the format adjusted to UTF-8 none
BOM format, GBK encoding friends, note that the format is adjusted to ANSI (using NotePad ++, there is a format menu in the menu bar, open is
The file format can be adjusted. You can also select DW and Editeplus .)
Also need to pay attention to a point, if the language encoding used for UTF-8 encoding friends, be sure to pay attention, do not use notepad to open repair
Save any system files.
As shown in the figure, when some friends encounter similar situations, uploading images is a highlighted error message, but the uploaded image files can be seen in the attachment management.
Now we provide a thumbnail repair file (a tool for BOM file detection), which is saved as a. php and stored in the root directory of the website.