-
Posted in : Efor
-
Hi,
I’m experiencing a critical issue on my WordPress site installed in the /letslearn subdirectory of:
The login page is displaying the following errors:
Video: https://www.loom.com/share/c3a0482c075342a68f9fa023064f774b?sid=aa017660-e624-475b-832a-c18e5b1b8704
Notice: Function _load_textdomain_just_in_time was called incorrectly. Translation loading for the ‘insta-gallery’, ‘tutor’, and ‘tutor-pro’ domains was triggered too early…
Warning: Cannot modify header information – headers already sent…Error: Cookies are blocked due to unexpected output.
This completely prevents login to the admin dashboard.Here’s what I’ve already done to troubleshoot:
Disabled all plugins by renaming their folders via File Manager
Forced a switch to the twentytwentyfour theme using:
define(‘WP_DEFAULT_THEME’, ‘twentytwentyfour’);
Turned off all debug and development constants in wp-config.php:
php
Copy
Edit
define(‘WP_DEBUG’, false);
define(‘WP_DEBUG_DISPLAY’, false);
define(‘WP_DEBUG_LOG’, false);
define(‘SCRIPT_DEBUG’, false);
define(‘SAVEQUERIES’, false);
ini_set(‘display_errors’, 0);Commented out SiteGround’s auto-includes at the bottom of wp-config.php:
// @include_once(‘/var/lib/sec/wp-settings-pre.php’);
// @include_once(‘/var/lib/sec/wp-settings.php’);
Despite all of this, the error remains.All plugins currently remain disabled
The error referencing functions.php on line 6121 appears to be a symptom of something loading translations too early, not the root cause.
Thanks,
Hi,
Thank you for reaching out and for providing a detailed explanation. It really helps speed up the troubleshooting process.
From the video and the error messages, this seems to be related to output being sent too early, which is interfering with cookie handling and header operations.
Here are a few steps and observations that might help pinpoint the issue further:
1. Check for Extra Whitespace
Please double-check your “wp-config.php”, “functions.php”, and any custom mu-plugins (if any) to ensure there’s no whitespace or blank line before
<?phpat the beginning or after the closing?>at the end — even a single space or new line can cause these headers already sent issues.2. Tutor / Insta-Gallery Plugin Translations
The warning regarding _load_textdomain_just_in_time indicates that some plugin(s) (specifically tutor, tutor-pro, or insta-gallery) are trying to load translations too early — possibly outside of the proper hooks.
Since you’ve already disabled all plugins, it might be a case of:
– An incomplete cleanup of plugin cache
3. Enable Minimal Debug Output Temporarily
If you’re okay with turning on debugging just briefly (in a safe staging environment, if possible), you can enable:
define('WP_DEBUG', true); define('WP_DEBUG_LOG', true); define('WP_DEBUG_DISPLAY', false);Then try to trigger the login issue again and check the /wp-content/debug.log file for any silent errors.
4. SiteGround’s Auto-Includes
You’ve already commented those out, which is good. But SiteGround may have server-level caching enabled that continues injecting code. Try clearing any caching layers from the SiteGround dashboard and also check “.user.ini” and “.htaccess” files for anomalies.
If Still Unresolved
If possible, try creating a temporary copy of the site in a fresh subdirectory (like /staging) and test there with:
– A clean version of WordPress
– No must-use plugins
– Default theme (like Twenty Twenty-One)This would help isolate whether the issue is environment-related or file-based.
We’re happy to help further, so feel free to share any additional findings or logs. We’ll get this sorted together.
Best regards,
MehmetHi, I have managed to resolve this issue for now, Ill let you know if it happens again. Thanks.
You must be logged in and have valid license to reply to this topic.