• 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?

Viewing 8 replies - 1 through 8 (of 8 total)
  • Thread Starter rebich01

    (@rebich01)

    Oh, and I’m running version 5.3.6 of php.

    Thanks in advance!

    Moderator t-p

    (@t-p)

    – Fatal error in the output generally indicates either your theme doesn’t like your version of WordPress, you have a plugin that doesn’t like your version of WordPress, or you have an incomplete install/upgrade.

    therefore, you may try:

    -deactivating ALL plugins temporarily to narrow down and possibly fix the problem. If the problem goes away, activate them individually (one-by-one) to find the problematic plugin.

    If you don’t have access to your admin area, try deactivating them manually via FTP or phpMyAdmin.

    -switching to the default theme (that came with your version of WP) for a moment by renaming your current theme’s folder in wp-content/themes. The idea is to force WordPress to fall back to the default theme to rule out any theme-specific issue.

    If you don’t have access to your admin area, then access your server via FTP or SFTP or whatever file management application your host provides.

    resetting the plugins folder by FTP or phpMyAdmin. Sometimes, an apparently inactive plugin can still cause problems (because the hooks remain unless plugins completely removed).

    -If the above steps do not resolve the issue, download WordPress again and replace your copies of everything EXCEPT the wp-config.php file and the /wp-content/ directory with fresh copies. This should replace your core files without changing your content and settings in wp-config.php file and the /wp-content/ directory.

    I am having the same problem installing on personal pc.

    Running:

    OS: vista
    xampp v.win32-1.7.4 with Apache and mySql running.
    wp v. 3.2.1

    When I type:

    https://localhost/mywebsite/wordpress/wp-admin/install.php

    I get the following error message:

    “Fatal error: Call to undefined function __() in C:\xampp\htdocs\northpolebookworm\wordpress\wp-admin\includes\file.php on line 11”

    file.php line # 11 reads:
    “‘index.php’ => __( ‘Main Index Template’ ),”

    xampp is in c:\xampp
    website is c:\xampp\htdocs\”mywebsite”(without quotes)
    wp-config.php is in c:\xampp\htdocs\mywebsite\
    wp is in c:\xampp\htdocs\mywebsite\htdocs
    file.php is in c:\xampp\htdocs\mywebsite\htdocs\wordpress\wp-admin\includes\

    Sorry,

    it should read:

    wp is in c:\xampp\htdocs\mywebsite\wordpress

    bump

    Resolved, evidently when modifying files and saving them under different names such as modifying wp-config-sample.php and then saving it as wp-config.php you have to run Windows Explorer as an Administrator.

    Thread Starter rebich01

    (@rebich01)

    Thank you t-p.

    I tried deactivating the plugins as per the instructions on the link you provided, but didn’t have any luck. I should note that the only plugins and themes that I have are the ones that came included with wordpress.

    I’ve just downloaded another copy of wordpress 3.2.1 and am seeing a few red flags. When I click on the wordpress.tar file, it expands and creates a wordpress directory, but for some reason the date_created field always says July 12, 2011. Further, when I try to cp the wordpress directory into /Library/WebServer/my_blog I get the following error for every file:

    cp: /Library/WebServer/Documents/my_blog/wordpress/<every_wordpress_file>: No such file or directory

    I’m not sure what this is about. I can copy other directories into my “Web Sharing” folder with no difficulty. I can copy the wordpress directory to where I want it, and the files DO appear there, but I have to run the command as root. This seems to indicate some kind of weird permissions issue, but I’m really grasping at straws here.

    I’ll keep on trucking, but does this new info help at all?

    on line 19 error i am not access my account please help me

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘install fails with fatal error undefined function __()’ is closed to new replies.