Support » Fixing WordPress » Your PHP installation appears to be missing

  • Resolved mzitnamor

    (@mzitnamor)


    After trying to create a customer account and then clicking on “my account” the following happens (sometimes it also happens when I switch languages):

    "Your PHP installation appears to be missing the MySQL extension which is required by WordPress."

    This rendered the whole website unusable.

    Error in cPanel:

    2020-01-17 23:22:27.196820 [NOTICE] [3474734] [...] [STDERR]
    PHP Warning: Use of undefined constant WP_CONTENT_DIR - assumed 'WP_CONTENT_DIR' (this will throw an Error in a future version of PHP) in /home/yamonkic/public_html/wp-includes/load.php on line 141

    Line 141 in load.php:
    if ( ! extension_loaded( 'mysql' ) && ! extension_loaded( 'mysqli' ) && ! extension_loaded( 'mysqlnd' ) && ! file_exists( WP_CONTENT_DIR . '/db.php' ) ) {

    I had the same before so I started with a clean sheet totally new install, but it happens again!

    I must have read hundreds of people’s similar experience and tried the problem solving as commented to those people. A lot of sources on the internet call for a check of PHP version and activation of extensions. I have checked these many times and they were and are always correct.

    
    <strong>### wp-core ###</strong>
    
    version: 5.3.2
    site_language: tr_TR
    user_language: en_US
    timezone: +03:00
    permalink: /%postname%/
    https_status: true
    user_registration: 1
    default_comment_status: closed
    multisite: false
    user_count: 4
    dotorg_communication: true
    
    ### wp-paths-sizes ###
    
    wordpress_path: /home/yamonkic/public_html
    wordpress_size: 45.76 MB (47984863 bytes)
    uploads_path: /home/yamonkic/public_html/wp-content/uploads
    uploads_size: 81.35 MB (85302643 bytes)
    themes_path: /home/yamonkic/public_html/wp-content/themes
    themes_size: 31.39 MB (32910048 bytes)
    plugins_path: /home/yamonkic/public_html/wp-content/plugins
    plugins_size: 89.56 MB (93912047 bytes)
    database_size: 12.82 MB (13441108 bytes)
    total_size: 260.88 MB (273550709 bytes)
    
    ### wp-active-theme ###
    
    name: Porto Child (porto-child)
    version: 1.1
    author: P-THEMES
    author_website: https://www.portotheme.com/
    parent_theme: Porto (porto)
    theme_features: post-thumbnails, title-tag, editor-style, automatic-feed-links, woocommerce, menus, post-formats, wp-block-styles, responsive-embeds, align-wide, editor-styles, editor-color-palette, widgets
    theme_path: /home/yamonkic/public_html/wp-content/themes/porto-child
    
    ### wp-parent-theme ###
    
    name: Porto (porto)
    version: 5.2.0
    author: P-THEMES
    author_website: http://www.portotheme.com/
    theme_path: /home/yamonkic/public_html/wp-content/themes/porto
    
    ### wp-themes-inactive (2) ###
    
    Twenty Nineteen: version: 1.4, author: the WordPress team
    Twenty Twenty: version: 1.1, author: the WordPress team
    
    ### wp-plugins-active (9) ###
    
    Coming Soon Page & Maintenance Mode by SeedProd: version: 5.1.0, author: SeedProd
    Contact Form 7: version: 5.1.6, author: Takayuki Miyoshi
    Loco Translate: version: 2.3.1, author: Tim Whitlock
    Porto Theme - Functionality: version: 1.5.2, author: P-Themes
    WooCommerce: version: 3.8.1, author: Automattic
    Woo Discount Rules: version: 1.9.2, author: Flycart Technologies LLP
    WPBakery Page Builder: version: 6.0.5, author: Michael M - WPBakery.com (latest version: 6.1)
    WP Fastest Cache: version: 0.9.0.1, author: Emre Vona
    WP Mail SMTP: version: 1.8.1, author: WPForms
    
    ### wp-plugins-inactive (6) ###
    
    iThemes Security: version: 7.6.1, author: iThemes
    WooCommerce Multilingual: version: 4.7.6, author: OnTheGoSystems
    WPML Media: version: 2.5.5, author: OnTheGoSystems
    WPML Multilingual CMS: version: 4.3.5, author: OnTheGoSystems
    WPML String Translation: version: 3.0.5, author: OnTheGoSystems
    WPML Translation Management: version: 2.9.3, author: OnTheGoSystems
    
    ### wp-media ###
    
    image_editor: WP_Image_Editor_GD
    imagick_module_version: Not available
    imagemagick_version: Not available
    gd_version: 2.2.5
    ghostscript_version: 9.25
    
    ### wp-server ###
    
    server_architecture: Linux 3.10.0-962.3.2.lve1.5.26.9.el7.x86_64 x86_64
    httpd_software: LiteSpeed
    php_version: 7.4.0 64bit
    php_sapi: litespeed
    max_input_variables: 6000
    time_limit: 300
    memory_limit: 256M
    max_input_time: 600
    upload_max_size: 2M
    php_post_max_size: 8M
    curl_version: 7.62.0 OpenSSL/1.0.2k
    suhosin: false
    imagick_availability: false
    htaccess_extra_rules: true
    
    ### wp-database ###
    
    extension: mysqli
    server_version: 10.3.20-MariaDB
    client_version: 10.3.20-MariaDB
    
    ### wp-constants ###
    
    WP_HOME: undefined
    WP_SITEURL: undefined
    WP_CONTENT_DIR: /home/yamonkic/public_html/wp-content
    WP_PLUGIN_DIR: /home/yamonkic/public_html/wp-content/plugins
    WP_MAX_MEMORY_LIMIT: 256M
    WP_DEBUG: false
    WP_DEBUG_DISPLAY: true
    WP_DEBUG_LOG: false
    SCRIPT_DEBUG: false
    WP_CACHE: false
    CONCATENATE_SCRIPTS: undefined
    COMPRESS_SCRIPTS: undefined
    COMPRESS_CSS: undefined
    WP_LOCAL_DEV: undefined
    DB_CHARSET: utf8mb4
    DB_COLLATE: undefined
    
    ### wp-filesystem ###
    
    wordpress: writable
    wp-content: writable
    uploads: writable
    plugins: writable
    themes: writable
    
    

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

Viewing 7 replies - 1 through 7 (of 7 total)
  • Thread Starter mzitnamor

    (@mzitnamor)

    Problem still occurs with:

    Coming Soon Page & Maintenance Mode
    Contact Form 7
    Loco Translate
    Woo Discount Rules
    WP Fastest Cache
    WP Mail SMTP

    plugins deactivated.

    I wonder if it’s a bug in that first release of your PHP 7.4?

    Thread Starter mzitnamor

    (@mzitnamor)

    Dear Nash, I had the problem a while ago with 7.3 as well. Then I tried to update to the newest 7.4 as WordPress is/was also switching anyway.

    Thus, switching back to 7.3 never solved the problem for me unfortunately.

    Thread Starter mzitnamor

    (@mzitnamor)

    Important information that I forgot to share: The error disappears if I wait long enough (like 10-15 minutes). I think this is weird too.

    Thread Starter mzitnamor

    (@mzitnamor)

    The problem has been solved.

    After messaging back and forth (a lot) with my hosting provider, they decided to move the website to a different server. After which I have not been able to bring back the error, thus initial assesment is giving me enough confidence that the issue has been solved.

    Thank you for the help, I hope the next person who gets this error and is desperate will try the same problem solving.

    See the following post that explains the problem with the PHP version update to 7.3 and load.php on line 141 with MySQL. WordPress may have a bug that needs to be fixed.

    https://wordpress.org/support/topic/php-7-3-errors/#post-12720824

    debabs

    (@debabs)

    Hi there, Please i have a problem with my site have this similar issue. i tried and all the possible solutions here but none works. Please any help?

    Your PHP installation appears to be missing the MySQL extension which is required by WordPress.

    Error message
    PHP Warning: Use of undefined constant WP_CONTENT_DIR – assumed ‘WP_CONTENT_DIR’ (this will throw an Error in a future version of PHP) in /home//public_html/wp-includes/load.php on line 151

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Your PHP installation appears to be missing’ is closed to new replies.