• Resolved skoramdel

    (@skoramdel)


    Hello everyone,

    I recently began updating WordPress through my Admin page and it suddenly failed and gave me this error:

    “There has been a critical error on this website. Please check your site admin email inbox for instructions.”

    I have not received an email with instructions, and after some Googling I am a little confused as to how I can fix this. I use the site for clients to book appointments with, so it is important to have it up and running as soon as possible.

    I enabled debugging mode and the following errors were shown:

    ———————————————————————
    Fatal error: Uncaught Error: Call to a member function has() on null in /home/h7pwtnnrs29n/public_html/wp-includes/l10n.php:1268 Stack trace: #0 /home/h7pwtnnrs29n/public_html/wp-includes/l10n.php(1303): _load_textdomain_just_in_time(‘booked’) #1 /home/h7pwtnnrs29n/public_html/wp-includes/l10n.php(187): get_translations_for_domain(‘booked’) #2 /home/h7pwtnnrs29n/public_html/wp-includes/l10n.php(332): translate(‘Booking Agent’, ‘booked’) #3 /home/h7pwtnnrs29n/public_html/wp-content/plugins/booked/booked.php(940): esc_html__(‘Booking Agent’, ‘booked’) #4 /home/h7pwtnnrs29n/public_html/wp-settings.php(428): include_once(‘/home/h7pwtnnrs…’) #5 /home/h7pwtnnrs29n/public_html/wp-config.php(112): require_once(‘/home/h7pwtnnrs…’) #6 /home/h7pwtnnrs29n/public_html/wp-load.php(50): require_once(‘/home/h7pwtnnrs…’) #7 /home/h7pwtnnrs29n/public_html/wp-admin/admin.php(34): require_once(‘/home/h7pwtnnrs…’) #8 /home/h7pwtnnrs29n/public_html/wp-admin/index.php(10): require_once(‘/home/h7pwtnnrs…’) #9 {main} thrown in /home/h7pwtnnrs29n/public_html/wp-includes/l10n.php on line 1268

    Notice: Function is_embed was called incorrectly. Conditional query tags do not work before the query is run. Before then, they always return false. Please see Debugging in WordPress for more information. (This message was added in version 3.1.0.) in /home/h7pwtnnrs29n/public_html/wp-includes/functions.php on line 5835

    Notice: Function is_search was called incorrectly. Conditional query tags do not work before the query is run. Before then, they always return false. Please see Debugging in WordPress for more information. (This message was added in version 3.1.0.) in /home/h7pwtnnrs29n/public_html/wp-includes/functions.php on line 5835
    ———————————————————————

    I’m not really sure what to do with this information, and was hoping someone can help me navigate these errors to solve the problem.

    Any help would be appreciated, thank you!

