Home  >  Q&A  >  body text

PHP code stops interpreting from ">" character

I just migrated all my WordPress files to another server (share). I imported the database and changed the old domain name.

When I enter the wp-login page, it shows the PHP code instead of the login form interface:

` element. * Default 'Log In'. 
* @param string $message Optional. Message to display in header. Default empty. 
* @param WP_Error $wp_error Optional. The error to pass. Default is a WP_Error instance. 
*/ function login_header( $title = 'Log In', $message = '', $wp_error = null ) { 
global $error, $interim_login, $action; // Don't index any of these forms. add_filter( 'wp_robots', 'wp_robots_sensitive_page' )
...

If I look at the php code, I realize that PHP no longer interprets from that character. So I checked the PHP version and it was 7.3.

https://i.stack.imgur.com/HtwZM.png

Do you know why it doesn't show the login form? I ran it locally (using the same PHP version) without any problems.

Thanks

P粉799885311P粉799885311175 days ago348

reply all(1)I'll reply

  • P粉850680329

    P粉8506803292024-04-01 00:53:13

    Okay, I found the error. I commented these lines in .htaccess:

    #
            #  AddHandler application/x-httpd-ea-php73 .php .php7 .phtml
        #

    But I don’t know what their purpose is...

    reply
    0
  • Cancelreply