Fixed: Import error when using HTTP Basic Authentication in Version 12.1

Hello everybody,

first I was a little bit sad, because to me it was not possible to import the demo content correctly. My problem: I use HTTP Basic Authentication.

Exactly for this problem the developers have insert fields for username and password,  but in version 12.1 prevents a small error the full import of the demo data.

The reason is a small error in the line 93 of the file import.php. To solve the problem, only one letter must be changed.

Theme Version: 12.1
functions/importer/import.php (Line: 93)

Not correct: „endode“
'Authorization' => 'Basic '. call_user_func( 'base'.'64_endode', $username.':'.$password )

Correctly: „encode“
'Authorization' => 'Basic '. call_user_func( 'base'.'64_encode', $username.':'.$password )

Now it works fine with me. - Have a nice day!

Michael

Comments

Sign In or Register to comment.