How to solve wp_cache_get Wordpress Xampp Fatal error - wordpress

I have edited yesterday locally on my wordpress xampp installation several hours of content, texts and images.
The website was running all day.
When I wanted to start Xampp this morning the following message appeared:
Error: MySQL shutdown unexpectedly. While Trying to start Mysql on Xampp
So i Removed the Files which names start with aria_log in folder /xampp/mysql/data/
afterwards I was able to start xampp and call the dashboard in the browser.
now I get the following errors in my website:
Fatal error: Uncaught Error: Call to undefined function wp_cache_get() in
C:\xampp\htdocs\tilders\wp-includes\option.php:165
Stack trace:
#0 C:\xampp\htdocs\tilders\wp-includes\l10n.php(63): get_option('WPLANG')
#1 C:\xampp\htdocs\tilders\wp-includes\l10n.php(139): get_locale()
#2 C:\xampp\htdocs\tilders\wp-includes\l10n.php(766): determine_locale()
#3 C:\xampp\htdocs\tilders\wp-includes\load.php(1395): load_textdomain('default', 'C:\\xampp\\htdocs...')
#4 C:\xampp\htdocs\tilders\wp-includes\class-wpdb.php(1198): wp_load_translations_early()
#5 C:\xampp\htdocs\tilders\wp-includes\class-wpdb.php(1858): wpdb->select('tilders', Object(mysqli))
#6 C:\xampp\htdocs\tilders\wp-includes\class-wpdb.php(734): wpdb->db_connect()
#7 C:\xampp\htdocs\tilders\wp-includes\load.php(562): wpdb->__construct('tilders', 'tilders', 'tilders', 'localhost')
#8 C:\xampp\htdocs\tilders\wp-settings.php(124): require_wp_db()
#9 C:\xampp\htdocs\tilders\wp-config.php(99): require_once('C:\\xampp\\htdocs...')
#10 C:\xampp\htdocs\tilders\wp-load.php(50) in C:\xampp\htdocs\tilders\wp-includes\option.php on line 165
Fatal error: Uncaught Error: Call to a member function set() on null in C:\xampp\htdocs\tilders\wp-includes\l10n.php:784
Stack trace: #0 C:\xampp\htdocs\tilders\wp-includes\l10n.php(872): load_textdomain('default', 'C:\\xampp\\htdocs...', 'de_DE')
#1 C:\xampp\htdocs\tilders\wp-includes\class-wp-fatal-error-handler.php(47): load_default_textdomain()
#2 [internal function]: WP_Fatal_Error_Handler->handle()
#3 {main} thrown in C:\xampp\htdocs\tilders\wp-includes\l10n.php on line 784
So far I have tried the following:
Renamed all plugin folders
have replaced the following folders and main directory files
/wp-admin/
/wp-includes/
and .php files in the site root
renamed the folder w3tc-config to w3tc-config.delete
renamed all theme folders without "twentytwentytwo"
Do you have any ideas?

I have had the tables repaired under mysql admin. And the XAMPP database user had no more rights on his database.
This has solved the error

Related

how can fix the "Fatal Error " while logging in the website

i just did a backup, and when i tried to log in the website (/wp-admin) this error appears:
Warning: require(/htdocs/wp-includes/version.php): Failed to open stream: No such file or directory in /htdocs/wp-settings.php on line 33
Fatal error: Uncaught Error: Failed opening required '/htdocs/wp-includes/version.php' (include_path='.:/usr/share/php') in /htdocs/wp-settings.php:33 Stack trace: #0 /htdocs/wp-config.php(86): require_once() #1 /htdocs/wp-load.php(50): require_once('/htdocs/wp-conf...') #2 /htdocs/wp-admin/admin.php(34): require_once('/htdocs/wp-load...') #3 /htdocs/wp-admin/index.php(10): require_once('/htdocs/wp-admi...') #4 {main} thrown in /htdocs/wp-settings.php on line 33
for more info this is my website: https://sg-plombier.be/
i don't know what to do now.
Please check if the file exists on the location, if exists then check the file and folder permission.
The file exist o the location, and for the update, I just upload the file (version.php) to the latest version of WordPress. And then these errors appears now:
Fatal error: Uncaught Error: Call to undefined function wp_cache_get() in /htdocs/wp-includes/option.php:165 Stack trace: #0 /htdocs/wp-includes/l10n.php(63): get_option('WPLANG') #1 /htdocs/wp-includes/l10n.php(139): get_locale() #2 /htdocs/wp-includes/l10n.php(766): determine_locale() #3 /htdocs/wp-includes/load.php(1395): load_textdomain('default', '/htdocs/wp-cont...') #4 /htdocs/wp-includes/class-wpdb.php(1815): wp_load_translations_early() #5 /htdocs/wp-includes/class-wpdb.php(734): wpdb->db_connect() #6 /htdocs/wp-includes/load.php(562): wpdb->__construct('sgplo1953451', 'hmeqvf7gos', 'sgplo1953451', '91.216.107.183') #7 /htdocs/wp-settings.php(124): require_wp_db() #8 /htdocs/wp-config.php(86): require_once('/htdocs/wp-sett...') #9 /htdocs/wp-load.php(50): require_once('/htdocs/wp-conf...') #10 /htdocs/wp-admin/admin.php(34): require_once('/htdocs/wp-load...') #11 /htdocs/wp-admin/index.php(10): require_once('/htdocs/wp-admi...') #12 {main} thrown in /htdocs/wp-includes/option.php on line 165
Fatal error: Uncaught Error: Call to a member function set() on null in /htdocs/wp-includes/l10n.php:784 Stack trace: #0 /htdocs/wp-includes/l10n.php(872): load_textdomain('default', '/htdocs/wp-cont...', 'fr_FR') #1 /htdocs/wp-includes/class-wp-fatal-error-handler.php(47): load_default_textdomain() #2 [internal function]: WP_Fatal_Error_Handler->handle() #3 {main} thrown in /htdocs/wp-includes/l10n.php on line 784
I ran into same error, after I disabled and uninstall w3 Total Cache Plugin, I dont know how somehow this plugin interact with the DB upon installation, I solved this by installing the plugin manually to my cpanel or you can use an ftp to your plugin directory...then booom! the admin loads fine.

