• Resolved eric-1910

    (@eric-1910)


    Hi

    I tried to install the wordpress on the server and met with the standard white screen of death. I do not have problems with this in the past for old versions.

    The host said that the error is :

    [Tue Jun 17 12:34:44 2014] [warn] mod_fcgid: stderr: PHP Fatal error: Call to undefined function wp_debug_mode() in /home/xxx-xxx/public_html/wp-settings.php on line 61

    I did a manual upload of the wp-config.php and it gives me the above error. I tried for 2 days without luck.

    The server is using php 5.2.17 and the mysql server is 5.0. Any help and clues will be appreciated.

    Eric

Viewing 15 replies - 1 through 15 (of 15 total)
  • This may be an obvious question but are you sure you have all the required WordPress files in your installation?

    Taht would normally mean that there’s been a file (or mre) missed when you’ve installed WordPress on your sever. To get around this you should re-upload every file from a newly-downloaded version of WordPress to ensure that everything is there.

    Thread Starter eric-1910

    (@eric-1910)

    No luck, reload everything and it still cannot load the login page . I have tried and reload more than six times. I am stall at the white screen of the installation – database not created and hang at http://www.xx.com/wp-admin/install.php .

    Appreciate any help .

    Go into your FTP program, or your file manager in your hosting contorl panel and look for this file:

    /wp-includes/load.php

    If it’s not there, then that’s your problem, and you haven’t uploaded every file.

    If it is there, download it to some other location on your hard drive and check to see if you can find this in it:

    function wp_debug_mode() {

    Hint: it will be at line 254.

    That’s where the function is being defined, so unless that file is there, and the function is actually set up in the file, you’ll get that error.

    Thread Starter eric-1910

    (@eric-1910)

    Hi

    Thanks, ftp to the server, the file is there inside the wp-includes – load.php.

    At line 254, I got the file info as below (download back to the PC via ftp) :

    [ Moderator note: code fixed. Please wrap code in the backtick character or use the code button. ]

    function wp_debug_mode() {
    	if ( WP_DEBUG ) {
    		error_reporting( E_ALL );
    
    		if ( WP_DEBUG_DISPLAY )
    			ini_set( 'display_errors', 1 );
    		elseif ( null !== WP_DEBUG_DISPLAY )
    			ini_set( 'display_errors', 0 );
    
    		if ( WP_DEBUG_LOG ) {
    			ini_set( 'log_errors', 1 );
    			ini_set( 'error_log', WP_CONTENT_DIR . '/debug.log' );
    		}
    	} else {
    		error_reporting( E_CORE_ERROR | E_CORE_WARNING | E_COMPILE_ERROR | E_ERROR | E_WARNING | E_PARSE | E_USER_ERROR | E_USER_WARNING | E_RECOVERABLE_ERROR );
    	}
    	if ( defined( 'XMLRPC_REQUEST' ) )
    		ini_set( 'display_errors', 0 );
    }

    OK, now it’s time for you to tart talking to your hosting company. The file is where it’s meant to be, and it’s being included, otherwise you’d get errors about the file not being found. There’s no reason from what you’ve shown so far for why that file is not being included in a way that allows it’s contents to be used.

    Thread Starter eric-1910

    (@eric-1910)

    Thanks for the help Catacaustic , I have asked them but other people which are using old wordpress are fine and they told me now the error is :

    [Tue Jun 17 13:40:07 2014] [warn] mod_fcgid: stderr: PHP Parse error: syntax error, unexpected T_STRING in /home/xx.com/public_html/wp-includes/class-wp-theme.php on line 258

    Would appreciate if anyone can help :).

    Thread Starter eric-1910

    (@eric-1910)

    [ Moderator note: code fixed. Please wrap code in the backtick character or use the code button. ]

    if ( '.' != $parent_dir && file_exists( $this->theme_root . '/' . $parent_dir . '/' . $this->tempe type of data.
    	 *
    	 * @access private
    	 * @since 3.4.0
    	 *
    	 * @param string $key Type of data to store (theme, screenshot, headers, page_templates)
    	 * @param string $data Data to store
    	 * @return bool Return value from wp_cache_add()
    	 */
    	private function cache_add( $key, $data ) {
    		return wp_cache_add( $key . '-' . $this->cache_hash, $data, 'themes', self::$cache_expiration );
    	}

    Thread Starter eric-1910

    (@eric-1910)

    A tough job now , it used to be easily and problemless 🙂

    It’s not normally like this, as you know. Something is not owrking properly with yor installation. As for what that is… I don’t know.

    Just to be sure, you have switched to a default theme like TwentyForteen, and disabled all plugins, haven’t you? No matter what, that’s always the starting point for issues like this.

    Also, when you post code, you should post it between backticks, otherwise it gets all chewed up (as you can see above) through the forums parser and it becomes unreadable.

    Thread Starter eric-1910

    (@eric-1910)

    Ok points noted. Thanks for your help.

    Thread Starter eric-1910

    (@eric-1910)

    Hi Guys

    I managed to setup the wordpress after I use windows 7 to upload the files to the server and the installation run straight ahead. I used Windows 8.1 to upload this previous failed copies.

    I wish to thanks those who has responded to me especially the warmth Catacaustic and also Phillip.

    Thanks for all the help.

    Eric

    I haven’t used Windows 8 before, so I wouldn’t have thought that woudl be a problem, but it looks like it obviously is! I have had issues myself with files if they are on a remote file share, but that’s another story…

    One thing to think about is that if you’re going to do things like this even semi-regularly you shuld look at installing a proper FTP program. The best one around now is FileZilla and that will give you better results then anything that Windows is going to have built in.

    Thread Starter eric-1910

    (@eric-1910)

    Catacaustic

    I believe that certain programs are not running well in Windows 8.1, actually I used a number of ftp software like the coreftp etc. I thought something is wrong with the files and went back to old PC .

    I used 7zip to unzip it and it did not work well, your suggestions about the files make me have a second thoughts and I used old version of windows to try and it works.

    Have a good day ahead.

    Had same problem, was missing /wp-includes/load.php file

Viewing 15 replies - 1 through 15 (of 15 total)
  • The topic ‘Installation with white screen – 3.9.1’ is closed to new replies.