• Hola a todos estoy aprendiendo ingles pero hablo espa?ol les escribiré en los 2 idiomas

    Estoy utilizando la herramienta de wordpress 5.2.2 de salud del sitio

    La cual me pide que actualice mi version de php a 7.3 yo tengo actualmente 7.2

    pero cuando realizo la actualización a php 7.3 me arroja un error

    el error se encuentra en el archivo wp-includes/wp-db.php en esta linea de codigo

    else {
    $this->dbh = @mysql_connect( $this->dbhost, $this->dbuser, $this->dbpassword, $new_link, $client_flags );
    }
    tengo que modificar algo en wp-includes/wp-db.php para poder actualizar a la version de php 7.3

    les agradezco a todos su apoyo y colaboración

    in english

    Hello everyone I am learning English but I speak Spanish I will write to you in both languages

    I am using the site health wordpress 5.2.2 tool

    Which asks me to update my version of php to 7.3 I currently have 7.2

    but when I do the update to php 7.3 it throws me an error

    the error is found in the file wp-includes / wp-db.php in this line of code

    else {
    $this->dbh = @mysql_connect( $this->dbhost, $this->dbuser, $this->dbpassword, $new_link, $client_flags );
    }
    I have to modify something in wp-includes / wp-db.php to be able to upgrade to the version of php 7.3

    I thank you all for your support and collaboration

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

Viewing 3 replies - 1 through 3 (of 3 total)
  • Moderator bcworkz

    (@bcworkz)

    There should never be any reason for mysql_connect() (no ‘i’ after ‘sql’) be called in any recent PHP version. It remains in WP code only for backwards compatibility. You could patch your version of the file, but it will revert during the next update. What you really need to do is find out why that code is even called. Normally it would only be called when function mysqli_connect() (with an ‘i’) is not defined or constant WP_USE_EXT_MYSQL is defined as true. Neither should be the case in any up to date installation.

    Thread Starter johangonzalez

    (@johangonzalez)

    Gracias por tu pronta respuesta bcworks

    encontre estas lineas de codigo dentro del archivo wp-db.php en la linea 597

    In English

    Thank you for your prompt response bcworks

    I found these lines of code inside the wp-db.php file on line 597

    [Moderator note; large amount of code redacted]

    • This reply was modified 5 years, 6 months ago by bcworkz.
    Moderator bcworkz

    (@bcworkz)

    Thank you for trying to be helpful by posting the relevant code. It is not necessary though since the code is from a standard WP file which is readily available to anyone who cares to look.

    What is the error message you got? What was wrong with line 597?

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘actualización de wordpress 5.2.2 y php 7.3’ is closed to new replies.