HI,
I'm getting a persistent error in the dblogs whenever I view biblio records:
Notice: Undefined index: vid in biblio_handler_field_contributor->post_execute() (line 116 of /pathtodrupalfolder/sites/all/modules/addressfield/biblio/views/biblio_handler_field_contributor.inc).
In the Schema module report, I get the following singular error in the Missing category:
MISSING (1)
Tables in the schema that are not present in the database.
BIBLIO
biblio_vtabs
I'm assuming this is the cause. If so (or even if not), how do I fix this issue?
I have far too much Biblio content to make simply re-installing the module a possibility.
| Comment | File | Size | Author |
|---|---|---|---|
| #7 | BiblioNotInAddressFieldFolder.png | 132.9 KB | somatics |
Comments
Comment #1
rjerome commentedThese two warnings are not related, and are not harmful, but undoubtedly annoying.
I've pushed a fix (http://drupalcode.org/project/biblio.git/commit/850196e) for the first (views) related issue.
The other "biblio_vtabs" table warning has not been fixed yet, but that table is not used, so it's not a real concern.
Cheers,
Ron.
Comment #3
somatics commentedHi,
I was wondering about your reply in comment #1: Was this fix rolled into released versions of the Biblio module?
I ask because I'm still getting this error -- in fact it's clogging up our error logs pretty significantly. I am using rc3, and I'm wondering if this version has that fix in it.
Or do I need to use a dev release? Or is it not available in anything other than the patch you list above.
Thanks in advance for your help with this.
Comment #4
rjerome commentedAre you referring to this error
You should not be seeing that in rc3.
Comment #5
somatics commentedYes, this is the error I'm still seeing, even though I'm using Biblio rc3.
Comment #6
rjerome commentedI notice that's kind of a strange location for the module...
Note: It's seems to be in the "addressfield" directory. Are you sure you don't (inadvertently) have an extra copy of the module hanging around?
Comment #7
somatics commentedHmm, that is strange. I wonder if this was the issue all along -- that even after I updated to rc3, there was a interloper old copy hanging on in a random other module folder. I don't know, but I did check the module folder just now upon seeing your post, and there is no such extra copy of biblio in there. I've attached a screenshot of the addressfield folder showing this.
This is the same copy of the addressfield folder as has been in our modules folder since Sept 2011, so I don't see how the extra biblio folder would have been in there and disappeared.
I checked my notes on this site, and this error I posted here is a direct copy and paste from the site's actual dblogs. So, the mystery persists.
Comment #8
rjerome commentedAre you still seeing that error with "addressfield" in the path?
If it were me, and it's a unix like operating system, I would just go to the root directory of your web server and issue the command....
find ./ -name "biblio_handler_field_contributor.inc" -print
and see what turns up...
Comment #9
somatics commentedWell, I can't find the error right now in the recent logs; but it has been intermittent the whole time. The most recent biblio error is from about 20 minutes ago, and there are about 7 of them:
I would like to do that search you suggest, but I just moved the site over to Pantheon, and they don't provide SSH access. If you have any ideas for how to achieve this otherwise, please let me know.
Comment #10
rjerome commentedOK, another alternative would be to create a file call "biblio_find.php" in the root directory of your drupal installation, copy the following into that file, then visit that file "http://example.com/biblio_find.php"
Comment #11
somatics commentedWhen I created and accessed that file, here's what the page I got said:
Warning: require_once(/includes/file.inc): failed to open stream: No such file or directory in /drupalfolder/biblio_find.php on line 3 Fatal error: require_once(): Failed opening required '/includes/file.inc' (include_path='.:/usr/share/pear:/usr/share/php') in /drupalfolder/biblio_find.php on line 3Just to see what would happen, I removed the leading slash before "includes/file.inc", and this is what the page said:
./sites/all/modules/biblio/views/biblio_handler_field_contributor.incAny idea what to do from here?
The logs for this error are flooding my db somewhat, and my new host sees a major performance hit from all the logging, so I'd like to get rid of these errors asap.
Thanks.
Comment #12
rjerome commentedIt would appear that there is only one copy the that file, so the next step would be to compare the contents of that file with that of the one from latest -dev tar file. There has to be a mismatch somewhere.
Comment #13
somatics commentedI updated the biblio module to the latest dev a few days ago -- according to my site, it's "7.x-1.0-rc3+55-dev". Caches have been cleared a gagillion times since then. I am still getting a flood of this error in the dblogs whenever any biblio node is accessed:
Notice: Undefined index: vid in biblio_handler_field_contributor->post_execute() (line 116 of /path-to-drupal/sites/all/modules/biblio/views/biblio_handler_field_contributor.inc).Comment #14
rjerome commentedLooking at this code again, I see that the "fix" I implemented previously was not quite right. I've made a slight change which, hopefully, will resolve this once and for all.
http://drupalcode.org/project/biblio.git/commit/d38326f
Try the next -dev build dated after this posting.
Ron.