WordPress file showing error doesn't exist in my WordPress folders

A file directory that doesn't exist is causing a fatal error on my website. The funniest thing is that the folder doesn't exist at all. Below is the error code.
Fatal error: Uncaught Error: Call to undefined function wpcf7_include_module_file() in /usr/www/users/firsttyqsc/wp-content/plugins/contact-form-7/modules/constant-contact/constant-contact.php:8 Stack trace: #0 /usr/www/users/firsttyqsc/wp-content/plugins/contact-form-7/load.php(72): include_once() #1 /usr/www/users/firsttyqsc/wp-content/plugins/contact-form-7/load.php(38): WPCF7::load_module('constant-contac...') #2 /usr/www/users/firsttyqsc/wp-content/plugins/contact-form-7/load.php(105): WPCF7::load_modules() #3 /usr/www/users/firsttyqsc/wp-includes/class-wp-hook.php(305): wpcf7() #4 /usr/www/users/firsttyqsc/wp-includes/class-wp-hook.php(331): WP_Hook->apply_filters(NULL, Array) #5 /usr/www/users/firsttyqsc/wp-includes/plugin.php(474): WP_Hook->do_action(Array) #6 /usr/www/users/firsttyqsc/wp-settings.php(450): do_action('plugins_loaded') #7 /usr/www/users/firsttyqsc/wp-config.php(92): require_once('/usr/www/users/...') #8 /usr/www/users/firsttyqsc/wp-load.php(50): require_once('/usr/www/users/...') #9 /usr/www/users/ in /usr/www/users/firsttyqsc/wp-content/plugins/contact-form-7/modules/constant-contact/constant-contact.php on line 8
To get your site back up and running, rename the contact-form-7 plugin folder in wp-content/plugins/contact-form-7 to contact-form-7-2 for example... This will deactivate the plugin and hopefully restore your site back for troubleshooting later. This 'fix' is will not allow the plugin work right away. I recommend reinstalling Contact Form 7 again to see if you can recover your templates. If you have the same problem again, delete the second install folder labeled 'contact-form-7' for tidiness. At this point you will need to delete the backup folder from before, reinstall again, and re-setup your templates.
There appears to be an issue with the Contact Contact integration for Contact Form 7.

Manually install wordpress locally on windows 10 problem

