When all or some of the images on your website are no longer visible, it's usually due to a file or folder that has permission issues. The following steps will help you diagnose and fix these permission issues.
Checking for permission problems
1,Test images for permission issues
- URL to access the image in your browser, e.g. http://example.com/wp-content/uploads/2017/07/Capture.png
- If you encounter an error when trying to access an image, the image is either missing or has incorrect permissions.
2,Verify that the file exists
- First, find the URL of the image from the Media Library to make sure the file actually exists.
![图片[1]-排除故障并修复缺失的 WordPress 图片-光子波动网 | 专业WordPress修复服务,全球范围,快速响应](https://www.361sale.com/wp-content/uploads/2024/07/2024071805480459.png)
3,Connect to your host using FTP
- Browse to the /wp-content folder.
![图片[2]-排除故障并修复缺失的 WordPress 图片-光子波动网 | 专业WordPress修复服务,全球范围,快速响应](https://www.361sale.com/wp-content/uploads/2024/07/2024071805533816.png)
4,Checking and modifying Linux permissions
- Verify that the /wp-content directory has the correct permissions.
- For Linux cPanel accounts, directory permissions should be set to755The
- For Windows Plesk accounts, make sureRead and WriteThe permissions are correct.
5,Update Permissions
- If the /wp-content folder or files in it do not have read or web visibility permissions, you need to perform aupdateThe
Find and Replace WordPress Plugins
WordPress uses a database to store your site data. The easiest way to find and replace that data is theUsing plug-ins, which is helpful when changing domain names, etc.
1,Backup your website
- Always back up your site before making any changes to the database.
Backup Options | When to use this option? |
---|---|
Use the host platform's built-in backup system | One-click option for backing up hosting accounts (Linux cPanel hosting/Windows Plesk hosting/WordPress hosting). If no platform change is planned(i.e. cPanel backups can only be restored to Linux cPanel hosts, Plesk backups to Windows Plesk hosts, etc.)The most practical way to do this is to use the |
Manual backup of website (files and database) | It is possible to manually backup your website files using FTP and your website database using phpMyAdmin. This method is more advanced and useful if you need to upload this backup to a different type of hosting account. If the site does not have a database, only the files will be backed up. |
2,Installation and activation Better Search Replace plug-in (software component)
![图片[3]-排除故障并修复缺失的 WordPress 图片-光子波动网 | 专业WordPress修复服务,全球范围,快速响应](https://www.361sale.com/wp-content/uploads/2024/07/2024071805591424.png)
- Login to WordPress, install and activate the Better Search Replace plugin.
![图片[4]-排除故障并修复缺失的 WordPress 图片-光子波动网 | 专业WordPress修复服务,全球范围,快速响应](https://www.361sale.com/wp-content/uploads/2024/07/2024071806031170.png)
3,Perform Find and Replace
- In the left-hand menu, selectartifact > Better Search ReplaceThe
- Enter the text to replace in the search field, such as the old URL:http://olddomainexample.com (no trailing slash).
- Enter the new URL in the Replace With field, for example:http://newdomainexample.com (no trailing slash).
- In the Select Table field, select all database tables in the list.
![图片[5]-排除故障并修复缺失的 WordPress 图片-光子波动网 | 专业WordPress修复服务,全球范围,快速响应](https://www.361sale.com/wp-content/uploads/2024/07/2024071806053911.png)
4,Run rehearsal checks
- Keep the Run Rehearsal checkbox checked and select theRun search/replace. This allows you to check the results in advance.
- After viewing the results of theremovalsCheck the Run Rehearsal checkbox and then select Run Search/Replace to replace the text in the database.
Repair image thumbnails do not display
Sometimes, after a configuration change, WordPress fails to display thumbnails of previously uploaded images. To fix this issue, you can use a third-party plugin such as Regenerate Thumbnails Plug-ins.
![图片[6]-排除故障并修复缺失的 WordPress 图片-光子波动网 | 专业WordPress修复服务,全球范围,快速响应](https://www.361sale.com/wp-content/uploads/2024/07/2024071806013173.png)
1,Regenerate all thumbnails
- Login to WordPress, install and activate Regenerate Thumbnails Plug-ins.
- In the left-hand menu, selectartifactand then select Regenerate ThumbnailsThe
- Select the type of thumbnail you want to regenerate, and when you're done you'll see the All Done message.
![图片[7]-排除故障并修复缺失的 WordPress 图片-光子波动网 | 专业WordPress修复服务,全球范围,快速响应](https://www.361sale.com/wp-content/uploads/2024/07/2024071806070158.png)
2,Re-generate individual image thumbnails
- Log in to WordPress.
- Select Media in the left menu, locate the image that needs to be regenerated as a thumbnail, hover over it, and choose Regenerate ThumbnailsThe
![图片[8]-排除故障并修复缺失的 WordPress 图片-光子波动网 | 专业WordPress修复服务,全球范围,快速响应](https://www.361sale.com/wp-content/uploads/2024/07/2024071806075425.png)
Fixing images that link to themselves in WordPress
When configured incorrectly, WordPress may cause images on a page to point to a link to the image itself. This can lead to a poor user experience.
1,Edit page or post
- click (using a mouse or other pointing device)PagesmaybePosts, select the page or post that needs to be edited.
- Click Edit under the page or post title.
2,Edit image links
- Click the image in the text box and then click the Edit button.
- Select None in the Link To drop-down menu and click the Update button to save changes to the image.
3,Posting Changes
- Click the Update button to post changes to the page or article.
- Check your page or post to verify that duplicate links have been removed.
![图片[9]-排除故障并修复缺失的 WordPress 图片-光子波动网 | 专业WordPress修复服务,全球范围,快速响应](https://www.361sale.com/wp-content/uploads/2024/07/2024070302290385.png)
Summary:
If your website images are no longer visible, it may be due to a file or folder permission issue. First, verify that the image exists by checking that the image's URL is accessible. If you find a permissions issue, use an FTP connection to your host and browse to the /wp-content folder to verify that the directory permissions are correct. directory permissions should be set to 755 for Linux systems, and Windows systems to ensure that read and write permissions are correct. If the permissions are not set correctly, you need to update them.
Link to this article:https://www.361sale.com/en/13973The article is copyrighted and must be reproduced with attribution.
No comments