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

HTTP error 500 when flagging content #5

Closed
jenlampton opened this issue Jan 30, 2017 · 5 comments
Closed

HTTP error 500 when flagging content #5

jenlampton opened this issue Jan 30, 2017 · 5 comments

Comments

@jenlampton
Copy link
Member

Whenever I flag a node on forum.backdropcms.org I get a HTTP 500 error:

An HTTP error 500 occurred.
https://forum.backdropcms.org/flag/flag/frequently_asked_question/4?destination=node/4
@docwilmot
Copy link
Member

This is because entities are now fully classed objects and the flagging entity wasnt. So the entity_insert() and other entity_*() hook implementations in other modules (particularly filter.module's filter_entity_insert() etc) throw an exception when Flag was passing them a STDClass "flagging" object instead of a real classed entity.

THis PR makes a "flagging" a real classed entity.

@docwilmot
Copy link
Member

@jromine are you available to review and merge this PR please? Its holding up using Flag on Forums.

@jenlampton
Copy link
Member Author

jenlampton commented Oct 9, 2017 via email

@jromine
Copy link
Member

jromine commented Oct 9, 2017

@docwilmot I don't have an active Backdrop site to test with right now. If you want to remove me as maintainer in the README that's ok with me.

@docwilmot
Copy link
Member

OK @jromine I'll review the patches and merge them in if you dont mind then.
Did you quit Backdrop?

docwilmot added a commit that referenced this issue Oct 9, 2017
Issue #5: HTTP error 500 when flagging content
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

3 participants