Get the App
SLTechnology News&Howtos  ›  Servers  › 

The solution of not displaying phpcms Picture

Shulou Source: shulou.com Published: 2022-06-02 04:52:49 11月25日 Update

This article is to share with you about the solution to not displaying phpcms images. The editor thought it was very practical, so I shared it with you as a reference. Let's follow the editor and have a look.

What if the phpcms picture is not displayed?

When we use phpcms V9 to build a station, we are likely to change the domain name of the website, and sometimes the picture will not be displayed after changing the domain name, so how to set up PHPCMS V9? Here's how to set it up in detail:

First, modify the / caches/configs/system.php file to change all the old domain names related to the domain name to the new domain name.

Go to backend Settings-> site Management, and change the domain name of the corresponding site to a new domain name. As shown in the figure:

Click the "Update Cache" button in the upper right corner of the background to update the system cache.

Enter content-> attachment Management-> attachment address replacement. Replace the attachment address with the new address in batch.

Content-- > batch update URL. Update the addresses of all the articles.

Content-- > manage columns-- > update column cache. Change the link address of the column to the new address.

If your site is a static page, you need to generate the whole site at once. If it is a dynamic page, it is not needed.

Open the website and all the links have been changed to the new address.

If these updates are still not displayed, open the sql file of the database with DW and use batch replacement, replace all the old domain names with new ones, and then save them.

Thank you for reading! The solution of not displaying phpcms pictures is shared here. I hope the above content can be of some help to you, so that you can learn more knowledge. If you think the article is good, you can share it and let more people see it.

Tags: Domain name address update content picture method column cache website attachment management background file article more site link page related good Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno vpn Shulou Tech Info Shulou Information NVidia OPPO Reno