Hi,
After installing the module, i get this error on the setting page for RDF
Notice: Undefined index: rdf_mapping -rdfx_mapping_overview() (32 -/home/sabresim/public_html/sites/all/modules/rdfx/rdfx.admin.inc).
Any help would be appreciated,
BR
Itzhak
Comments
Comment #1
scor commentedplease make sure you have the RDF module enabled (it's in core). save the modules form to be sure it's enabled.
also please post a list of the contrib modules you have enabled.
Comment #2
phizes commentedI'm sure this is related, watchdog reports the following errors 5 times each when visiting admin/config/services/rdf, the first error is followed by the second, in pairs.
Followed by:
For a total of 10 errors.
I currently have the following modules enabled:
Apart from that there are 3 minor custom modules, one is just exported views, a hidden captcha only active on public forms, and one for miscellaneous odds and ends. The core rdf module has been enabled and generating markup for several months already.
This happens on both the live site and our local dev server. I'm going to go with schema.org module for now for the live site, albeit short of marking up in other vocabularies, but will keep the local dev server with rdfx. Please let me know if you need any further information or testing.
Update
It seems the menu bundles do not have the rdf_mapping key. Looking at the core rdf module, it seems that seeing as menu.module does not implement hook_rdf_mapping, and there is no rdf_mapping in the database for menus, then the rdf_mapping key would not exist. I am not completely certain as this is the first look I have taken at rdf code and I have not used entities to a great degree.
Comment #3
jdube commentedI am seeing the same messages as #2, upon clicking RDF publishing settings, but I get only a total of 8 messages (4 pairs).
NOTE: When I try to enter Prefix/Namespace URI combinations, for example: dbp / http://dbpedia.org/property/; dbpedia / http://dbpedia.org/ontology/; or linkedmdb / http://data.linkedmdb.org/resource/, I get no confirmation or response, nor Watchdog report, and the namespace is not added to the list. (Perhaps the error messages are related to this)
Enabled modules:
Drupal core 7.10: Block, Color, Contact, Contextual Links, Dashboard, Database logging, Field, Field UI, Field SQL storage, File, Filter, List, Menu, Node, Number, Options, Overlay, Path, RDF, Search, Shortcuts, Statistics, System, Taxonomy, Text, Toolbar, User
Chaos tools 7.x-1.x-dev
Backup and Migrate 7.x-2.2
Entity API 7.x-1.0-rc1+21-dev
Libraries 7.x-1.0
robots.txt 7.x-1.0
External RDF Vocabulary Importer 7.x-2.x-
RDF UI 7.x-2.x-
RDFx 7.x-2.x-
SPARQL API 7.x-2.x-
SPARQL Endpoint 7.x-2.x-
SPARQL Endpoints Registry 7.x-2.x-
SPARQL Views7.x-2.x-dev
Any suggestions?
Comment #4
akk commentedchange the line 32
from
$rdf_mapping = $bundle['rdf_mapping'];to
Comment #5
Schnittmenge commentedI got only one error in line 60:
Notice: Undefined variable: rdftype in rdfx_mapping_overview() (line 60 of .../drupal/profiles/w/modules/contrib/rdfx/rdfx.admin.inc).
The proposed change in line 32 gives me more errors.
Drupal 7.14
Comment #6
kingfisher64 commentedI'm getting the following notices with drupal 7.23 & the latest rdfx dated 2013-Oct-01. There's about 8 of each notices.
Comment #7
miromarchi commentedHi scor!
Same as #5.
I have a new installation with rdfx installed and enabled in the profile.
But I have no custom modules using it.
When I visit RDF publishing settings at admin/config/services/rdf I see the
Notice: Undefined variable: rdftype in rdfx_mapping_overview() (line 60 of /var/www/retebuonvivere/pan2/sites/all/modules/contrib/rdfx/rdfx.admin.inc).
Comment #8
kingfisher64 commentedI'm still getting a lot of errors same as #6 when using the very latest dev. Has any progress been made on these issues?
Comment #9
kingfisher64 commented@scor - as suggested in the irc #drupal channel I've tried installing the latest dev with a plain drupal install (nothing added) and there are no errors.
It appears that when other contrib mods are installed we get these errors. What can we do to sort this out.
Many thanks & happy new year