After upgrading from the 12/26/2009 dev build to 12/27/2009 or even the latest 01/02/2010 I am getting warnings and errors...
When I try to edit an already existing index, I get the following error shown with a built-in message warning in red at the top of the 'Edit Index' page:
user warning: Unknown column 'hide_childless_entities' in 'field list' query: SELECT lineage, entity_type, entity_count_only, hide_childless_entities FROM index_layer WHERE iid = 3 in /var/www/mySite/sites/all/modules/index/includes/index.classes.inc on line 44.
The 'Edit Index' page displays nevertheless, but the type of the item is changed from 'terms' to 'content'. So, I switch back the type to 'terms' and try saving. This time I got a blank page with the following error:
Fatal error: Call to undefined function index_form_add_populate_index() in /var/www/mySite/sites/all/modules/index/includes/index.admin.inc on line 223
When I tried to visit the 'Edit Index' page again, the following errors came up in a red message:
* user warning: Unknown column 'hide_childless_entities' in 'field list' query: SELECT lineage, entity_type, entity_count_only, hide_childless_entities FROM index_layer WHERE iid = 3 in /var/www/mySite/sites/all/modules/index/includes/index.classes.inc on line 44.
* user warning: Unknown column 'hide_childless_entities' in 'field list' query: SELECT lineage, entity_type, entity_count_only, hide_childless_entities FROM index_layer WHERE iid = 0 in /var/www/mySite/sites/all/modules/index/includes/index.classes.inc on line 44.
* user warning: Unknown column 'hide_childless_entities' in 'field list' query: SELECT lineage, entity_type, entity_count_only, hide_childless_entities FROM index_layer WHERE iid = 0 in /var/www/mySite/sites/all/modules/index/includes/index.classes.inc on line 44.
* user warning: Unknown column 'hide_childless_entities' in 'field list' query: SELECT lineage, entity_type, entity_count_only, hide_childless_entities FROM index_layer WHERE iid = 3 in /var/www/mySite/sites/all/modules/index/includes/index.classes.inc on line 44.
So they seem to be two similar errors (one of them is the same as the one I got initially) repeating themselves once each.
Switching back to the 12/26/2009 dev build solves the issue. No errors on the 'Edit Index' page.
Comments
Comment #1
xanoYou will have to reinstall the module, because the DB has changed. You should always make sure whether to do that or not when updating to dev versions.
Thanks for testing!
Comment #2
klonosOk, I disabled the module and also uninstalled it from the respective modules' uninstall page. Then I completely removed the 'index' folder from my ../sites/all/modules directory. I even checked my db tables and made sure there were no index_* tables left.
I then installed latest dev build and the Unknown column 'hide_childless_entities' in 'field list' warnings went away, but still I get the following error when trying to save my indexs:
Fatal error: Call to undefined function index_form_add_populate_index() in /var/www/mySite/sites/all/modules/index/includes/index.admin.inc on line 223
The above error is not a simple warning shown within my site, but is rather displayed in a blank page by itself.
I then thought that perhaps there are db updates and update.php had to be run. So, I went to the site status page to see if my though was true. There was no warning to run update.php. I double-checked the second step of my update.php just to make sure and it didn't show any available db updates for any module.
Unfortunately, in the status page I got another red warning repeating 5 times (which if I remember correctly was the number of indexes I had created with the old version of the module), like so:
* Please enter a path for the index page.
* Please enter a path for the index page.
* Please enter a path for the index page.
* Please enter a path for the index page.
* Please enter a path for the index page.
My question here is: If I made sure that there were no traces of the previous Index dev build left behind, how come these warnings pop up?
I don't know if this helps at all or if it is another issue altogether, but in the live page and block preview before I save the index, everything shows twice. I mean no matter what display mode or what type of item I select, everything repeats itself right after the last item.
Comment #3
xanoThis problem was just fixed along with #672696: 'Path is already used by a menu link' warning when creating a new index using same path as a previously deleted index..
Next time, could you please stick to one particular problem per issue to keep things clear?
Comment #4
klonosok, thank you. Sorry and yes I will.
Comment #6
xano