I'm new to wordpress. I try to install wordpress on windows 10 with Mysql8.0, PHP8.1.0, Apache24 and wordpress5.8.2. At first, the installation process is stuck in creating wp-config.php with the error "PHP Fatal error: Uncaught mysqli_sql_exception: Unknown column 'wp_' in 'field list' in". The wp-config.php is created when i comment the lines 317 to 322 in wp-admin\setup-config.php. I continue to install the wordpress. The next error is:
PHP Fatal error: Uncaught mysqli_sql_exception: Table 'wordpress.qlj_options' doesn't exist in D:\Program Files\Apache24\htdocs\wordpress\wp-includes\wp-db.php:2056
Stack trace:
#0 D:\Program Files\Apache24\htdocs\wordpress\wp-includes\wp-db.php(2056): mysqli_query(Object(mysqli), 'SELECT option_v...')
#1 D:\Program Files\Apache24\htdocs\wordpress\wp-includes\wp-db.php(1945): wpdb->_do_query('SELECT option_v...')
#2 D:\Program Files\Apache24\htdocs\wordpress\wp-includes\wp-db.php(2581): wpdb->query('SELECT option_v...')
#3 D:\Program Files\Apache24\htdocs\wordpress\wp-includes\functions.php(1734): wpdb->get_var('SELECT option_v...')
#4 D:\Program Files\Apache24\htdocs\wordpress\wp-includes\load.php(752): is_blog_installed()
#5 D:\Program Files\Apache24\htdocs\wordpress\wp-settings.php(159): wp_not_installed()
#6 D:\Program Files\Apache24\htdocs\wordpress\wp-config.php(97): require_once('D:\\Program File...')
#7 D:\Program Files\Apache24\htdocs\wordpress\wp-load.php(50): require_once('D:\\Program File...')
#8 D:\Program Files\Apache24\htdocs\wordpress\wp-admin\install.php(36): require_once('D:\\Program File...')
#9 {main}
thrown in D:\Program Files\Apache24\htdocs\wordpress\wp-includes\wp-db.php on line 2056
It seems to require database before creating it. I think this error is the same with the first.
Can anyone please help?
I am so excited that i installed the wordpress. Here is what i did. First, I manually created all the default tables that wordpress needs in database(you can find the sql in wp-admin/includes/schema.php), then i tried to repair the database using url wp-admin/maint/repair.php. It showed so many deprecated errors and warnings of PHP. So i thought maybe the version of PHP is not right. I tried to use PHP-7.4.27 instead of PHP8 and deleted all the tables created before. Then everything just done.
My English is not very good. I hope you can understand what i'm saying.
enter image description here

wordpress site error after using virus scanner from Cpanel

I scanned my website virus from cpanel virus scanner and its scanned some viruses is /logs folder and some in /mail/... folders some mails
I deleted those destroy all those mails and quarantined one file from /logs follder after that my site is not accessing
here is the error
Fatal error: Uncaught Error: Call to undefined function ts_theme_favicon() in /home/worldlink/public_html/wp-content/themes/gon/header.php:17 Stack trace: #0 /home/worldlink/public_html/wp-includes/template.php(688): require_once() #1 /home/worldlink/public_html/wp-includes/template.php(647): load_template('/home/worldlink/...', true) #2 /home/worldlink/public_html/wp-includes/general-template.php(41): locate_template(Array, true) #3 /home/worldlink/public_html/wp-content/themes/gon/page.php(3): get_header('') #4 /home/worldlink/public_html/wp-includes/template-loader.php(74): include('/home/worldlink/...') #5 /home/worldlink/public_html/wp-blog-header.php(19): require_once('/home/worldlink/...') #6 /home/worldlink/public_html/index.php(17): require('/home/worldlink/...') #7 {main} thrown in /home/worldlink/public_html/wp-content/themes/gon/header.php on line 17
When you see errors with the WordPress core, such as:
/home/worldlink/public_html/wp-includes/template-loader.php
it's time to reinstall WordPress. It's likely there is malicious code in the core files they was referencing one of the files you deleted, and that's why you're suddenly getting errors.
I've found WordFence to be a brilliant plugin for scanning all the files that make up your website (core, theme and plugins) and identifying exactly which files have been compromised.
In the error you reported, your theme is giving errors as well:
/home/worldlink/public_html/wp-content/themes/gon/header.php
Try switching to another theme and seeing if that resolves the issue.

Fatal error: Uncaught Error: Function name must be a string in:..wp-content\themes\jupiter\framework\admin\generators\option-generator.php:80

I developed a theme for my woocommerce store locally through jupitor wordpress them, xampp. Now I have installed wordpress on a server, and integrated the theme I developed. I get this error when i open theme option page:
Fatal error: Uncaught Error:
Function name must be a string in
H:\root\home\amanantru3-001\www\mydesign\wp-content\themes\jupiter\framework\admin\generators\option-generator.php:80
Stack trace: #0
H:\root\home\amanantru3-001\www\mydesign\wp-content\themes\jupiter\framework\admin\generators\option-generator.php(9):
mkOptionGenerator->render() #1
H:\root\home\amanantru3-001\www\mydesign\wp-content\themes\jupiter\functions.php(253):
mkOptionGenerator->__construct('Jupiter_options', Array) #2
H:\root\home\amanantru3-001\www\mydesign\wp-includes\plugin.php(524):
Theme->_load_option_page('') #3
H:\root\home\amanantru3-001\www\mydesign\wp-admin\admin.php(222):
do_action('toplevel_page_m...') #4 {main} thrown in
H:\root\home\amanantru3-001\www\mydesign\wp-content\themes\jupiter\framework\admin\generators\option-generator.php
on line 80
Also, my visual composer is not working on the server now.
Please help me...
Please check that an array is used as function name in the file.
You can check the same error reported here:
Wordpress Theme admin panel showing fatal error in local server

Resources