HTTP/1.0 500 Internal Server Error Server: CouchDB/1.1.1 (Erlang OTP/R15B03) Date: Sat, 25 May 2013 09:06:23 GMT Content-Type: text/plain;charset=utf-8 Content-Length: 3281 Cache-Control: must-revalidate {"error":"render_error","reason":"function raised error: (new ReferenceError(\"console is not defined\", \"\", 171)) \nstacktrace: (\"afterResponse\",g)@:171\n(\"afterResponse\",(function (info, req, res) {var h = req.h;var doc_url = duality.getDBURL() + \"/\" + req.query.page;var curr_url = doc_url + \"/history/\" + h._id + \".json\";var tasks = {curr: async.apply(db.request, {expect_json: true, url: curr_url})};if (h.prev) {var prev_url = doc_url + \"/history/\" + h.prev + \".json\";tasks.prev = async.apply(db.request, {expect_json: true, url: prev_url});}async.parallel(tasks, function (err, results) {if (err) {alert(err);}var diff = jsdiff.diffString(results.prev ? results.prev.body : \"\", results.curr.body);diff = diff.replace(/^ /g, \"\");diff = diff.replace(/\\n /g, \"\\n\");diff = diff.replace(/ /g, \" \");diff = diff.replace(/<\\/del> /g, \"\");var pre = $(\"
\").html(diff);$(\"#history_diff\").html(pre);});}))@:209\n([object Object],[object Object])@:183\n((function (head, req) {start({code: 200, headers: {'Content-Type': \"text/html\"}});var row, rows = [];while ((row = getRow())) {rows.push(row);}var doc = _.detect(rows, function (r) {return r.id === req.query.page;});var sidebar = _.detect(rows, function (r) {return r.id === \"sidebar\";});if (doc) {doc = doc.doc;}if (sidebar) {sidebar = sidebar.doc;}var empty_doc = !doc;if (!doc && req.query.page === \"index\") {doc = utils.createPage(\"index\", req.userCtx.name);}if (!sidebar) {sidebar = utils.createPage(\"sidebar\", req.userCtx.name);}if (!empty_doc) {var h;var h_id = req.query.change || doc.latest_change._id;h = _.detect(doc.history, function (h) {return h._id === h_id;});h.selected = true;doc.history.reverse();doc.history = _.map(doc.history, function (h) {h.pptime = utils.prettyTime(h.time);return h;});req.h = h;events.once(\"afterResponse\", history_ui.bindHistoryViewer);return {title: doc.title, content: templates.render(\"history_page.html\", req, {doc: doc, pageid: doc._id, current_tab: \"history_page\", logged_in: !!req.userCtx.name, empty_doc: empty_doc})};} else {return {title: utils.idToTitle(req.query.page), content: templates.render(\"empty_history_page.html\", req, {doc: doc, pageid: req.query.page, page_title: utils.idToTitle(req.query.page), current_tab: \"history_page\", logged_in: !!req.userCtx.name, empty_doc: empty_doc})};}}),[object Object],[object Object])@:1031\n([object Object],[object Object])@:0\nrunList(function (head, req) {var core = require(\"duality/core\");var fn = require(\"lib/app\").lists.history_page;return core.runList(fn, head, req);},[object Object],[object Array])@/home/ubuntu/hosting/installs/hosting_v1.1.1r3/share/couchdb/server/main.js:956\n(function (head, req) {var core = require(\"duality/core\");var fn = require(\"lib/app\").lists.history_page;return core.runList(fn, head, req);},[object Object],[object Array])@/home/ubuntu/hosting/installs/hosting_v1.1.1r3/share/couchdb/server/main.js:1001\n(\"_design/wiki\",[object Array],[object Array])@/home/ubuntu/hosting/installs/hosting_v1.1.1r3/share/couchdb/server/main.js:1446\n()@/home/ubuntu/hosting/installs/hosting_v1.1.1r3/share/couchdb/server/main.js:1489\n@/home/ubuntu/hosting/installs/hosting_v1.1.1r3/share/couchdb/server/main.js:1500\n@:0\n"}