Home > CMS Tutorial > WordPress > body text

How to solve the problem when adding pictures in wordpress is not displayed

Release: 2019-07-27 10:17:19
Original
11093 people have browsed it

How to solve the problem when adding pictures in wordpress is not displayed

# The solution to the problem that WordPress uploaded images are not displayed, basically use the following three methods to solve this kind of problem!

1. WordPress official also gave an answer to this question: The problem may not be specific to your site. There is a bug in WordPress 3.5 with javascript which you might be experiencing others have resolved this by adding define('CONCATENATE_SCRIPTS', false ); in my wp-config.php file just before require_once(ABSPATH . 'wp-settings.php'); So, I found wp-config.php in the root directory of the website file, then find this code require_once(ABSPATH . 'wp-settings.php');, add define('CONCATENATE_SCRIPTS', false ); before this code, and then re-upload it. After testing, I found that wordpress This solves the problem of uploaded images not being displayed. It turned out to be caused by the WordPress upgrade.

How to solve the problem when adding pictures in wordpress is not displayed

#2. Upload pictures through the background to display . Of course, this problem is not common, because there is a saying on the Internet that many file attributes under Linux must be changed to 777, but this has great security risks, so we recommend that user folder permissions be set to 711, file permissions be set to 604, and file permissions must be changed to 777. If the folder permission is set to 755, it will all run normally. I finally found the solution today, which is to change the uploads folder attribute under /wp-content/ to 755 and it will be done.

How to solve the problem when adding pictures in wordpress is not displayed

3. If you try both the previous methods It still appears that the uploaded picture is Keep it as short as possible;

Recommended:

WordPress Tutorial

The above is the detailed content of How to solve the problem when adding pictures in wordpress is not displayed. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!