• Hi, I have done manual installations of lots of WordPress websites.
    The new one I’m trying to instal today is giving pain.

    I downloaded a fresh copy of WP 3.5.1, unzipped, configured wp-config.php, used Filezilla to securely upload the contents of the WordPress folder to public_html, went over to browser and put in the link to install wp admin, and it crashes out with the following error:

    (my security keys followed by…..) /**#@-*//** * WordPress Database Table prefix. * * You can have multiple installations in one database if you give each a unique * prefix. Only numbers, letters, and underscores please! */$table_prefix = ‘wp_’;/** * WordPress Localized Language, defaults to English. * * Change this to localize WordPress. A corresponding MO file for the chosen * language must be installed to wp-content/languages. For example, install * de_DE.mo to wp-content/languages and set WPLANG to ‘de_DE’ to enable German * language support. */define(‘WPLANG’, ”);/** * For developers: WordPress debugging mode. * * Change this to true to enable the display of notices during development. * It is strongly recommended that plugin and theme developers use WP_DEBUG * in their development environments. */define(‘WP_DEBUG’, false);/* That’s all, stop editing! Happy blogging. *//** Absolute path to the WordPress directory. */if ( !defined(‘ABSPATH’) ) define(‘ABSPATH’, dirname(__FILE__) . ‘/’);/** Sets up WordPress vars and included files. */require_once(ABSPATH . ‘wp-settings.php’);
    Fatal error: Call to undefined function load_textdomain() in /home2/bscfl/public_html/wp-admin/includes/admin.php on line 13

    I’ve tried another new download of WP, another new upload of WP into public_html, and I still keep getting the same error.
    VERY frustrating, as it’s urgent I build this client’s website today…..
    Can anyone help please?

Viewing 14 replies - 1 through 14 (of 14 total)
  • It looks like a Unmatched Quotes problem in the definition of the Security Keys in wp-config.php. They can be tough to find with the kind of jibberish that is normally found in Security Keys. You may want to use a syntax aware editor like Notepad++ on wp-config.php to find the exact point of error.

    Thread Starter dianabyron

    (@diannetrussell)

    Hi Jonradio,
    I’ve just looked through the security keys (I have great symbol recognition eyeballs!), and every starting quote is matched by its ending quote, no duplicates or orphans. Nor are there any stray quotes within the character strings of the security keys. Is that what you were referring to?
    Does Notepad++ run on Macs?

    Yes, I was looking for stray quotes inside the security keys. I would also suggest looking at the comments just before the first security key definition, for improper open or close comment structure.

    Sorry, but Notepad++ only runs in Windows. I’m not sure what Mac editors are php syntax aware.

    Thread Starter dianabyron

    (@diannetrussell)

    Oh, I should have added before – this is the line 13 from wp-admin/includes/admin.php:

    load_textdomain( ‘default’, WP_LANG_DIR . ‘/admin-‘ . get_locale() . ‘.mo’ );

    I somehow missed this long and winding thread earlier:
    http://wordpress.org/support/topic/parse-error-when-trying-to-run-installphp?replies=21

    Please check that you have the correct versions of php and MySQL:

    To run WordPress your host just needs a couple of things:

    PHP version 5.2.4 or greater
    MySQL version 5.0 or greater

    I want to eliminate that possibility before we dig into this any further.

    Thread Starter dianabyron

    (@diannetrussell)

    My host has those. Never had any problems with HostGator. Have installed websites same way on them this year just a couple months ago.

    OK, I found a couple more threads that had this problem and were solved by different things.

    The first was caused by the person using an old copy of wp-config.php, from an older version of WordPress, on a new install of the new version of WordPress. Again, I want to check if you are doing this.

    The second is not as clear, but there is a 50/50 chance it was fixed by deleting .htaccess

    I just checked HostGator’s web site and it says (on their Compare Hosting Plans page when you click the ? beside PHP 5) that they only have php Version 5.2.0 running, nothing newer.

    If you know how to use phpinfo, you can check yourself. If not, you should open a Support question at HostGator to confirm the version of php on the account you are using.

    I found what appears to be current info on HostGator php versions:
    http://support.hostgator.com/articles/hosting-guide/hardware-software/what-version-of-php-are-you-using

    Note especially “Shared Hosting Accounts provisioned before May 1, 2013” are 5.2.

    Thread Starter dianabyron

    (@diannetrussell)

    Hi, thanks, I just sent them an email with what you said. I’m a bit puzzled though: couple months ago I built 2 wordpress websites on HostGator using WP 3.5.1. If their version of pHp was at fault, those websites should not have worked either?

    Thread Starter dianabyron

    (@diannetrussell)

    My wp-config.php is the brand new one from today’s download of 3.5.1

    Thread Starter dianabyron

    (@diannetrussell)

    Version info in my cpanel right now:
    pHp: 3.5.5
    MySQL: 5.5.23

    Thread Starter dianabyron

    (@diannetrussell)

    Hi Jonradio,

    While I was on hold with the HostGator tech support, I got a new copy of wp-sample.config.php, renamed it, entered database details and got new security keys. Saved, uploaded, and bingo! Working. I have the wp admin setup page now.

    I do appreciate your sticking with me on this one and helping out!
    Diana

    So glad that you were able to get it resolved!

    The reason I was so concerned about php versions is that many shared hosting providers have different versions of php on different servers, and you have no way of knowing which server a new account will be assigned to.

Viewing 14 replies - 1 through 14 (of 14 total)
  • The topic ‘Fatal error: Call to undefined function load_textdomain()’ is closed to new replies.