1. After the website is translated, the visual effect of the website becomes worse.
Header codes:
<?php
/**
* The header for Astra Theme.
*
* This is the template that displays all of the <head> section and everything up until <div id="content">
*
* @linkhttps://developer.wordpress.org/themes/basics/template-files/#template-partials
*
* @package Astra
* @since 1.0.0
*/
if ( ! defined( 'ABSPATH' ) ) {
exit; // Exit if accessed directly.
}
2. The astra theme of 4.1.6 has a second version problem. Our customized code will have bugs when it encounters wpml.
Bug Problems:
2025/10/09 09:38:18 [error] 3708449#3708449: *33995351 FastCGI sent in stderr: "PHP message: Connection refusedPHP message: PHP Fatal error: Uncaught Error: Call to a member function get_id() on bool in /var/www/xintaiceshi/wp-content/themes/astra/header.php:169
Stack trace:
#0 /var/www/xintaiceshi/wp-includes/template.php(783): require_once()
#1 /var/www/xintaiceshi/wp-includes/template.php(718): load_template()
#2 /var/www/xintaiceshi/wp-includes/general-template.php(48): locate_template()
#3 /var/www/xintaiceshi/wp-content/themes/astra/page.php(20): get_header()
#4 /var/www/xintaiceshi/wp-includes/template-loader.php(106): include('/var/www/xintai...')
#5 /var/www/xintaiceshi/wp-blog-header.php(19): require_once('/var/www/xintai...')
#6 /var/www/xintaiceshi/index.php(17): require('/var/www/xintai...')
#7 {main}
thrown in /var/www/xintaiceshi/wp-content/themes/astra/header.php on line 169" while reading response header from upstream, client: 113.66.116.232, server: xintaikejizh.yhct.top, request: "GET /%e5%85%b3%e4%ba%8e-ledman HTTP/2.0", upstream: "hidden link:", host: "xintaikejizh.yhct.top", referrer: "hidden link"
In this ticket, I'll continue to help you with problem number 1 (After the website is translated, the visual effect of the website becomes worse.) Please open a new ticket with problem number 2.
I'm sorry, but I'm unable to make sense of the code you shared.
Where can I see this problem with the header on your site?
Could you please share screenshots of this problem with me?
Our website themes are customized such as: 4.1.6 astra. However, after installing the wpml plug-in and using it, bugs will occur when the customized code encounters wpml. How to solve
Bug code:
2025/10/09 09:38:18 [error] 3708449#3708449: *33995351 FastCGI sent in stderr: "PHP message: Connection refusedPHP message: PHP Fatal error: Uncaught Error: Call to a member function get_id() on bool in /var/www/xintaiceshi/wp-content/themes/astra/header.php:169
Stack trace:
#0 /var/www/xintaiceshi/wp-includes/template.php(783): require_once()
#1 /var/www/xintaiceshi/wp-includes/template.php(718): load_template()
#2 /var/www/xintaiceshi/wp-includes/general-template.php(48): locate_template()
#3 /var/www/xintaiceshi/wp-content/themes/astra/page.php(20): get_header()
#4 /var/www/xintaiceshi/wp-includes/template-loader.php(106): include('/var/www/xintai...')
#5 /var/www/xintaiceshi/wp-blog-header.php(19): require_once('/var/www/xintai...')
#6 /var/www/xintaiceshi/index.php(17): require('/var/www/xintai...')
#7 {main}
thrown in /var/www/xintaiceshi/wp-content/themes/astra/header.php on line 169" while reading response header from upstream, client: 113.66.116.232, server: xintaikejizh.yhct.top, request: "GET /%e5%85%b3%e4%ba%8e-ledman HTTP/2.0", upstream: "hidden link:", host: "xintaikejizh.yhct.top", referrer: "hidden link"
I'm sorry, but we can't support old versions of the Astra theme. The version you are using (4.1.6) was released on July 5, 2023. It is more than two years old: hidden link
We cannot assist with any issues that occur with this old Astra version and WPML.
We will be happy to investigate any issues you may have with the latest version of WordPress and the Astra theme.
Please consider updating your site's WordPress and Astra versions to the latest versions. Then, if you have issues, we will investigate them.
**** Important! Please make a full site backup (files and DB) before you proceed with those steps****