Kể từ các phiên bản WordPress 5x 6x mới trở đi thì phần chỉnh sửa code trong Appearance => Theme Editor hay Plugin Editor đã không còn khả dụng. Khi bạn chỉnh sửa sẽ nhận được một cảnh báo là:
Scrape key check failed. Please try again
![Hướng dẫn sửa lỗi Scrape key check failed. Please try again 3 Scrape key check failed](https://dotrungquan.info/wp-content/uploads/2022/08/Scrape-key-check-failed-1024x504.png)
Với lỗi này bạn có thể xử lý như sau.
Bước 1: Đăng nhập vào Server Host lưu trữ mã nguồn.
Bạn hãy truy cập vào thư mục wp-admin và chỉnh sửa file file.php. Bạn có thể sử dụng FTP, command line hoặc File Manager để chỉnh sửa. Hãy sử dụng cách dể nhất đối với bạn.
Bước 2: Sửa file.php
- Đường dẫn file: my-domain/wp-admin/file.php
![Unable to communicate back with site to check for fatal errors, so the PHP change was reverted. You will need to upload your PHP file change by some other means, such as by using SFTP. 4 Screenshot 2020 11 03 at](https://dotrungquan.info/wp-content/uploads/2020/11/Screenshot-2020-11-03-at-21.59.36@2x.png)
Bạn sử dụng Ctrl +F để tìm kiểm cho nhanh, hãy tìm với từ khóa if ( $is_active && 'php' === $extension
sau đó xóa bỏ dòng này hoặc sử dụng #
để comment.
Và thêm vào đoạn code sau.
if ( $is_active && 'php' === $extension && false) {
![Unable to communicate back with site to check for fatal errors, so the PHP change was reverted. You will need to upload your PHP file change by some other means, such as by using SFTP. 5 Screenshot 2020 11 03 at](https://dotrungquan.info/wp-content/uploads/2020/11/Screenshot-2020-11-03-at-16.47.48@2x.png)
Khi chỉnh sửa xong mình save lại và thực hiện edit kiểm tra. Kết qua như mong đợi mọi thứ hoạt động ổn định.
![Unable to communicate back with site to check for fatal errors, so the PHP change was reverted. You will need to upload your PHP file change by some other means, such as by using SFTP. 6 Screenshot 2020 11 03 at](https://dotrungquan.info/wp-content/uploads/2020/11/Screenshot-2020-11-03-at-21.51.25@2x.png)
Chúc bạn thực hiện thành công.