Menu

error in right column block

Help
ding
2004-04-13
2004-04-13
  • ding

    ding - 2004-04-13

    I removed all the modules from the right hand block off the welcome page.

    now I get an error on this page:
    Notice: Undefined offset: 0 in <my home dir>/phpGedView/index.php on line 168

    Parse error: parse error in <my home dir>/phpGedView/index.php(168) : eval()'d code on line 1

    Line 168 has the following:
    eval($ublocks["right"][0]."();");

    How do I readd the data ?  (where is it stored ?) I am in mysql mode.

     
    • ding

      ding - 2004-04-13

      the tables I have in my db are:

        pgv_families
        pgv_individuals
        pgv_other
        pgv_places
        pgv_sources

      are these all the tables I should have ?  I guess i was assuming i would have one for blocks etc

       
    • John Finlay

      John Finlay - 2004-04-13

      I just checked in a new verison of index.php that will give you a welcome or gedcom block if you remove all of the blocks from the right hand column.  You can get this version here:
      http://cvs.sourceforge.net/viewcvs.py/phpgedview/phpGedView/index.php?rev=1.135&view=auto

      There should be a pgv_blocks, pgv_users, pgv_favorites, and pgv_messages table.  This means that even though you have selected MySQL for the datastore, you still have authentication_index.php as your authentication module.  Edit your config.php file and change it to be authentication_mysql.php.  This should change automatically when you change the datastore from index to mysql.

      In index mode, you can reset the blocks by erasing the index/blocks.dat file.  In mysql you can reset the blocks by deleting the entries from the pgv_blocks table.

      --John

       
      • ding

        ding - 2004-04-13

        Muchos Gracias!

        Worked like a charm :D

         

Log in to post a comment.