Hello,
I am using Drupal 7.15 with Views OAI-PMH 7.x-1.0-beta1.
After I added an OAI-PMH display to an existing view, I randomly see some errors on my drupal pages.
The errors are :
Notice : Undefined index: verb in views_oai_pmh_plugin_style->render() (ligne 24 dans /var/www/frantiq/sites/all/modules/views_oai_pmh/plugins/views_oai_pmh_plugin_style.inc).
Notice : Undefined index: verb in views_oai_pmh_plugin_style->render() (ligne 27 dans /var/www/frantiq/sites/all/modules/views_oai_pmh/plugins/views_oai_pmh_plugin_style.inc).
Notice : Undefined index: verb in views_oai_pmh_plugin_style->render() (ligne 24 dans /var/www/frantiq/sites/all/modules/views_oai_pmh/plugins/views_oai_pmh_plugin_style.inc).
Notice : Undefined index: verb in views_oai_pmh_plugin_style->render() (ligne 27 dans /var/www/frantiq/sites/all/modules/views_oai_pmh/plugins/views_oai_pmh_plugin_style.inc).
Also, I experience problems with my OAI-PMH export :
< error code="badVerb" >The request method GET is unknown.< /error >
Maybe my badverb issue is related to the Undefined index : verb errors.
Thanks
Comment | File | Size | Author |
---|---|---|---|
#7 | views_oai_return_limits.png | 38.01 KB | rjerome |
Comments
Comment #1
sanky82 CreditAttribution: sanky82 commentedHello, I have exactly the same problem with my OAI-PMH, and I do not know how to fix. I do not wanted to create duplicated posts about the same issue. I hope somebody can help us.
Thanks
Comment #2
rjerome CreditAttribution: rjerome commentedThis may be related to the fact that you added it to an existing view. If you could export the view and post it here, it might help in debugging.
Comment #3
sanky82 CreditAttribution: sanky82 commentedThe path in the view:
Notice: Undefined index: verb in views_oai_pmh_plugin_style->render() (line 24 of /var/nas2/jails/drupal.bibdigital.rjb.csic.es/home/user/www/sites/all/modules/views_oai_pmh/plugins/views_oai_pmh_plugin_style.inc).
Notice: Undefined index: verb in views_oai_pmh_plugin_style->render() (line 27 of /var/nas2/jails/drupal.bibdigital.rjb.csic.es/home/user/www/sites/all/modules/views_oai_pmh/plugins/views_oai_pmh_plugin_style.inc).
http://mysite.es/oai
And this is what I see in view oai-pmh:
2012-09-28T08:40:30Zhttp://mysite.esThe request method GET is unknown.
Comment #4
regisrob CreditAttribution: regisrob commented1) the "badVerb" error is due to a wrong URL of the OAI feed :
If you have not modified the default View path in Drupal, the URL should be like this : "http://www.mydomain.fr/oai?verb=ListRecords&metadataPrefix=oai_dc" ou "http://www.mydomain.fr/oai?verb=Identify", and so on for the other OAI verbs...
2) there is also a bug that returns an OAI "badArgument" error (everything is explained in details here : http://drupal.org/node/1238240). To fix it, you just have to comment l.207-210 in "plugins/views_oai_pmh_plugin_display.inc".
It works fine for me.
Comment #5
sanky82 CreditAttribution: sanky82 commentedThanks a lot!! It already works, although I have a problem with ListRecord verb request. Why this verb only shows the 18 first DC records from my repository? Do I have to change anything in OAI-PMH settings?
Thanks in advance
Comment #6
tigunn CreditAttribution: tigunn commentedHi sanky82,
"this verb only shows the 18 first DC records from my repository"; ListRecord returns a number of record at a time and works like a pager. The harvester recovered the first recordings and call the following.
Comment #7
rjerome CreditAttribution: rjerome commentedThe "pager" setting in the view controls how many items are returned before a "resumption" token is issued. The resumption token is used to determine where to start on the next request.
Comment #8
adriancid