Menu

blank page after install

Help
4mla1fn
2006-08-10
2012-10-11
  • 4mla1fn

    4mla1fn - 2006-08-10

    i see other's have the same problem but no solutions posted, so i'll try again. i have php 5.0.4 and mysql 4.1.11 working. i installed but only get a blank page on index.php. theoretically, this should have worked, but i then went configured mysql using doc/INSTALL.mysql and modified phpwiki's config.ini with this:

    DATABASE_TYPE = SQL
    DATABASE_DSN = "mysql://wikiuser:<password>@localhost/phpwiki"
    DATABASE_DIRECTORY = /tmp
    DEFAULT_DUMP_DIR = /tmp
    HTML_DUMP_DIR = /tmp
    ; TEMP_DIR = /tmp

    still just a blank page. what am i missing? many thanks.

     
    • Reini Urban

      Reini Urban - 2006-08-10

      Blank index.php page has nothing to do with a wrong database setup.
      turn on DEBUG=1 in config.ini and see the errors.

       
      • 4mla1fn

        4mla1fn - 2006-08-10

        thanks for the response. i set it to '1' and still get a blank page.

        i added some echo statements to index.php as follows:


        require_once (dirname(FILE).'/lib/prepend.php');
        rcs_id('$Id: index.php,v 1.147 2005/01/13 07:28:36 rurban Exp $');

        echo "in here 0</br>";

        require_once(dirname(FILE).'/lib/IniConfig.php');
        echo "in here 1</br>";
        IniConfig(dirname(FILE)."/config/config.ini");
        echo "in here 2</br>";


        i don't get to "in here 2". guess i have to dig around IniConfig.

         
    • umfan866

      umfan866 - 2006-08-18

      I am having the same issue even when using a text file (non-DB) setup - so I concur it is not a DB issue.

      Do this - comment the line

      if (@is_dir(SCRIPT_FILENAME) or
      realpath(SCRIPT_FILENAME) == realpath(FILE
      ))

      in index.php - and see if that helps. For me, I at least then get the virgin wiki page, although links don't work (still troubleshooting).

       
    • Walter Rafelsberger

      very same problem here.
      running:
      - Mac OSX 10.4.7
      - PHP Version 5.1.4 www.entropy.ch Release 5 (Universal Binary)
      - Apache/2.2.2 (Unix) mod_ssl/2.2.2 OpenSSL/0.9.7i DAV/2 PHP/5.1.4
      - phpwiki-1.3.12.p3 + mysql

      as reini mentioned it has nothing to do with mysql. if i comment the mentioned line in index.php the wiki loads, but links don't work as with umfan866's wiki.

       
      • Walter Rafelsberger

        after taking a look at the code and some research I found this: http://at.php.net/manual/en/ini.core.php#ini.register-long-arrays

        Seems since php5 there is a new directive called register_long_arrays which is off by default and disables $HTTP_*_VARS. I think that's why phpwiki doesn't find the pagename variable.

        php.net suggests using superglobal arrays like $_GET and $_POST.

         
    • Perry Smith

      Perry Smith - 2006-09-05

      I got mine going (I think).

      Looking at the Makefile, it echos out that you must set ADMIN_PASSWD. I set ADMIN_USER and ADMIN_PASSWD and database type to file and I think I'm o.k. Defintely past the initial problem.

      Note to maintainers: the INSTALL files do not mention this. Plus, it seems like it would be nice to get a message "hey!!! set the password" and then exit.

       
    • Perry Smith

      Perry Smith - 2006-09-05

      I have the same trouble but I have register_long_arrays set to true already (and that is suppose to be the default).

      I'm using php 5.1.2, Mac OS X 10.4.7

       

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.