Manually install wordpress locally on windows 10 problem - wordpress

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

Related

How to solve wp_cache_get Wordpress Xampp Fatal error

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

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.

Where can I find FPDF? "FPDF error: Some data has already been output..."

Where is FPDF? I use Wordpress and Go Daddy, I am trying to use this WooCommerce PDF Watermark, and I am getting a fatal error that causes the watermark not to be visible.
The error is below, how can I fix this?
Notice: iconv(): Wrong charset, conversion from UTF-8' to ISO-8859-1//TRANSLIT' is not allowed in /var/www/wp-content/plugins/woocommerce-pdf-watermark/includes/class-wc-pdf-watermarker.php on line 128
Fatal error: Uncaught Exception: FPDF error: Some data has already been output, can't send PDF file in /var/www/wp-content/plugins/woocommerce-pdf-watermark/includes/lib/fpdf/fpdf.php:292 Stack trace: #0 /var/www/wp-content/plugins/woocommerce-pdf-watermark/includes/lib/fpdf/fpdf.php(1081): FPDF->Error('Some data has a...') #1 /var/www/wp-content/plugins/woocommerce-pdf-watermark/includes/lib/fpdf/fpdf.php(1020): FPDF->_checkoutput() #2 /var/www/wp-content/plugins/woocommerce-pdf-watermark/includes/class-wc-pdf-watermarker.php(521): FPDF->Output() #3 /var/www/wp-content/plugins/woocommerce-pdf-watermark/includes/class-wc-pdf-watermark.php(610): WC_PDF_Watermarker->watermark(NULL, NULL, '/var/www/wp-con...', NULL, true) #4 /var/www/wp-includes/class-wp-hook.php(303): WC_PDF_Watermark->maybe_render_preview('') #5 /var/www/wp-includes/class-wp-hook.php(327): WP_Hook->apply_filters(NULL, Array) #6 /var/www/wp-includes/plugin.php(470): WP_Hook->do_action(Array) #7 /var/www/wp-admin/admin.php(175): do_action('admin_init') #8 {m in /var/www/wp-content/plugins/woocommerce-pdf-watermark/includes/lib/fpdf/fpdf.php on line 292
The server hosting your WordPress site must have the PHP class FPDF installed.
It is generating PDF files free of charge.
That class is one of the requirements of the Plugin "WooCommerce PDF Watermark".
See if you can install it at Go Daddy.
For instance by making FPDF a Composer requirement, if you can use Composer with your hosting package.

How do I solve the fatal error for wordpress?

I have updated the version of wordpress, and my webpage has not been working all of a sudden.
I have debugged to see what the problem is, and I could not understand any of the explanation that is written. I have spent hours trying figure out what it meant, and still could not grasp what I have to change and add. Could someone please explain what it means, and what I must do in order to fix this? Is there an instruction written in the notice & error? I am sorry if I did not provide enough information, I am very new to coding and web page making :(
Notice: date.php is deprecated since version 5.3.0! Use
wp-includes/class-wp-date-query.php instead. in
/home/vol10_1/epizy.com/epiz_24728949/htdocs/wp-includes/functions.php
on line 4719
Notice: class-oembed.php is deprecated since version 5.3.0! Use
wp-includes/class-wp-oembed.php instead. in
/home/vol10_1/epizy.com/epiz_24728949/htdocs/wp-includes/functions.php
on line 4719
Notice: Undefined property: wpdb::$blog_versions in
/home/vol10_1/epizy.com/epiz_24728949/htdocs/wp-includes/wp-db.php on
line 659
Warning: call_user_func_array() expects parameter 1 to be a valid
callback, function '_wp_add_additional_image_sizes' not found or
invalid function name in
/home/vol10_1/epizy.com/epiz_24728949/htdocs/wp-includes/class-wp-hook.php
on line 288
Fatal error: Uncaught Error: Class 'WP_Block_Styles_Registry' not
found in
/home/vol10_1/epizy.com/epiz_24728949/htdocs/wp-includes/script-loader.php:2899
Stack trace: #0
/home/vol10_1/epizy.com/epiz_24728949/htdocs/wp-includes/class-wp-hook.php(288):
enqueue_block_styles_assets('') #1
/home/vol10_1/epizy.com/epiz_24728949/htdocs/wp-includes/class-wp-hook.php(312):
WP_Hook->apply_filters(NULL, Array) #2
/home/vol10_1/epizy.com/epiz_24728949/htdocs/wp-includes/plugin.php(478):
WP_Hook->do_action(Array) #3
/home/vol10_1/epizy.com/epiz_24728949/htdocs/wp-includes/script-loader.php(2853): do_action('enqueue_block_a...') #4
/home/vol10_1/epizy.com/epiz_24728949/htdocs/wp-includes/class-wp-hook.php(288):
wp_common_block_scripts_and_styles('') #5
/home/vol10_1/epizy.com/epiz_24728949/htdocs/wp-includes/class-wp-hook.php(312):
WP_Hook->apply_filters(NULL, Array) #6
/home/vol10_1/epizy.com/epiz_24728949/htdocs/wp-includes/plugin.php(478):
WP_Hook->do_action(Array) #7
/home/vol10_1/epizy.com/epiz_24728949/htdocs/wp-includes/script- in
/home/vol10_1/epizy.com/epiz_24728949/htdocs/wp-includes/script-loader.php
on line 2899
There has been a critical error on your website.
Seems like the update went wrong and some files got corrupted.
You can try this to fix it:
Download a new Wordpress installation zip
https://wordpress.org/download/
Remove the folders wp-admin & wp-includes from your server
Reupload those folders from the fresh downloaded Wordpress zip
Note: this does not delete your site content, the content of your website is in the database and in the wp-content folder.
Your wordpress version 5.3 need php 7.4 version to be runned properly
so you need to upgrade your php version
or downgrade you wordpress version to 5.2 and disable wordpress auto update
// wp-configs.php
define( 'WP_AUTO_UPDATE_CORE', false );
PHP Version 7.2.18-1
WordPress 5.2.4
I am running 5 sites on same environment
you need to update your PHP version and use a stable WordPress version

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.

Resources