• Hello

    I tried to update to PHP 7.3 but when I want to login I get this error.

    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/f3157076/public_html/wp/wp-includes/load.php on line 141
    Your PHP installation appears to be missing the MySQL extension which is required by WordPress.

    Can someone help

    Thanks

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

Viewing 4 replies - 1 through 4 (of 4 total)
  • Hello @albie5047,

    There is missing mysql in your server,so please tell the server team about install mysql or enable the mysql. otherwise please tell me which server you have used,so i will help you more.

    Thanks & Regards

    Thread Starter albie5047

    (@albie5047)

    Hi @anant101289

    Thank you for the respond. Here is the server information. I hope this help.

    Server Information

    Hosting Package UHUX2
    Server Name cpt-cpanel-02
    cPanel Version 76.0 (build 14)
    Apache Version 2.4.41
    PHP Version 5.6.40
    MySQL Version 10.2.29-MariaDB-cll-lve
    Architecture x86_64
    Operating System linux
    Shared IP Address 196.41.130.152
    Path to Sendmail /usr/sbin/sendmail
    Path to Perl /usr/bin/perl
    Perl Version 5.10.1
    Kernel Version 2.6.32-954.3.5.lve1.4.72.el6.x86_64

    Hello @albie5047,

    you can edit below file

    wp-admin/setup-config.php
    define('WP_CONTENT_DIR', ABSPATH . 'wp-content');

    Patch defines WP_CONTENT_DIR at the start of setup-config.php along with the others. That should fix it.

    Only problem with that, Is that to install, it means *must* use mysql/default database.

    if above solution not working then please contact server team or install mysql.

    Thanks

    Thread Starter albie5047

    (@albie5047)

    Hi @anant101289

    The the code did not work. I will contact the server team and ask them to install it.

    Thanks for your help.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘PHP 7.3 errors’ is closed to new replies.