Viewing 8 replies - 1 through 8 (of 8 total)
  • Moderator threadi

    (@threadi)

    The cause is the plugin booked, which you have installed and activated. It seems to be compatible with the new WordPress version. This is a commercial plugin, so if you want to continue using it, you should contact their support for a solution: https://getbooked.io/

    A quick fix would be to FTP delete the plugin directory from this plugin (called booked). Then the error messages should be gone. The support of your hoster can help you with the FTP connection.

    Thread Starter skoramdel

    (@skoramdel)

    @threadi Thank you for your response.

    I renamed the plugins folder to eliminate any issues with the plugin, but now I am receiving another error in relation to the theme I believe. I also tried to rename the theme but it still doesn’t let me in.

    If I delete WordPress altogether, reinstall, and load all my backup files back in (created with UpDraft), would that be an option?

    Thank you again for your help.

    Moderator threadi

    (@threadi)

    You can delete the theme, but you would have to store another one as an alternative. However, a missing theme should not prevent you from logging into the WP backend. Is there any error message about this?

    A reinstallation is only worthwhile if you have virtually no content to transfer. And even there you could run into the same error if you use the same software again.

    Thread Starter skoramdel

    (@skoramdel)

    @threadi
    This is the new error I am receiving now. I haven’t made any changes to the theme or theme folder, just the plugins folder.

    Fatal error: Uncaught Error: Call to a member function has() on null in /home/h7pwtnnrs29n/public_html/wp-includes/l10n.php:1268 Stack trace: #0 /home/h7pwtnnrs29n/public_html/wp-includes/l10n.php(1303): _load_textdomain_just_in_time(‘entrepreneur’) #1 /home/h7pwtnnrs29n/public_html/wp-includes/l10n.php(187): get_translations_for_domain(‘entrepreneur’) #2 /home/h7pwtnnrs29n/public_html/wp-includes/l10n.php(299): translate(‘Theme Options’, ‘entrepreneur’) #3 /home/h7pwtnnrs29n/public_html/wp-content/themes/entrepreneurx/lib/customizer.php(38): __(‘Theme Options’, ‘entrepreneur’) #4 /home/h7pwtnnrs29n/public_html/wp-content/themes/entrepreneurx/functions.php(42): include(‘/home/h7pwtnnrs…’) #5 /home/h7pwtnnrs29n/public_html/wp-settings.php(566): include(‘/home/h7pwtnnrs…’) #6 /home/h7pwtnnrs29n/public_html/wp-config.php(112): require_once(‘/home/h7pwtnnrs…’) #7 /home/h7pwtnnrs29n/public_html/wp-load.php(50): require_once(‘/home/h7pwtnnrs…’) #8 /home/h7pwtnnrs29n/public_html/wp-admin/admin.php(34): require_once(‘/hom in /home/h7pwtnnrs29n/public_html/wp-includes/l10n.php on line 1268

    • This reply was modified 3 years, 5 months ago by skoramdel.
    Moderator threadi

    (@threadi)

    You wrote above that you tried to rename the theme directory? That doesn’t change anything? Then delete the theme directory (after backup) and upload a default theme. You can find the ZIP here: https://ww.wp.xz.cn/themes/twentytwentyone/

    It is strange that all this happens after installing updates. Which updates were they exactly? Only WordPress itself or also the plugins and themes? What version of wordpress did you come from?

    Thread Starter skoramdel

    (@skoramdel)

    @threadi I’ve tried to rename the theme directory, and delete my main theme which resulted in this error:

    Fatal error: Uncaught Error: Class 'WP_Theme_JSON_Data' not found in /home/h7pwtnnrs29n/public_html/wp-includes/class-wp-theme-json-resolver.php:183 Stack trace: #0 /home/h7pwtnnrs29n/public_html/wp-includes/class-wp-theme-json-resolver.php(559): WP_Theme_JSON_Resolver::get_core_data() #1 /home/h7pwtnnrs29n/public_html/wp-includes/script-loader.php(3205): WP_Theme_JSON_Resolver::get_merged_data() #2 /home/h7pwtnnrs29n/public_html/wp-includes/script-loader.php(3401): {closure}() #3 /home/h7pwtnnrs29n/public_html/wp-includes/class-wp-hook.php(308): {closure}('') #4 /home/h7pwtnnrs29n/public_html/wp-includes/class-wp-hook.php(332): WP_Hook->apply_filters(NULL, Array) #5 /home/h7pwtnnrs29n/public_html/wp-includes/plugin.php(517): WP_Hook->do_action(Array) #6 /home/h7pwtnnrs29n/public_html/wp-settings.php(620): do_action('wp_loaded') #7 /home/h7pwtnnrs29n/public_html/wp-config.php(112): require_once('/home/h7pwtnnrs...') #8 /home/h7pwtnnrs29n/public_html/wp-load.php(50): require_once('/home/h7pwtnnrs...') #9 /home/h7pwtnnrs29n in /home/h7pwtnnrs29n/public_html/wp-includes/class-wp-theme-json-resolver.php on line 183

    This is strange, I can usually find my way around support forums and troubleshooting to solve my WordPress problems but this one I can’t seem to figure out.

    This is a step by step of what I did before this error:
    1. Backed up website with UpDraftPlus
    2. Updated all my plugins
    3. Updated my theme
    4. Started the update for WordPress, I believe the version was 6.1.1

    A few extra notes, my hosting account shows that its still on WordPress 6.0.3 and I am on PHP 7.4 if that is relevant.

    Moderator threadi

    (@threadi)

    It sounds to me more like the update was not done completely, resulting in missing files. Maybe because of the Booked plugin – it’s hard to judge. I would recommend you to download the ZIP of the 6.1.1 release (https://ww.wp.xz.cn/download/releases/), unpack it locally and download it via FTP.

    Thread Starter skoramdel

    (@skoramdel)

    @threadi Thank you so much!

    I downloaded the latest release of WordPress and uploaded it via FTP and everything seems to be working now, except for a few glitches on the site itself but nothing I can’t resolve through Elementor.

    Thank you again for your assistance, I’m glad it was just a simple fix.

Viewing 8 replies - 1 through 8 (of 8 total)

The topic ‘Critical Error While Updating’ is closed to new replies.