Closed lightningdev45 closed 10 years ago
I suspect what's wrong is that the file you're copying is the ZIP file, rather than all of the XML files. The parser looks for all of the individual XML files, and doesn't know what to do with a ZIP file. Try unzipping the file first.
We'll have to be explicit about this in the instructions!
Just to be clear here is the sample xml file I am using(directly from the documentation). I know the parser is working because I can find pages displaying content related to the two unit tags. The content can be found at http://192.168.42.33/18.2/ and http://192.168.42.33/18.2/6/. However, I can't seem to find any of the content relating to the actual law(from the section tag).
<?xml version="1.0" encoding="utf-8"?>
Also, by adding the default xml file to /var/www/statedecoded/htdocs/downloads/code-xml/ one of the errors went away. The new error message is as follows:
Beginning import Environment test succeeded Importing Parsing data files Updating laws_references Deleting unresolved laws_references Breaking up law histories Replace old view Done Building Permalinks Writing API key Using the existing API key Preparing to export bulk downloads Querying laws Building dictionary Done Generating sitemap.xml No laws could be found to export to the sitemap
Hmm. You might try downloading XML from a live site (e.g., D.C.'s) and importing that, or at least a subset of that collection of laws (e.g., the first 100 laws from the ZIP file). It's possible that we failed to keep that example up-to-date in the documentation as the standard evolved, although I thought I'd been pretty good about that.
Hmm it is working with that file. I'll see what is wrong with the example in the documentation tomorrow.
I'll worry about debugging the example—you've got enough work to do getting the Miami-Dade laws online! :)
I have installed using the vagrant install repo; All of the admin tests are passing. I am simply testing out the the sample xml file from the documentation. I have placed the file in the /var/www/statedecoded/htdocs/admin/import-data/ but I am still getting the following error:
Beginning import Environment test succeeded Importing Parsing data files Updating laws_references Deleting unresolved laws_references Breaking up law histories Replace old view Done Building Permalinks Writing API key Using the existing API key Preparing to export bulk downloads Querying laws Building dictionary Done Generating sitemap.xml No laws could be found to export to the sitemap No files were found in /var/www/statedecoded/htdocs/downloads/code-xml/—could not index laws with Solr. Generating structural statistics Pruning view records greater than one year old Done
What am I doing wrong?