Wordpress php fatal error: calling undefined function language_attributes ()?

How to fix the following error.

Fatal error: call undefined function language_attributes ()

+5
source share
3 answers

It looks like your theme either did not load correctly or is incompatible with the version of Wordpress that you are using.

+1
source

This can happen if you do not have a wp-config.php file. Rename the wp-config-sample.php file to wp-config.php, edit the db options and try again.

+1
source

What version of WP are you using? From my research, I found that the language_attributes () function is a new WP.2 function. If you are using a version of Wordpress older than 2.1, you can either remove the function call from the header.php file or upgrade the installation of Wordpress.

+1
source

All Articles