Allow doxter fields to be empty
Closed this issue · 12 comments
I get an Error 500: Internal server error
when I filter an empty doxter field with the doxter
-filter:
{{ block.commonContent | doxter }}
When I check for length
everything is fine:
{% if block.commonContent | length %}
{{ block.commonContent | doxter }}
{% endif %}
Will look into that asap!
Wow, that was fast! Thank you!
By the way: doxter is really cool!
Hey @bilke, your bug report is confirmed and fixed for the next release which will be ready within the hour!
P.S. Thanks for the report and kind words: )
I have to thank you!
The latest lease should fix the internal server error
and safely handle empty fields @bilke
Let me know if you have any issue updating to the latest version which should be safe and should only update core files, all your previously created fields and saved content will remain untouched.
I have updated the plugin and it also ran automatically some database migration afterwards but now the output of all my doxter fields is empty. In the CP everything fine so the data is fortunately not lost. Do you know whats happening here?
I can't think of anything that would have caused that in the update but I'm happy to take a look if you want to do a hangout (selvin@selvin.co) and share your screen or send over some credentials to your craft install or repo.
I'm willing to help, just let me know how I can since I tested the release and didn't run into this issue myself.
It is already late here in Germany and so I will investigate a little bit more tomorrow and let you know if I can somehow fix this. But anyway thanks for your help!
Sounds good, I added you on google plus so we can continue the conversation there anytime.
Ha, I found it: I first applied the parseRefs
-filter before applying the doxter
-filter (because I am building a documentation site similar to P&Ts blog post). If remove the parseRefs
-filter it works again. This was my setup which worked before:
{{ block.commonContent | parseRefs | doxter }}
Sweet, everything it good then? Will doxter do what you need it to do?