You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm trying to search the library on an assets field, which throws an error (see hereunder). I've deleted and reinitiated the vendor folder, also cleared caches, indexed assets and deleted the cpresources folder, to no avail. This started to be an issue after updating from 3 to 4.
Steps to reproduce
Go to an entry
at an assets field, click Add Image to open the library
Type something in the search bar
look at the console to see the error
Expected behavior
When I search in the asset window in an entry (so not in the general asset library, which works fine), I should get the result of the search
Actual behavior
Nothing happens and the javascript console throws following error:
Uncaught TypeError: Cannot read properties of undefined (reading 'hasChildren') at s.constructor.startSearching (AssetIndex.js:302:53) at s.constructor.e [as startSearching] (Base.js:76:36) at s.constructor.<anonymous> (BaseElementIndex.js:261:16) at s.constructor.<anonymous> (Base.js:153:23) at HTMLInputElement.o (jquery.js?v=1684921251:2:89408) at HTMLInputElement.dispatch (jquery.js?v=1684921251:2:43392) at v.handle (jquery.js?v=1684921251:2:41387)
Craft CMS version
Craft Solo 4.4.12
PHP version
8.1
Operating system and version
No response
Database type and version
Mysql
Image driver and version
ImageOptimize with Imagick 3.7.0
Installed plugins and versions
No response
The text was updated successfully, but these errors were encountered:
What happened?
Description
I'm trying to search the library on an assets field, which throws an error (see hereunder). I've deleted and reinitiated the vendor folder, also cleared caches, indexed assets and deleted the cpresources folder, to no avail. This started to be an issue after updating from 3 to 4.
Steps to reproduce
Expected behavior
When I search in the asset window in an entry (so not in the general asset library, which works fine), I should get the result of the search
Actual behavior
Nothing happens and the javascript console throws following error:
Uncaught TypeError: Cannot read properties of undefined (reading 'hasChildren') at s.constructor.startSearching (AssetIndex.js:302:53) at s.constructor.e [as startSearching] (Base.js:76:36) at s.constructor.<anonymous> (BaseElementIndex.js:261:16) at s.constructor.<anonymous> (Base.js:153:23) at HTMLInputElement.o (jquery.js?v=1684921251:2:89408) at HTMLInputElement.dispatch (jquery.js?v=1684921251:2:43392) at v.handle (jquery.js?v=1684921251:2:41387)
Craft CMS version
Craft Solo 4.4.12
PHP version
8.1
Operating system and version
No response
Database type and version
Mysql
Image driver and version
ImageOptimize with Imagick 3.7.0
Installed plugins and versions
No response
The text was updated successfully, but these errors were encountered: