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.

CommentFileSizeAuthor
#7 BiblioNotInAddressFieldFolder.png132.9 KBsomatics

Comments

rjerome’s picture

Status: Active » Fixed

These 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.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

somatics’s picture

Status: Closed (fixed) » Active

Hi,

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.

rjerome’s picture

Are you referring to this error

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).

You should not be seeing that in rc3.

somatics’s picture

Yes, this is the error I'm still seeing, even though I'm using Biblio rc3.

rjerome’s picture

I notice that's kind of a strange location for the module...

"/all/modules/addressfield/biblio/views/biblio_handler_field_contributor.inc"
              ^^^^^^^^^^^

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?

somatics’s picture

StatusFileSize
new132.9 KB

Hmm, 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.

rjerome’s picture

Are 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...

somatics’s picture

Well, 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:

Notice: Undefined index: vid in biblio_handler_field_contributor->post_execute() (line 116 of /drupalfolder/sites/all/modules/biblio/views/biblio_handler_field_contributor.inc).

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.

rjerome’s picture

OK, 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"

<?php
define('DRUPAL_ROOT', '.');
require_once '/includes/file.inc';
$files = file_scan_directory('.', '/biblio_handler_field_contributor.inc$/');

foreach($files as $key => $value) {
  print $key . '<br>';
}
somatics’s picture

When 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 3

Just 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.inc

Any 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.

rjerome’s picture

It 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.

somatics’s picture

I 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).

rjerome’s picture

Version: 7.x-1.0-rc1 » 7.x-1.x-dev
Status: Active » Fixed

Looking 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.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.