Skip to content
This repository has been archived by the owner on Feb 15, 2023. It is now read-only.

Unable to run demo on local BACKSTAGE #36

Open
sanchezw opened this issue Oct 10, 2012 · 3 comments
Open

Unable to run demo on local BACKSTAGE #36

sanchezw opened this issue Oct 10, 2012 · 3 comments

Comments

@sanchezw
Copy link

Hi,

I have install exhivi3 as described in [1]. The installation was successful. The I have uploaded demo data (from backstage/demos/sweden-europeana/europeana-swe.json) using the instruction from [2]. I am able to browse the imported data using [3]. The Then I have updated the index.html with the following information:

<link href="http://localhost:8181/backstage/data/disk/55ab6c5a" rel="exhibit/data" /> 

<script src="http://localhost:8181/backstage/exhibit/api/exhibit-api.js?autoCreate=false&postLoad=true&js=http://localhost:8181/backstage/api/backstage-api.js"></script> 

I have the following error in the browser:

$ is not a function
$(document).one("scriptsLoaded.exhibit", loadMe); - Line 150 of backstage-api.js

and:
Operation is not supported

I have also set up DATABASE_DIR with absolute path to /home/myusername/dev/e3src/butterfly/databases.

I have the same error with and without this database variable.

I appreciate any help to solve this issue.

William

[1] https://github.com/zepheira/backstage/wiki/Building-backstage
[2] curl -i -H "Content-Type: application/json" -X POST -T europeana-swe.json http://localhost:8181/backstage/data/disk
[3] http://localhost:8181/backstage/data/disk/55ab6c5a

@distobj
Copy link

distobj commented Oct 11, 2012

"$ is not a function" suggests there's a problem with loading or initializing jQuery, I think. Is your exhibit public?

@sanchezw
Copy link
Author

it Is not public. fyi, I have installed all in centos and ubuntu and I have the same error.I have used chrome, firefox and ie with the same error. I appreciate any help.

@distobj
Copy link

distobj commented Oct 11, 2012

I asked if it was public so I could have a look. If that's not an option, could you try distilling your exhibit down to something which could be shared but still demonstrates the problem? If not, I think the only option is for you do some debugging to see why $ is not being defined. Thanks.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants