Menu

Blank index Page

Help
2001-06-29
2001-07-02
  • Martin Bayer

    Martin Bayer - 2001-06-29

    I installed everything correctly, even under NT, the php execution of values.php provoked no visible error. All data in the databe seem to be there, only under seeting there are no entries (should there be?). When opening the index.php page i get a blank screen.
    Can u help?

    Magge

     
    • Jason Wies

      Jason Wies - 2001-06-29

      There must be data in the settings table for it to work.  When you access values.php using your browser, you should get a 'Document contained no data' error, which is an indicator that it worked.  Alternately, you can run 'php values.php', and that will do the same thing.

      I assume you've tried both of those, so I'm guessing the problem is with NT.  I develop on Unix only, and can't support Windows at all.

      If you get desparate, you can change line 20 in values.php to:

      echo "INSERT INTO settings SET category = '$category', subcategory = '$subcategory', subsubcategory = '$subsubcategory', name = '$name', description = '$description', original = '$original', info = '$info', shortcut = '$shortcut';" . "\n";

      This should output the SQL queries, which you can copy and paste into MySQL.

       
    • Martin Bayer

      Martin Bayer - 2001-07-02

      I did it the way you suggested but
      opening the index.php page I get the error message:
      Warning: Undefined index: info in main.inc on line 32

      I already looked for the values that should be in the "Info" column, tried to set it to a default value of NULL and marked it as index but this didnt help!

      I think the error only comes from the index column which was comletely empty after pastingb the SQL like e.g. this:
      INSERT INTO settings VALUES ("html", "page", "body", "color", "Body Color", "orange", NULL, "HTML_PAGE_BODY_COLOR");
      ...

      Thanks for your help in advance!

      Magge

       
      • Jason Wies

        Jason Wies - 2001-07-02

        I'm not sure why it didn't work.  I dumped an example settings table and put it up at http://phpwebhosting.sourceforge.net/settings.dump.  Download it and use it like this:

        mysql -uroot -p phpwebhosting < settings.dump

        It will DROP the current settings table and put in some defaults.  Then log in as admin and change them to your liking.

         

Log in to post a comment.