Dedecms moving images cannot be displayed or uploaded

Source: Internet
Author: User

Dedecms migration images cannot be uploaded

In linux, set the permission to modify the uploads file under the root directory of the website to 755,

Example

Chmod-R 755 dirName

Changing the permissions of all files and directories under dirName to 755 is a recursive operation on directories.

In windows, you only need to set the uploads directory to read/write.

Dedecms moving image cannot be displayed

 

First case: page images cannot be displayed
This is easy to do. Simply replace the paths in the template file in batches with dreamever or other editors and replace the previous paths with the current ones. For example, if you used/dedecms/images/1.jpg, you can replace "/dedecms/images/" with "/images/" in batches /".


Two cases: thumbnails and article images cannot be displayed


At this point, you need to operate the database, because the path of the thumbnail and the article image exists in the corresponding table of the database. The thumbnail is included in the litpic field of the archives table, and the article image is included in the body field of the addonarticle table.






Once you know the location, you can use an SQL statement to REPLACE the path with the correct path. update dede_archives set litpic = (REPLACE (litpic, '/decms/uploads/allimg ', '/uploads/allimg '));




There is a more convenient way to replace data in the dream background, as shown in the figure below.




Replace the corresponding table and field with the correct path. You do not need to write SQL statements by yourself, which greatly reduces misoperations and makes it faster and more convenient.

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.