• I cant get into login page.

    Here is the error message I’ve got.

    Notice: 呼叫 _load_textdomain_just_in_time 函式的方式不正確。Translation loading for the?astra?domain was triggered too early. This is usually an indicator for some code in the plugin or theme running too early. Translations should be loaded at the?init?action or later. 請參閱〈WordPress 的偵錯功能〉以進一步了解相關資訊。 (這項訊息新增於 6.7.0 版) in?/home/aiehked/public_html/wp-includes/functions.php?on line?6114

    Warning: Cannot modify header information – headers already sent by (output started at /home/aiehked/public_html/wp-includes/functions.php:6114) in /home/aiehked/public_html/wp-admin/includes/misc.php on line 1438

    Warning: Cannot modify header information – headers already sent by (output started at /home/aiehked/public_html/wp-includes/functions.php:6114) in /home/aiehked/public_html/wp-includes/functions.php on line 7137

    Warning: Cannot modify header information – headers already sent by (output started at /home/aiehked/public_html/wp-includes/functions.php:6114) in /home/aiehked/public_html/wp-admin/includes/template.php on line 2137

    The page I need help with: [log in to see the link]

Viewing 5 replies - 1 through 5 (of 5 total)
  • Mayuri

    (@mayuripatel)

    Hello @caritatang


    The error message you’re encountering is related to a translation issue in the Astra theme (or potentially a plugin) on your WordPress site. The error is caused by the _load_textdomain_just_in_time function being triggered too early during the page load, which is causing issues with the WordPress headers and the login page. This type of issue often arises after a WordPress or plugin update.

    Here’s how you can resolve the issue:

    1. Temporarily Disable All Plugins and Themes (via FTP or File Manager)

    Since you can’t access the WordPress login page due to this error, you’ll need to disable your plugins and/or theme temporarily. The most common cause of this issue is a conflict with a plugin or theme (in your case, likely the Astra theme, but it could also be a plugin). Here’s how to do that:A. Disable Plugins

    1. Access your website files:
      • Use FTP or File Manager (via cPanel or your hosting provider) to access the WordPress files.
    2. Navigate to the wp-content folder:
      • Go to wp-content > plugins.
    3. Rename the plugins folder to something like plugins_old. This will deactivate all plugins on your site.
    4. Try to access your login page:
      • After renaming the folder, try to access the WordPress login page again (yourdomain.com/wp-login.php). If you’re able to log in, the issue is most likely with one of your plugins.
    5. Reactivate plugins one by one:
      • Rename the plugins_old folder back to plugins and go into the folder. Then, rename each plugin folder back to its original name one at a time and check your site after each reactivation. This will help you identify which plugin is causing the issue.

    B. Disable the Astra Theme

    If the problem persists after deactivating plugins, it could be related to the theme. To test this, you can deactivate your current theme (Astra in your case) by following these steps:

    1. Access the wp-content/themes folder.
    2. Rename the Astra theme folder to something like astra_old.
    3. WordPress will now default to the default theme (usually Twenty Twenty-One or similar). Try logging in again.

    If the issue is resolved after renaming the theme, the problem is with the Astra theme, which might need an update or fix.

    2. Manually Fix the Translation Issue in the Astra Theme

    The error suggests that the translation for the Astra theme is being loaded too early. You can try fixing this by adding a small fix to the theme’s functions file, but only do this if you’re comfortable with PHP.

    1. Access the theme’s functions.php file:
      • Go to wp-content/themes/your-active-theme/functions.php.
    2. Look for any translation-related code:
      • Check if there’s any code related to loading translations for the Astra theme. It might look like this:
    load_theme_textdomain('astra', get_template_directory() . '/languages');

    Change the code to load translations at the correct time:

    • The translation should be loaded during the init action. If the code isn’t already wrapped in the init action hook, you can modify it like this:
    add_action('init', function() {
    load_theme_textdomain('astra', get_template_directory() . '/languages');
    });

    Save the file and check your site again.

    The message should be fixed with WordPress 6.7.1 in 2 days. See: https://core.trac.www.ads-software.com/ticket/62337

    Thread Starter caritatang

    (@caritatang)

    I had updated to wordpress 6.7.1-RC1 with astra 4.8.6.

    There is still error msg and I cant get to login the dashboard. LINK

    Notice: 呼叫 _load_textdomain_just_in_time 函式的方式不正確。Translation loading for the astra domain was triggered too early. This is usually an indicator for some code in the plugin or theme running too early. Translations should be loaded at the init action or later. 請參閱〈WordPress 的偵錯功能〉以進一步了解相關資訊。 (這項訊息新增於 6.7.0 版) in /home/aiehked/public_html/wp-includes/functions.php on line 6114

    Warning: Cannot modify header information – headers already sent by (output started at /home/aiehked/public_html/wp-includes/functions.php:6114) in /home/aiehked/public_html/wp-admin/includes/misc.php on line 1438

    Warning: Cannot modify header information – headers already sent by (output started at /home/aiehked/public_html/wp-includes/functions.php:6114) in /home/aiehked/public_html/wp-includes/functions.php on line 7137

    Warning: Cannot modify header information – headers already sent by (output started at /home/aiehked/public_html/wp-includes/functions.php:6114) in /home/aiehked/public_html/wp-admin/admin-header.php on line 9

    Thread Starter caritatang

    (@caritatang)

    @threadi it should be much more worst after updating.

    Notice: 呼叫 _load_textdomain_just_in_time 函式的方式不正確。Translation loading for the astra domain was triggered too early. This is usually an indicator for some code in the plugin or theme running too early. Translations should be loaded at the init action or later. 請參閱〈WordPress 的偵錯功能〉以進一步了解相關資訊。 (這項訊息新增於 6.7.0 版) in /home/aiehked/public_html/wp-includes/functions.php on line 6114

    Warning: Cannot modify header information – headers already sent by (output started at /home/aiehked/public_html/wp-includes/functions.php:6114) in /home/aiehked/public_html/wp-admin/includes/misc.php on line 1438

    Warning: Cannot modify header information – headers already sent by (output started at /home/aiehked/public_html/wp-includes/functions.php:6114) in /home/aiehked/public_html/wp-includes/functions.php on line 7137

    Warning: Cannot modify header information – headers already sent by (output started at /home/aiehked/public_html/wp-includes/functions.php:6114) in /home/aiehked/public_html/wp-admin/admin-header.php on line 9

    Warning: Cannot modify header information – headers already sent by (output started at /home/aiehked/public_html/wp-includes/functions.php:6114) in /home/aiehked/public_html/wp-includes/option.php on line 1715

    Warning: Cannot modify header information – headers already sent by (output started at /home/aiehked/public_html/wp-includes/functions.php:6114) in?/home/aiehked/public_html/wp-includes/option.php?on line?1716

    Please help to solve it

    The message seems to refer to the Astra theme, which apparently integrates its own language files incorrectly. You could remove the theme directory via FTP or manually install a pending update of the theme.

    You can find the current ZIP at https://www.ads-software.com/themes/astra/. You would have to unpack it and upload its contents to /wp-content/themes/astra/. This may also solve the problem. If not, please contact Astra support: https://www.ads-software.com/support/theme/astra/

    If you need help connecting via FTP, please contact your hoster’s support.

Viewing 5 replies - 1 through 5 (of 5 total)
  • You must be logged in to reply to this topic.