Yes, this is a bug, but it appear only when the WP configuration is not finished.
The error occurs on this line (in wp-includes/load.php) :
if ( ! extension_loaded( 'mysql' )
&& ! extension_loaded( 'mysqli' )
&& ! extension_loaded( 'mysqlnd' )
&& ! file_exists( WP_CONTENT_DIR . '/db.php' ) ) {
(...)
This checks that mysql extension is installed, and tries several things for this.
The last check will not work because WP_CONTENT_DIR
is not defined yet at this stage.
The logical way to fix this is to ignore this error, and install PHP mysql extension, like so (in Debian) :
sudo apt install php-mysql
Related Posts:
- Installing wp3.2.1 on IIS; getting empty sessions
- Install will not load: PHP does not have MYSQL installed
- Failed to open stream / no such file or directory
- Create a quick start wordpress installation [closed]
- Correct folder permissions?
- Must I download entire WP directory for each separate instance/website that uses WP?
- How can I fix WordPress installation errors?
- PHP Fatal error: Uncaught Error: Call to undefined function wp_kses_normalize_entities() in new wordpress installation
- Fresh Install WP error – “The site is experiencing technical difficulties” [closed]
- Workaround for: PHP syntax error, unexpected T_STRING in load.php on line 1104 (when installing)
- Why can’t I connect to the wordpress install page with Nginx?
- PHP error on local server install
- All content deleted when WP was reinstalled in another machine
- 3 domains, 1 wordpress install, redirecting and changing domains on live site
- WP white screen of death after duping a site that works fine on same server
- Convert hex color to RGB values in PHP
- Calculate business days
- How do I make a redirect in PHP?
- How to add elements to an empty array in PHP?
- What do ++ and *+ mean?
- What’s the net::ERR_HTTP2_PROTOCOL_ERROR about?
- Undefined function mysql_connect()
- MySQL column count doesn’t match value count at row 1 [closed]
- Matching a space in regex
- Undefined function mysql_connect()
- How can I send an email using PHP?
- Fatal error: Call to undefined function mysql_connect()
- count() parameter must be an array or an object that implements countable in laravel
- Go Back to Previous Page
- How do I check if a string contains a specific word?
- How do I replace part of a string in PHP? [duplicate]
- How to declare a global variable in php?
- How to fix “Headers already sent” error in PHP
- Fatal error: Call to undefined function mysql_connect()
- How to fix ‘Notice: Undefined index:’ in PHP form action
- Loop through an array php
- Deprecated: mysql_connect()
- Where does PHP store the error log? (PHP 5, Apache, FastCGI, and cPanel)
- Chrome net::ERR_INCOMPLETE_CHUNKED_ENCODING error
- Illegal string offset Warning PHP
- What is PHPSESSID?
- MySQL “Or” Condition
- What is the significance of the number, 32767?
- PHP – how to create a newline character?
- How to add a line break within echo in PHP?
- Unable to locate package libapache2-mod-php7
- How to read a large file line by line?
- Best way to do multiple constructors in PHP
- How to get URL of current page displayed?
- Undefined variable in functions.php file [closed]
- What are PHP extensions and libraries WP needs and/or uses?
- What is the correct way to use WordPress functions outside WordPress files?
- Allow HTML in excerpt
- How to get WordPress Time Zone setting?
- how to get page id of a page using page slug
- Check if current page is the Blog Page
- How to set and use global variables? Or why not to use them at all
- Sending the reset password link programatically
- How to add product in woocommerce with php code [closed]
- Show all terms of a custom taxonomy?
- How exactly do automatic updates work?
- what is correct way to hook when update post
- How to update custom fields using the wp_insert_post() function?
- How to create custom 401, 403 and 500 error pages?
- Why have on every line
- Most efficient way to add javascript file to specific post and/or pages?
- Running WP Cron on multisite the right way
- Getting only direct child pages in WordPress with get_pages
- the_date() not working
- How do I use WP_query with multiple post IDs?
- How to return number of found rows from SELECT query
- Query multiple custom post types in single loop
- How to include checkbox in widget backend form?
- Setting $_SERVER[‘HTTPS’]=’on’ prevents access to wp-admin
- How to deprecate a function used in a plugin?
- get current category ID php
- Converting timestamps to local time with date_l18n()
- To close or not to close php
- How to manually fix the WordPress gallery code using PHP in functions.php?
- What is the meaning of %s, %1$s etc.? [closed]
- Contact form redirecting to page not found on send
- User registration followed by automatic login
- Setting custom cookies in WordPress
- Adding first / last CSS classes to menus
- Remove update nags for non-admins [duplicate]
- Are WordPress Heartbeat API ‘beats’ staggered or do they occur simultaneously for all users?
- How to correctly add Javascript in functions.php
- Display current category title on category page
- Can I use the same nonce for multiple requests on the same page?
- Why isn’t WordPress part of Framework Interop Group?
- WordPress and magic quotes
- How to check if a plugin (WooCommerce) is active?
- How to check if a string is a valid URL
- Best Practice for PHP
- Is there a way to use the WordPress users but without loading the entire WordPress core?
- WordPress refuses to send mail, “…your host may have disabled the mail() function”
- How does printf( __( ) ); work?
- How to fix the admin menu margin-top bug in WordPress 5.5?
- How to make a image-size selected by default in Media upload – WP v3.5
- Override get_template_directory() in child theme?