Answer the question
In order to leave comments, you need to log in
How to decrypt PHP code?
Hello everyone, there was a problem on the wordpress site, someone either hacked the site or somehow encrypted the file code category.php
, going to the page of any category of the site gives this
Warning: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead in /home/users/r/radvancor/domains/DOMAIN/wp-content/themes/id2/category.php on line 1
category.php
looks like this: Answer the question
In order to leave comments, you need to log in
You don't need to decrypt anything, just get rid of the virus you caught. This code usually encrypts spam, redirects, downloads of other viruses to your site, and other crap. Restore your file from backups, because some viruses replace entire files (your option), and some simply add smaller code to the beginning of the file.
Solution #3 is for you - https://www.ryadel.com/en/php-fix-warning-preg_rep...
Or roll back your PHP version to 5.4.
And if my answer ( and on protection ) has not helped you yet, then do not mark it as a solution yet, but just like it!
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question