Support » Installing WordPress » Blank page when trying to open any .php page (index.php, install.php etc.)

  • Ardit_solutions

    (@ardit_solutions)


    Hello!
    I have problem – I’ve downloaded, unziped and put the all needed files on server. Created mysql DB and user, changed wp-config.php as needed.

    When I’m trying to run http://wypage/wp-admin/install.php, opens blank page (no possibility for installing), also I can not open index.php, when want to run page after installing/or migrating!

    What I have:
    Novell SUSE SLES 10.1 64bit
    Apache 2
    PHP5
    MySQL
    ispconfig for webhosting cpanel
    Wordpress (latest one)

    Webserver installed as described in http://www.howtoforge.com/perfect_setup_suse_10.1

    Previous I had no ispconfig on my webserver – only standard Apache configuration (with minimal customizing) and the webpage based on wordpress works +/- fine (at least I could open php pages).

    Now I installed ispcongif (it took a very long time and many reinstallations/reconfigurations because ispconfig did not want to run on my sever ;-(

    Could you, please, help me to get my homepage running again without problems?

    P.S. test.php (as wel as test_mysql.php) page opens normally, so – there is no problem for that virtual host for accessing php scripts!

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

    (@ardit_solutions)

    Here is the webpage error.log source:
    [Tue Apr 08 22:14:16 2008] [error] [client XX.XXX.XXX.XX] PHP Fatal error: Call to undefined function wp() in /wwwroot/web16/web/wp-blog-header.php on line 18

    kmessinger

    (@kmessinger)

    A call to an undefined function means not all of the files are there. You must have missed some doing the upgrade.

    Thread Starter Ardit_solutions

    (@ardit_solutions)

    ALL files ar there (migrated)! As well I test installing the new ” empty” wordpress installed from wordpress.org. The same problem!

    There is other problem, but I do not know – what!

    Here is /etc/apache2/vhosts/Vhosts_ispconfig.config:
    ######################################
    # Vhost: komunalserviss.lv:80
    ######################################
    #
    #
    <VirtualHost XX.XX.XX.XX:80>
    #SuexecUserGroup XX XXX
    ServerName komunalserviss.lv:80
    ServerAdmin XXX@XXX.lv
    ServerAlias http://www.komunalserviss.lv
    DocumentRoot /wwwroot/web16/web
    DirectoryIndex index.html index.htm index.php index.php5 index.php4 index.php3 index.shtml index.cgi index.pl index.jsp Default.htm default.htm
    Alias /cgi-bin/ /wwwroot/web16/cgi-bin/
    AddHandler cgi-script .cgi AddHandler cgi-script.pl
    ErrorLog /wwwroot/web16/log/error.log
    AddType application/x-httpd-php .php .php3 .php4 .php5
    php_admin_flag safe_mode Off
    Alias /error/ “/wwwroot/web16/web/error/”
    ErrorDocument 400 /error/invalidSyntax.html
    ErrorDocument 401 /error/authorizationRequired.html
    ErrorDocument 403 /error/forbidden.html
    ErrorDocument 404 /error/fileNotFound.html
    ErrorDocument 405 /error/methodNotAllowed.html
    ErrorDocument 500 /error/internalServerError.html
    ErrorDocument 503 /error/overloaded.html
    AliasMatch ^/~([^/]+)(/(.*))? /wwwroot/web16/user/$1/web/$3
    AliasMatch ^/users/([^/]+)(/(.*))? /wwwroot/web16/user/$1/web/$3
    </VirtualHost>

    Thread Starter Ardit_solutions

    (@ardit_solutions)

    Here is my /wp-blog-header.php:

    <?php

    if (! isset($wp_did_header)):
    if ( !file_exists( dirname(__FILE__) . ‘/wp-config.php’) ) {
    if (strpos($_SERVER[‘PHP_SELF’], ‘wp-admin’) !== false) $path = ”;
    else $path = ‘wp-admin/’;

    require_once( dirname(__FILE__) . ‘/wp-includes/classes.php’);
    require_once( dirname(__FILE__) . ‘/wp-includes/functions.php’);
    require_once( dirname(__FILE__) . ‘/wp-includes/plugin.php’);
    wp_die(“There doesn’t seem to be a wp-config.php file. I need this before we can get started. Need more help? We got it. You can create a wp-config.php file through a web interface, but this doesn’t work for all server setups. The safest way is to manually create the file.”, “WordPress › Error”);
    }

    $wp_did_header = true;

    require_once( dirname(__FILE__) . ‘/wp-config.php’);

    wp();
    gzip_compression();

    require_once(ABSPATH . WPINC . ‘/template-loader.php’);

    endif;

    ?>

    What else I can say – if i comment out wp(); like this #wp();, then trying to open web page shows error that now is ‘PHP Fatal error: Call to undefined function gzip_compression() in”…

    Thread Starter Ardit_solutions

    (@ardit_solutions)

    BUT – i have these 2 functions in /pathtomywebhomedorectory/wp-includes/functions.php

    function gzip_compression() {
    if ( !get_option( ‘gzipcompression’ ) ) {
    return false;
    }

    if ( ( ini_get( ‘zlib.output_compression’ ) == ‘On’ || ini_get( ‘zlib.output_compression_level’ ) > 0 ) || ini_get( ‘output_handler’ ) == ‘ob_gzhandler’ ) {
    return false;
    }

    if ( extension_loaded( ‘zlib’ ) ) {
    ob_start( ‘ob_gzhandler’ );
    }
    }

    and

    function wp($query_vars = ”) {
    global $wp, $wp_query, $wp_the_query;

    $wp->main($query_vars);

    if( !isset($wp_the_query) )
    $wp_the_query = $wp_query;
    }

    Any suggestions?

    kmessinger

    (@kmessinger)

    First, this is not a proper URL

    Second, you should never have to mess with WP core files. Your blog header looks correct and should be the original you moved to your server.

    Third, I know nothing about servers – thank goodness!

    I hope someone else can pick this up and give you some additional suggestions.

    Thread Starter Ardit_solutions

    (@ardit_solutions)

    Nobody can give any suggestions?;-(((

    Thread Starter Ardit_solutions

    (@ardit_solutions)

    Reinstalled LAMP, ipsconfig.

    But the same problem!

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘Blank page when trying to open any .php page (index.php, install.php etc.)’ is closed to new replies.