• I’m having some problems installing wordpress 2.3.2. I’m running PHP 5.2.5, Mysql 5.0.37

    After I setup my wp-config.php I get a blank page. If I show tables on the mysql database I’ve created, there’s nothing in there, but I’ve checked at least 20 times that my login credentials work properly from that host.

    I’ve set error reporting to E_ALL and I only get these two errors from my php log:

    [31-Jan-2008 15:27:04] PHP Notice: Undefined offset: 0 in /content/apache2/myblog.com/htdocs/wordpress/wp-includes/wp-db.php on line 286
    [31-Jan-2008 15:17:52] WordPress database error Table ‘enterprise2blogwp.wp_options’ doesn’t exist for query SELECT option_value FROM wp_options WHERE option_name = ‘siteurl’

    Here’s my wp-config.php

    <?php
    // ** MySQL settings ** //
    define('DB_NAME', 'myblog');    // The name of the database
    define('DB_USER', 'wordpress');     // Your MySQL username
    define('DB_PASSWORD', 'mypassword'); // ...and password
    define('DB_HOST', 'dbprod01');    // 99% chance you won't need to change this value
    define('DB_CHARSET', 'utf8');
    define('DB_COLLATE', '');
    
    // You can have multiple installations in one database if you give each a unique prefix
    $table_prefix  = 'wp_';   // Only numbers, letters, and underscores please!
    
    // Change this to localize WordPress.  A corresponding MO file for the
    // chosen language must be installed to wp-content/languages.
    // For example, install de.mo to wp-content/languages and set WPLANG to 'de'
    // to enable German language support.
    define ('WPLANG', '');
    
    /* That's all, stop editing! Happy blogging. */
    
    define('ABSPATH', dirname(__FILE__).'/');
    require_once(ABSPATH.'wp-settings.php');
Viewing 3 replies - 16 through 18 (of 18 total)
  • I had the same problem with WordPress 2.5, php 4.*, mysql 4.*. When I tried to run /wp-admin/install.php I was getting a blank page.
    I had an older version of WordPress installed before but I deleted all the old files before uploading a new version.
    I had to do two things to fix the installation problem.
    1. I deleted the old .htacess file. It’s not visible in my usual ftp client. I had to invoke ftp from a command line and ran “delete .htaccess”. Be careful if there are some other bits on your site that may already use this file, make sure you know what you are doing.
    2. Check the WordPress files you uploaded so there are no missing files and the directory structure is correct. Some weird stuff happened to my first upload. I re-uploaded all files again.
    It fixed my problem.

    I believe its because the function is crashing on mysql_fetch_field the faulty code is :

    wp-includes/wp-db.php

    between lines 254 to 257 :

    while ($i < @mysql_num_fields($this->result)) {
    $this->col_info[$i] = mysql_fetch_field($this->result);
    $i++;
    }

    if you comment it you would have sorta working. I guess its only a problem between php5.2.5 and mysql4.x and upgrading should be the problem. I guess this bug report on php.net is the same thing as well :

    https://bugs.php.net/bug.php?id=31288

    I had the same blank page problem with 2.6.5. I figured out that setting my wp-config.php chmod to 600 from my system default of 644 to better secure the db info causes blank pages everywhere (I’m running Solaris 10). So I tried 640 and the change immediately fixed my problem: all pages re-appeared. So I created a new group that only contains my wordpress system user and I’m ok with that. Hope this helps.

Viewing 3 replies - 16 through 18 (of 18 total)
  • The topic ‘Blank page on fresh wordpress installation, mysql 5 php 5.2.5’ is closed to new replies.