Error after Wordpress update

Asked

Viewed 75 times

0

Yesterday I did Update to all Plugins and Wordpress core (4.0) of my site.

I even did some Posts, so everything was ok.

Today, give me this mistake:

Fatal error: Call to Undefined Function get_category_id() in /home/vertical/public_html/wp/wp-content/themes/Videotheme/Videothemeres/index.php on line 6

I have tried running backup through Updraftplus Backup, but it is failing!

  • Welcome to Sopt. You didn’t have to create a new question, just edit the other one and do the translation. No, the program errors don’t need to be translated, just put them as a quote, just like you did. Understand that translation is just to help you get more chances of answers to your problem.

  • Checked this function there in the file index.php?

  • Probably the error is happening in the get_category_id function inside your functions.php .. copy this function in the post to verify the error!

1 answer

1

I already had this problem solved a few months ago, but I leave here the answer to the case that this problem arises to someone else.

It seems that the function names changed in this update, and something went wrong in the update that caused them not to change.

In this case:

get_category_id() -> get_cat_ID()

I also leave another function in which this happened to me:

ds_get_excerpt() -> get_the_excerpt()

Browser other questions tagged

You are not signed in. Login or sign up in order to post.