If one of the three sites managed by the same backend is messed up in style, check which layer first.
The same backend manages three sites, and one page has a messed-up style. Should you check the template first or the static resources? Check the resources and configuration of this site first, without touching the template. The reason is straightforward: if the template layer has a problem, sites using the same theme will have issues together; only one site is distorted, indicating that the difference comes from site-level things - resources, navigation configuration, or a change made only on this site. Bisection on 'error shape' can narrow the scope by half in one go.
Bisect by error shape first.
Determine the problem starting from the browser, do not check the background first. Open the problematic page, use the developer tools to check two things: whether the requests for styles and images have failed (a lot of errors or missing), and whether the structure is still there (the tag hierarchy is normal but the position is skewed, or the entire content is misplaced).
The former points to the resource layer: the stylesheet has not been delivered, or the image address points to the resource directory of another site. The latter points to the template or data layer: the theme file has been changed, or the configuration of columns or display positions has only changed on this site.
Sites sharing resources are most likely to be interconnected.
Multi-site management puts multiple independent sites in the same background, sharing the program body between sites, and each site has its own content, configuration, and uploaded resources. The most common problem is 'mixed use of uploaded resources': an image from one site is referenced in the text of another site, and after the site is deleted or the resource directory is cleaned up, the referencing site immediately appears to have a gap.
When troubleshooting, check in this order: which pages are affected, which resources referenced by these pages belong to which site, and whether any replacement or deletion actions have been done recently.
The scope of effect of changes in the template layer
The impact of template changes depends on who owns the theme. For sites with shared themes, one edit will affect multiple sites at once; for sites with independent themes, changes will only affect the site itself. The ability of AI to visualize template editing reduces the threshold for changing templates, but it also makes it easier to lose control over who changed what and when, so it is necessary to confirm whether the theme being edited is shared or exclusive to the site before making changes, and to confirm the effect on each site after the changes are made.
When only one station is disordered, if this station shares the same theme with other stations, it is likely that this disorder is not caused by template changes; on the contrary, if it uses an independent theme, the template layer is the main suspect.
Check the minimum action of each station
| Steps | What to do | Criteria |
|---|---|---|
| One | Check if the同类 pages of the other two stations are normal | If it is normal, exclude the shared theme and the program itself |
| two | Check if there are any failures in the style and image requests of this station | Failures are concentrated in the resource layer, turning to configuration and files |
| three | Review the recent changes of this station: navigation, display positions, bulk replacement | If there is a time correspondence relationship, it locks the source of the changes |
| four | Compare the differences between the independent theme and the shared theme | Changes that take effect only on this site may be template-level. |
Why should multi-site backups be separated by site?
Navigation settings and the full-site replacement tool handle batch changes, and the scope of influence of such actions is easy to exceed expectations: replacing keywords or links once may hit the text of multiple sites at the same time. Make a backup before making changes, and the backup should cover data and static files. A backup that only contains data and does not contain resources cannot go back in the event of style chaos.
The significance of separating site backups lies in the granularity of rollback: only roll back the site that went wrong, rather than dragging the other two normal sites back to the old state.
Common questions
Ask: Do three stations share the same backend, can we determine that the problem is not in the program itself?Answer: It cannot be determined, but it can be postponed. If the pages of the same type in the other two stations are normal, the possibility of the program itself is already very low, first check the site-level differences, and then consider upgrading or patching factors.
Ask: The style sheet can be opened, but the page is still messy, which level should I check?Answer: Check the cascade order and each site's configuration: whether the style is covered by the custom style of this station, whether the loading order has changed, and whether there are differentiated changes in the independent theme of this station.
Ask: After batch replacement, the page appears to be confused, is it a problem with the replacement tool?Answer: It is more likely that the scope has exceeded expectations. First, use the backup to roll back the station, then tighten the replacement conditions to a single station for execution, and keep a backup point before each change.
Question: Can we temporarily shut down the station that is having problems?Answer: Yes, the impact of shutting down the station is limited to that station. After shutting down, follow the above four steps to locate the problem, which is easier to see the difference than to continue troubleshooting with confusion.