Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
When updating to commons 3.3 I get this error:
Notice: Undefined index: title in commons_origins_preprocess_form_content() (line 735 of /mnt/www/html/commonsint/docroot/profiles/commons/themes/contrib/commons_origins/template.php).
Notice: Undefined index: title in commons_origins_preprocess_form_content() (line 735 of /mnt/www/html/commonsint/docroot/profiles/commons/themes/contrib/commons_origins/template.php).
This persists through the site. And yes, commons_origins was updated to newest version ;-)
Comment | File | Size | Author |
---|---|---|---|
#1 | Screenshot_6_12_13_11_13_PM.png | 187.13 KB | japerry |
Screenshot_6_12_13_11_06_PM.png | 224.68 KB | japerry |
Comments
Comment #1
japerryIt looks like the partial forms for documents and polls are not working correctly, showing odd things like this:
Comment #2
Daniel_Rempe CreditAttribution: Daniel_Rempe commentedIt seems that $variables['form']['title'] does not exist on every form. In my case "commons_bw_partial_node_form__document" and "commons_bw_partial_node_form__poll".
My temporary workaround is to check if the title is set. Or is it necessary to set a title instead? Any comments on that?
Changes in template.php line 756:
Comment #3
ezra-g CreditAttribution: ezra-g commentedCan you confirm that you followed all of the upgrade steps listed at https://docs.acquia.com/commons/upgrade, specifically:
- Running updatedb
- Reverting all features?
commons_bw_update_7302() should update the title fields on all of your content types.
Comment #4
japerrytagging 3.3 to watch before we release.
Comment #5
dstolThis seems to be the result of not running features-revert all after the upgrade process.
Comment #6
ezra-g CreditAttribution: ezra-g commentedMarking as fixed per #3/5 but please re-open if you can reproduce with the latest dev snapshot of Commons.
Comment #7
japerryconfirmed steps to reproduce and #5 fixes the issue.
Updb on its own does not however. You must run drush fra or go in and manually feature revert every enabled commons feature when upgrading.
Comment #9
goofken CreditAttribution: goofken commentedThis extra if check worked for my setup. Did all updates but warning was still there
Comment #10
amittarkar CreditAttribution: amittarkar commentedI downloaded the latest dev of commons and warning still persists.
Comment #11
bryanhidalgo CreditAttribution: bryanhidalgo commentedI had the same problem and I solved after applying: drush features-revert-all
Comment #11.0
bryanhidalgo CreditAttribution: bryanhidalgo commentedmake image show up correctly
Comment #12
markbannister CreditAttribution: markbannister commentedFYI is you have added custom types to the bw (say via browsing widget ui) make sure after reverting that there is a field selected to display in the browsing widget in admin/structure/types/manage/post/fields/ or you will keep getting this error.