After updating Nodequeue to alpha2, I get the following errors:
Notice: Undefined index: home_page_rotator in nodequeue_handler_relationship_nodequeue->init() (line 18 of /var/www/resilient/sites/all/modules/nodequeue/includes/views/nodequeue_handler_relationship_nodequeue.inc).
Notice: Undefined index: home_page_rotator in nodequeue_handler_relationship_nodequeue->init() (line 18 of /var/www/resilient/sites/all/modules/nodequeue/includes/views/nodequeue_handler_relationship_nodequeue.inc).
Notice: Undefined index: breaking_news in nodequeue_handler_relationship_nodequeue->init() (line 18 of /var/www/resilient/sites/all/modules/nodequeue/includes/views/nodequeue_handler_relationship_nodequeue.inc).
Notice: Undefined index: leadership in nodequeue_handler_relationship_nodequeue->init() (line 18 of /var/www/resilient/sites/all/modules/nodequeue/includes/views/nodequeue_handler_relationship_nodequeue.inc).
Notice: Undefined index: home_page_rotator in nodequeue_handler_relationship_nodequeue->init() (line 18 of /var/www/resilient/sites/all/modules/nodequeue/includes/views/nodequeue_handler_relationship_nodequeue.inc).
Notice: Undefined index: home_page_rotator in nodequeue_handler_relationship_nodequeue->init() (line 18 of /var/www/resilient/sites/all/modules/nodequeue/includes/views/nodequeue_handler_relationship_nodequeue.inc).
Notice: Undefined index: 4d2cd5ef35ef3 in nodequeue_handler_relationship_nodequeue->init() (line 18 of /var/www/resilient/sites/all/modules/nodequeue/includes/views/nodequeue_handler_relationship_nodequeue.inc).
Notice: Undefined index: 4d2cd5ef629cf in nodequeue_handler_relationship_nodequeue->init() (line 18 of /var/www/resilient/sites/all/modules/nodequeue/includes/views/nodequeue_handler_relationship_nodequeue.inc).
Notice: Undefined index: home_page_rotator in nodequeue_handler_relationship_nodequeue->init() (line 18 of /var/www/resilient/sites/all/modules/nodequeue/includes/views/nodequeue_handler_relationship_nodequeue.inc).
Notice: Undefined index: home_page_rotator in nodequeue_handler_relationship_nodequeue->init() (line 18 of /var/www/resilient/sites/all/modules/nodequeue/includes/views/nodequeue_handler_relationship_nodequeue.inc).
Notice: Undefined index: 4d2cd5ef35ef3 in nodequeue_handler_relationship_nodequeue->init() (line 18 of /var/www/resilient/sites/all/modules/nodequeue/includes/views/nodequeue_handler_relationship_nodequeue.inc).
Notice: Undefined index: 4d2cd5ef629cf in nodequeue_handler_relationship_nodequeue->init() (line 18 of /var/www/resilient/sites/all/modules/nodequeue/includes/views/nodequeue_handler_relationship_nodequeue.inc).
Notice: Undefined index: home_page_rotator in nodequeue_handler_relationship_nodequeue->init() (line 18 of /var/www/resilient/sites/all/modules/nodequeue/includes/views/nodequeue_handler_relationship_nodequeue.inc).
Notice: Undefined index: home_page_rotator in nodequeue_handler_relationship_nodequeue->init() (line 18 of /var/www/resilient/sites/all/modules/nodequeue/includes/views/nodequeue_handler_relationship_nodequeue.inc).
Notice: Undefined index: breaking_news in nodequeue_handler_relationship_nodequeue->init() (line 18 of /var/www/resilient/sites/all/modules/nodequeue/includes/views/nodequeue_handler_relationship_nodequeue.inc).
Notice: Undefined index: leadership in nodequeue_handler_relationship_nodequeue->init() (line 18 of /var/www/resilient/sites/all/modules/nodequeue/includes/views/nodequeue_handler_relationship_nodequeue.inc).
Notice: Undefined index: services in nodequeue_handler_relationship_nodequeue->init() (line 18 of /var/www/resilient/sites/all/modules/nodequeue/includes/views/nodequeue_handler_relationship_nodequeue.inc).
Notice: Undefined index: services in nodequeue_handler_relationship_nodequeue->init() (line 18 of /var/www/resilient/sites/all/modules/nodequeue/includes/views/nodequeue_handler_relationship_nodequeue.inc).
Notice: Undefined index: breaking_news in nodequeue_handler_relationship_nodequeue->init() (line 18 of /var/www/resilient/sites/all/modules/nodequeue/includes/views/nodequeue_handler_relationship_nodequeue.inc).
Notice: Undefined index: home_page_rotator in nodequeue_handler_relationship_nodequeue->init() (line 18 of /var/www/resilient/sites/all/modules/nodequeue/includes/views/nodequeue_handler_relationship_nodequeue.inc).
Notice: Undefined index: leadership in nodequeue_handler_relationship_nodequeue->init() (line 18 of /var/www/resilient/sites/all/modules/nodequeue/includes/views/nodequeue_handler_relationship_nodequeue.inc).
Notice: Undefined index: home_page_rotator in nodequeue_handler_relationship_nodequeue->init() (line 18 of /var/www/resilient/sites/all/modules/nodequeue/includes/views/nodequeue_handler_relationship_nodequeue.inc).
Notice: Undefined index: home_page_rotator in nodequeue_handler_relationship_nodequeue->init() (line 18 of /var/www/resilient/sites/all/modules/nodequeue/includes/views/nodequeue_handler_relationship_nodequeue.inc).
Notice: Undefined index: breaking_news in nodequeue_handler_relationship_nodequeue->init() (line 18 of /var/www/resilient/sites/all/modules/nodequeue/includes/views/nodequeue_handler_relationship_nodequeue.inc).
Notice: Undefined index: leadership in nodequeue_handler_relationship_nodequeue->init() (line 18 of /var/www/resilient/sites/all/modules/nodequeue/includes/views/nodequeue_handler_relationship_nodequeue.inc).
Notice: Undefined index: home_page_rotator in nodequeue_handler_relationship_nodequeue->init() (line 18 of /var/www/resilient/sites/all/modules/nodequeue/includes/views/nodequeue_handler_relationship_nodequeue.inc).
Notice: Undefined index: home_page_rotator in nodequeue_handler_relationship_nodequeue->init() (line 18 of /var/www/resilient/sites/all/modules/nodequeue/includes/views/nodequeue_handler_relationship_nodequeue.inc).
Notice: Undefined index: 4d2cd5ef35ef3 in nodequeue_handler_relationship_nodequeue->init() (line 18 of /var/www/resilient/sites/all/modules/nodequeue/includes/views/nodequeue_handler_relationship_nodequeue.inc).
Notice: Undefined index: 4d2cd5ef629cf in nodequeue_handler_relationship_nodequeue->init() (line 18 of /var/www/resilient/sites/all/modules/nodequeue/includes/views/nodequeue_handler_relationship_nodequeue.inc).
Notice: Undefined index: home_page_rotator in nodequeue_handler_relationship_nodequeue->init() (line 18 of /var/www/resilient/sites/all/modules/nodequeue/includes/views/nodequeue_handler_relationship_nodequeue.inc).
Notice: Undefined index: home_page_rotator in nodequeue_handler_relationship_nodequeue->init() (line 18 of /var/www/resilient/sites/all/modules/nodequeue/includes/views/nodequeue_handler_relationship_nodequeue.inc).
Notice: Undefined index: breaking_news in nodequeue_handler_relationship_nodequeue->init() (line 18 of /var/www/resilient/sites/all/modules/nodequeue/includes/views/nodequeue_handler_relationship_nodequeue.inc).
Notice: Undefined index: leadership in nodequeue_handler_relationship_nodequeue->init() (line 18 of /var/www/resilient/sites/all/modules/nodequeue/includes/views/nodequeue_handler_relationship_nodequeue.inc).
SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ') WHERE (( (node.type IN ('home_page_feature')) AND (node.status = '1') )) ORDE' at line 1
Comments
Comment #1
amateescu commentedDid you run update.php after the upgrade to 7.x-2.0-alpha2?
Comment #2
zoon_unit commentedOf course. Installed with Drush up. These errors were generated due to embedded relationships in views. In order to fix the errors, I had to remove the relationship to nodequeue from Views. (I'm using the latest Views-3.0-rc1)
Comment #3
amateescu commentedAs far as I know,
drush upolny updates the files,drush updbis for database updates. Can you please check update.php and see if there any updates that need to be installed? And what is your schema_version from the system table for nodequeue?Comment #4
zoon_unit commentedActually, drush up (drush pm-update) DOES update the database. Drush pm-updatecode only uploads the module code itself.
However, I can assure you that I checked update.php many times during this debugging stage and it was always up to date, thanks to drush.
Comment #5
zoon_unit commentedAlso, please take note of the information here: http://drupal.org/node/1199480
This, I think is related, because it looks as if nodequeue is trying to correct old data, but errors out.
Comment #6
zoon_unit commentedOkay, I have a theory. (although I'm not a php programmer, per se) My view and its relation to the nodequeue table was created while using nodequeue alpha1. The problems started when upgrading to alpha2. I noticed in the release notes that the nodequeue machine names were changed in alpha2.
Is it possible that Views stores those machine names when referencing the nodequeue table? If so, then even though alpha2 is updating the nodequeue table structure, it may not be upgrading the machine names being used in the views definition. If this is the case, then I can pretty reliably predict that anyone who has a view that has a relationship with the nodequeue table is going to have errors when updating alpha1 to alpha2.
Comment #7
amateescu commentedDid you have a previous nodequeue patch applied that converted qids to names? Line 18 from the views relationship handler only deals with 'old' qids (
foreach ($options['qids'] as $key => $value) {) and I can't think of any reason for which you would get a notice in there.Those errors show up again if you re-add the nodequeue relationship in views? And are you using the default views provided by nodequeue or custom ones?
Comment #8
amateescu commentedCross-posted :) Well, alpha1 didn't have machine names for queues, and that brings me back to the question from #7, that maybe you had a previous machine names patch applied.
Comment #9
amateescu commentedClosing as a duplicate of #1199480: Errors generated by nodequeue when trying to update old data because we're dealing with the same problem over there.