Menu

Can't install 4.2.3 either 4.2.2

Help
swieka
2010-01-07
2013-05-30
  • swieka

    swieka - 2010-01-07

    Hi.

    I'm getting strange error. Instead of install page (both 4.2.3 and 4.2.2) pieces of code are displayed such as:

    read())) { if (($entry!=".") && ($entry!="..") && ($entry!="CVS") && (preg_match("/\.php$/", $entry)>0)) { require_once PGV_ROOT.'blocks/'.$entry; } } $d->close(); /** * End loading list of Blocks in blocks directory * * Load List of Blocks in modules/XX/blocks directories */ if (file_exists(PGV_ROOT.'modules')) { $dir=dir(PGV_ROOT.'modules'); while (false !== ($entry = $dir->read())) { if (!strstr($entry,".") && ($entry!="..") && ($entry!="CVS")&& !strstr($entry, "svn")) { $path = PGV_ROOT.'modules/' . $entry.'/blocks'; if (is_readable($path)) { $d=dir($path); while (false !== ($entry = $d->read())) { if (($entry!=".") && ($entry!="..") && ($entry!="CVS")&& !strstr($entry, "svn")&&(preg_match("/\.php$/", $entry)>0)) { $p=$path.'/'.$entry; require_once $p; } } } } } } /** * End loading list of Blocks in modules/XX/blocks directories */ $time = client_time(); if (!isset($action))
    

    Any ideas?

     
  • Anonymous

    Anonymous - 2010-01-07

    Could be corrupt files, wrong permissions, or almost anything.

    Can you tell is a lot more please.

    Is this a new install or upgrade?

    What exactly did you do before getting to this point?

    What is your set up - server, database, ver of PHP, etc etc.

    Is this onto a web server, or desktop environment?

     
  • swieka

    swieka - 2010-01-07

    Thx for response.

    It is a fresh install. I used an older version on other server and I'm changing sever and PGV version now.
    I've downloaded zip file, unziped it and upload to webhosting server. PHP details: http://proste.pl/phpinfo5.html

     
  • Greg Roach

    Greg Roach - 2010-01-07

    The character before this code is a ">" (file=index.php).

    This suggests that this file is corrupt, and that this is being recognised as the end of an html tag.

    If not one of the application files, then a configuration/data file.

     
  • swieka

    swieka - 2010-01-07

    You are right. The code just before displayed text is:

    /**
     * Load List of Blocks in blocks directory (unchanged)
     */
    $PGV_BLOCKS = array();
    $d = dir("blocks");
    while (false !== ($entry = $d->
    

    ">" is the first occurrence and is closing "<?php" code, but why? How to resolve it, that server will interprete this as method call?

     
  • Greg Roach

    Greg Roach - 2010-01-07

    Is the site public?  What is the URL?

     
  • swieka

    swieka - 2010-01-07

    Sorry, but I'd rather keep URL private. I know that it is more difficult to resolve the problem this way, but it must be like this now.

     
  • Greg Roach

    Greg Roach - 2010-01-07

    Then look through the source of what you get.  There will no doubt be clues there.

     
  • Anonymous

    Anonymous - 2010-01-08

    Greg's a great expert in this area, why not email him your url privately? You can contact him via his profile here.

     
  • Anonymous

    Anonymous - 2010-01-08

    Sorry - didn't mean to confuse - by 'Greg' I meant fisharebest

     
  • Greg Roach

    Greg Roach - 2010-01-08

    If your site is on a public server, then it can be accessed by everyone on the planet with an internet connection and the ability to use a search engine.

    I don't understand what you hope to achieve by keeping the URL secret from the one or two people who might be able to help you.

    It looks like your server isn't configured to pass .php files to the PHP interpreter, and they are being sent as plain text.

     
  • swieka

    swieka - 2010-01-08

    Problem resolved. There was:

    <Files "*.php">
    ForceType 'text/html; charset=iso-8859-2'
    </Files>
    

    in .htacces file few directories up.

    Thx for help.

     

Log in to post a comment.