Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error when viewing deck #51

Closed
sacrelicious2 opened this issue Jan 26, 2017 · 6 comments
Closed

Error when viewing deck #51

sacrelicious2 opened this issue Jan 26, 2017 · 6 comments

Comments

@sacrelicious2
Copy link

When trying to view a deck I built (https://arkhamdb.com/deck/view/13368), I am not seeing the cards display properly. Opening developer tools, I am seeing the following errors:

13368:416 Uncaught SyntaxError: Unexpected token <
app.js:148 Uncaught ReferenceError: investigator is not defined
at Object.e.get_invalid_cards (app.js:148)
at Object.e.get_problem (app.js:148)
at Object.e.get_layout_data (app.js:143)
at Object.e.display (app.js:143)
at Object.refresh_deck (09efa31.js:81)
at Object.on_all_loaded (09efa31.js:109)
at HTMLDocument. (app.js:157)
at HTMLDocument.dispatch (jquery.min.js:3)
at HTMLDocument.r.handle (jquery.min.js:3)
at Object.trigger (jquery.min.js:3)

@sacrelicious2
Copy link
Author

Unable to repro with other decks, even a cloned version of the above deck.

@sacrelicious2
Copy link
Author

Confirmed that is occurs on chrome, IE and mobile.

@Kamalisk
Copy link
Owner

Somehow you created a deck with no investigator, so it has issues. If you have any idea of what you did before this happened that would be great.

@sacrelicious2
Copy link
Author

I created a Rex Murphy deck, and got this issue after editing the deck. I am able to successfully clone the deck, so at some level it knows what the investigator deck.

Inspecting in chrome, it looks like an error message was inserted in the arkhamdb.com\deck/view\13368 file

app.deck_history && app.deck_history.init(<br /> <b>Notice</b>: Undefined index: 02025 in <b>/opt/nrdb/adb/src/AppBundle/Entity/Deck.php</b> on line <b>98</b><br />

@sacrelicious2
Copy link
Author

Note that 02025 is Thinking on your feet, a card that I had in the original version of my deck but removed after editing, swapping it for another out-of-class card.

Kamalisk added a commit that referenced this issue May 14, 2017
@Kamalisk
Copy link
Owner

error with history. fixed next update.

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

No branches or pull requests

2 participants