• Hi all,

    When i load my site i get this message:
    Your PHP installation appears to be missing the MySQL extension which is required by WordPress.

    How can i solve this error? I have upload the last wordpress to the site but still got this message.

    Regards

    The page I need help with: [log in to see the link]

Viewing 7 replies - 1 through 7 (of 7 total)
  • Contact your web hosting support they will handle this error.

    Thread Starter rhercules

    (@rhercules)

    Hi,

    I have Ubuntu Server 22.04, so its something wrong with the upgrade i made from 18.04. Regards

    Please check phpnfo(). if mysqlnd version under MysqlI Support head is missing you’d need to install it.

    Thread Starter rhercules

    (@rhercules)

    Hi,

    Mysqli Support is not missing. So what can i do more? Regards

    This error message indicates that the PHP installation on your web server does not have the MySQL extension, which is required by WordPress to communicate with your database. To resolve this issue, you need to install the MySQL extension for PHP.

    Here are the steps to install the MySQL extension on your web server:

    1. Log in to your web server using SSH.
    2. Check your PHP version by running the following command:

    php -v

    3. Install the MySQL extension for your PHP version by running the following command:

    sudo apt-get install php-mysql

    Note: The exact command may vary based on your operating system and PHP version.

    1. Restart your web server to apply the changes.
      sudo service apache2 restart
    2. Note: The command to restart your web server may vary based on your operating system.
    3. After you complete these steps, the error message should no longer appear when you load your site. If you continue to experience issues, please let me know and I would be happy to help further.

      I did same with another client’s website and issue was resolved here is his website link: [removed by moderator – please do not spam]
    Thread Starter rhercules

    (@rhercules)

    Thanks for helping guys.

    Now i have another error since i reinstall the phpmyadmin.
    “There has been a critical error on this website. Please check your site admin email inbox for instructions.”

    I still cant enter in wp-admin but when i enter in phpmyadmin it works well now and the database are there intact. Apache2 is running well i think. So any new ideas that i may be missing?

    Regards

    Thread Starter rhercules

    (@rhercules)

    It is possible to be any old plugin to do this? Any ideas how to fix this?
    
    This is the debug.log:
    
    Notice: spl_autoload_register(): Argument #2 ($do_throw) has been ignored, spl_autoload_register() will always throw in /var/web/rbarcia.pt/httpdocs/wp-content/plugins/loco-translate/loco.php on line 165
    
    Deprecated: Return type of codecabin\Settings::offsetExists($offset) should either be compatible with ArrayAccess::offsetExists(mixed $offset): bool, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /var/web/rbarcia.pt/httpdocs/wp-content/plugins/wp-google-maps/lib/codecabin/class.settings.php on line 66
    
    Deprecated: Return type of codecabin\Settings::offsetGet($offset) should either be compatible with ArrayAccess::offsetGet(mixed $offset): mixed, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /var/web/rbarcia.pt/httpdocs/wp-content/plugins/wp-google-maps/lib/codecabin/class.settings.php on line 71
    
    Deprecated: Return type of codecabin\Settings::offsetSet($offset, $value) should either be compatible with ArrayAccess::offsetSet(mixed $offset, mixed $value): void, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /var/web/rbarcia.pt/httpdocs/wp-content/plugins/wp-google-maps/lib/codecabin/class.settings.php on line 79
    
    Deprecated: Return type of codecabin\Settings::offsetUnset($offset) should either be compatible with ArrayAccess::offsetUnset(mixed $offset): void, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /var/web/rbarcia.pt/httpdocs/wp-content/plugins/wp-google-maps/lib/codecabin/class.settings.php on line 85
    
    Deprecated: Return type of codecabin\Settings::jsonSerialize() should either be compatible with JsonSerializable::jsonSerialize(): mixed, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /var/web/rbarcia.pt/httpdocs/wp-content/plugins/wp-google-maps/lib/codecabin/class.settings.php on line 92
    
    Deprecated: Return type of codecabin\Settings::getIterator() should either be compatible with IteratorAggregate::getIterator(): Traversable, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /var/web/rbarcia.pt/httpdocs/wp-content/plugins/wp-google-maps/lib/codecabin/class.settings.php on line 97
    
    Fatal error: Uncaught Error: Class "WPGMZA\Integration\Gutenberg" not found in /var/web/rbarcia.pt/httpdocs/wp-content/plugins/wp-google-maps/includes/class.plugin.php:82 Stack trace: #0 [internal function]: WPGMZA\Plugin->__construct() #1 /var/web/rbarcia.pt/httpdocs/wp-content/plugins/wp-google-maps/includes/class.factory.php(55): ReflectionClass->newInstanceArgs() #2 /var/web/rbarcia.pt/httpdocs/wp-content/plugins/wp-google-maps/includes/class.plugin.php(474): WPGMZA\Factory::createInstance() #3 /var/web/rbarcia.pt/httpdocs/wp-content/plugins/wp-google-maps/includes/class.plugin.php(481): WPGMZA\create() #4 /var/web/rbarcia.pt/httpdocs/wp-includes/class-wp-hook.php(308): WPGMZA\{closure}() #5 /var/web/rbarcia.pt/httpdocs/wp-includes/class-wp-hook.php(332): WP_Hook->apply_filters() #6 /var/web/rbarcia.pt/httpdocs/wp-includes/plugin.php(517): WP_Hook->do_action() #7 /var/web/rbarcia.pt/httpdocs/wp-settings.php(480): do_action() #8 /var/web/rbarcia.pt/httpdocs/wp-config.php(89): require_once('...') #9 /var/web/rbarcia.pt/httpdocs/wp-load.php(50): require_once('...') #10 /var/web/rbarcia.pt/httpdocs/wp-blog-header.php(13): require_once('...') #11 /var/web/rbarcia.pt/httpdocs/index.php(17): require('...') #12 {main} thrown in /var/web/rbarcia.pt/httpdocs/wp-content/plugins/wp-google-maps/includes/class.plugin.php on line 82
    
    Notice: Function is_embed was called incorrectly. As etiquetas de consultas condicionais (query tags) n?o funcionam antes da consulta ser executada, devolvem sempre 'false'. Por favor veja Depura??o no WordPress para mais informa??es. (Esta mensagem foi adicionada na vers?o 3.1.0.) in /var/web/rbarcia.pt/httpdocs/wp-includes/functions.php on line 5835
    
    Notice: Function is_search was called incorrectly. As etiquetas de consultas condicionais (query tags) n?o funcionam antes da consulta ser executada, devolvem sempre 'false'. Por favor veja Depura??o no WordPress para mais informa??es. (Esta mensagem foi adicionada na vers?o 3.1.0.) in /var/web/rbarcia.pt/httpdocs/wp-includes/functions.php on line 5835
    
    There has been a critical error on this website.
Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Missing extension required by WordPress’ is closed to new replies.