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
Server error with Neo plugin #28
Comments
Hi @ugrupp, thanks for posting the issue. I'm not sure how Neo would influence the usage field in the overview. The only thing that is checked for the usage is the asset's id against the relations table. Are you getting the same error with the Asset Usage plugin disabled, or the usage fields turned off in the overview? Can you provide some more context, like a stacktrace? |
The error only happens when the usage options is turned on in the assets overview. I'll post the full error response below. {
"error": "An exception has been thrown during the rendering of a template (\"Getting unknown property: benf\\neo\\Field::contentTable\").",
"exception": "Twig\\Error\\RuntimeError",
"file": "/app/vendor/craftcms/cms/src/templates/_elements/tableview/elements.html",
"line": 27,
"trace": [
{
"file": "/app/vendor/twig/twig/src/Template.php",
"line": 378,
"function": "displayWithErrorHandling",
"class": "Twig\\Template",
"type": "->"
},
{
"file": "/app/storage/runtime/compiled_templates/20/20b2b56fb270762289f951fac069adfa16fdf5eff0f2a38b71b02c2a4033234f.php",
"line": 102,
"function": "display",
"class": "Twig\\Template",
"type": "->"
},
{
"file": "/app/vendor/twig/twig/src/Template.php",
"line": 405,
"function": "doDisplay",
"class": "__TwigTemplate_6d4eca6c886ed43335d2b9847bd978902cf44280c70094c44b624ca5efd1c05e",
"type": "->"
},
{
"file": "/app/vendor/twig/twig/src/Template.php",
"line": 378,
"function": "displayWithErrorHandling",
"class": "Twig\\Template",
"type": "->"
},
{
"file": "/app/vendor/twig/twig/src/Template.php",
"line": 390,
"function": "display",
"class": "Twig\\Template",
"type": "->"
},
{
"file": "/app/vendor/twig/twig/src/TemplateWrapper.php",
"line": 45,
"function": "render",
"class": "Twig\\Template",
"type": "->"
},
{
"file": "/app/vendor/twig/twig/src/Environment.php",
"line": 318,
"function": "render",
"class": "Twig\\TemplateWrapper",
"type": "->"
},
{
"file": "/app/vendor/craftcms/cms/src/web/View.php",
"line": 389,
"function": "render",
"class": "Twig\\Environment",
"type": "->"
},
{
"file": "/app/vendor/craftcms/cms/src/base/Element.php",
"line": 741,
"function": "renderTemplate",
"class": "craft\\web\\View",
"type": "->"
},
{
"file": "/app/vendor/craftcms/cms/src/controllers/ElementIndexesController.php",
"line": 526,
"function": "indexHtml",
"class": "craft\\base\\Element",
"type": "::"
},
{
"file": "/app/vendor/craftcms/cms/src/controllers/ElementIndexesController.php",
"line": 135,
"function": "elementResponseData",
"class": "craft\\controllers\\ElementIndexesController",
"type": "->"
},
{
"function": "actionGetElements",
"class": "craft\\controllers\\ElementIndexesController",
"type": "->"
},
{
"file": "/app/vendor/yiisoft/yii2/base/InlineAction.php",
"line": 57,
"function": "call_user_func_array"
},
{
"file": "/app/vendor/yiisoft/yii2/base/Controller.php",
"line": 181,
"function": "runWithParams",
"class": "yii\\base\\InlineAction",
"type": "->"
},
{
"file": "/app/vendor/craftcms/cms/src/web/Controller.php",
"line": 190,
"function": "runAction",
"class": "yii\\base\\Controller",
"type": "->"
},
{
"file": "/app/vendor/yiisoft/yii2/base/Module.php",
"line": 534,
"function": "runAction",
"class": "craft\\web\\Controller",
"type": "->"
},
{
"file": "/app/vendor/craftcms/cms/src/web/Application.php",
"line": 278,
"function": "runAction",
"class": "yii\\base\\Module",
"type": "->"
},
{
"file": "/app/vendor/craftcms/cms/src/web/Application.php",
"line": 581,
"function": "runAction",
"class": "craft\\web\\Application",
"type": "->"
},
{
"file": "/app/vendor/craftcms/cms/src/web/Application.php",
"line": 257,
"function": "_processActionRequest",
"class": "craft\\web\\Application",
"type": "->"
},
{
"file": "/app/vendor/yiisoft/yii2/base/Application.php",
"line": 392,
"function": "handleRequest",
"class": "craft\\web\\Application",
"type": "->"
},
{
"file": "/app/web/index.php",
"line": 26,
"function": "run",
"class": "yii\\base\\Application",
"type": "->"
}
]
} |
I just noticed this only happens for the "current usage" table option. |
Found a better stacktrace:
|
This should be fixed in 3.2.0. Can you let us know? |
On listing the assets in the media library, I'm getting a server error notification. In the console it says:
for the request
/index.php?p=admin/actions/element-indexes/get-elements&v=1627900326070
So I assume this plugin currently doesn't work with assets linked inside Neo fields?
I'm using
Craft Pro 3.6.17
Neo 2.10.6
The text was updated successfully, but these errors were encountered: