install fails with fatal error undefined function __()
-
Hello,
I’m trying to get WordPress installed and running locally on my mac (os 10.7 lion) and playing nice with mysql (version 14.14 distribution 5.5.14).
I set up a mysql database and a user with appropriate permissions. I’ve created my wp-config.php file with the corresponding information, and i’ve placed the wordpress directory in /Library/WebServer/Documents/my_blog
When I navigate to localhost/my_blog/wordpress/wp-admin/install.php in my browser, I am met with the following error:
Fatal error: Call to undefined function __() in /Library/WebServer/Documents/my_blog/wordpress/wp-admin/includes/file.php on line 11
I’ve gone to the file, and this is the code in question:
/** The descriptions for theme files. */ $wp_file_descriptions = array( //10 'index.php' => __( 'Main Index Template' ), //11 'style.css' => __( 'Stylesheet' ), //12 'editor-style.css' => __( 'Visual Editor Stylesheet' ), //13 'editor-style-rtl.css' => __( 'Visual Editor RTL Stylesheet' ) //14 );
There’s actually a lot more being defined in that method, but it doesn’t matter because it’s breaking at the top! There’s something about the __(‘Name Of Thing’) syntax that my php interpreter seems to not be liking. There seem to be variations on this error throughout the net and the solutions all seem to be a re-upload or re-download of the wp- files. I’ve redownloaded and reinstalled wordpress twice now and have gotten the same errors both times.
Does anybody have any advice?
- The topic ‘install fails with fatal error undefined function __()’ is closed to new replies.