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

Deleting categories causes admin site to become unavailable. #3071

Open
mmzeeman opened this issue Jul 27, 2022 · 0 comments · May be fixed by #3072
Open

Deleting categories causes admin site to become unavailable. #3071

mmzeeman opened this issue Jul 27, 2022 · 0 comments · May be fixed by #3072

Comments

@mmzeeman
Copy link
Member

Zotonic version

1.x

OS / Browser version

All

Steps to reproduce

Create a category, and some content with that category, and delete the category resource and go to /admin.

Current behavior

The browser redirect to about blank and zotonic console displays an error trace.

Error trace:

2022-07-27 11:05:46 WARNING  site=site_cafe  dispatch=admin <0.2627.0> [cowmachine:log_report/2:228] ▸ text="Unexpected exception" src_port=56545 src_ip4=83.219.73.10 reason="{case_clause,{error,{unknown_category,<<\"friend_invitation\">>}}}" path=/admin node=zotonic@hall4 level=warning in=cowmachine dst_port=443 dst_ip4=62.212.86.119 code=500 class=error at=cowmachine:handle_stop_request:176 
  Stack:
     filter_is_a:is_a/3 @ "/home/channelme/channelv2/zotonic/apps/zotonic_mod_base/src/filters/filter_is_a.erl":26
     tpl_04638361c775940821dd3dfb1cb614926228709c:render/3 @ "/home/channelme/channelv2/zotonic/_build/default/lib/site_cafe/priv/templates/_html_head_twitter.tpl":7
     template_compiler:render/4 @ "/home/channelme/channelv2/zotonic/_build/default/lib/template_compiler/src/template_compiler.erl":113
     template_compiler_runtime_internal:include_1/7 @ "/home/channelme/channelv2/zotonic/_build/default/lib/template_compiler/src/template_compiler_runtime_internal.erl":224
     tpl_75550f464ff0d414bca3c93148ecd9bdb959596e:render/3 @ "/home/channelme/channelv2/zotonic/_build/default/lib/zotonic_mod_twitter/priv/templates/_html_head.tpl":1
     template_compiler:render/4 @ "/home/channelme/channelv2/zotonic/_build/default/lib/template_compiler/src/template_compiler.erl":113
     template_compiler_runtime_internal:include_1/7 @ "/home/channelme/channelv2/zotonic/_build/default/lib/template_compiler/src/template_compiler_runtime_internal.erl":224
     lists:map/2 @ "lists.erl":1243

Expected behavior

Admin page is displayed, and working correctly.

Config

N/A

@mmzeeman mmzeeman linked a pull request Jul 27, 2022 that will close this issue
3 tasks
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

Successfully merging a pull request may close this issue.

1 participant