The following errors appear on a beta6 distro version of the site:
Notice: Undefined index: fields in cod_sponsors_exhibits_views_default_views_alter() (line 73 of /srv/bindings/37bdd0e60a864abc871d800493cac25e/code/profiles/cod/modules/contrib/cod_support/cod_sponsors/modules/cod_sponsors_exhibits/views/cod_sponsors_exhibits.views.inc).
Warning: array_merge(): Argument #2 is not an array in cod_sponsors_exhibits_views_default_views_alter() (line 73 of /srv/bindings/37bdd0e60a864abc871d800493cac25e/code/profiles/cod/modules/contrib/cod_support/cod_sponsors/modules/cod_sponsors_exhibits/views/cod_sponsors_exhibits.views.inc).
I have not made any adjustments to these views, and the features listing shows as in the default setting.
Comment | File | Size | Author |
---|---|---|---|
#6 | Screenshot from 2016-07-08 09:43:53.png | 133.64 KB | frederickjh |
#5 | Screenshot from 2016-07-08 09:03:30.png | 179.82 KB | frederickjh |
#1 | 2406001-exhibitor_view_error-1.patch | 887 bytes | japerry |
Comments
Comment #1
japerryI think this might be due to the fields not applying when the module is enabled. Not sure why that'd occur. however, I' added a patch that checks to make sure the fields exist before altering the view. Give this a shot and see if it fixes the page. I presume admin sponsors page is where this error occurs?
Comment #2
frederickjhHi!
Just wanted to chime in in say that on a brand-new install of COD Distribution version 7.x-2.0-alpha7 applying this patch to a copy of the cod_support modules in the sites/all/modules/contrib/ folder works to get rid of the error message. You need to clear the cache and may need a registry rebuild to find the patched overridden module before in uses it. I did not but after clearing the caches a couple of times and reloading the browser all was well.
@stickcenter, did this patch work for you to get rid of the error message?
Thanks for the patch japerry!
Frederick
Comment #4
japerryGreat to hear! Fixed in 2.0-Beta2.
Comment #5
frederickjhI have not worked on this COD site in a bit but saw today that the error message is still being logged.
So I am reopening this. I am also getting this message which seems related to the patch:
This follows the original error in the log each time:
Here is a screenshot of the recent messages log filtered to php errors:
Sorry about saying this was fixed. Not sure what happened.
Comment #6
frederickjhHi @japerry!
I had applied the patch by first copying the cod_support folder from profiles/cod/modules/contrib to sites/all/modules/contrib. I then applied the patch to the sites/all/modules/contrib/ copy.
drush dd cod_sponsors_exhibits
showed that Drupal was using the version at sites/all/modules/contrib/cod_support/cod_sponsors/modules/cod_sponsors_exhibits.I decided to try and go back to the unpatched version by moving the patch version out of sites/all/modules/contrib/, then running
drush rr
to rebuild the registry. I got back the following:Watchdog log shows:
In any case this seems to have fixed the problem here. The error messages have stopped. Let me know if I can provide any more information on this issue.
God Bless!
Frederick