Error with gallery configuration


#1

Hello,

I have a dataobject class with a data component “gallery”.
When I check “not editable” in the configuration for this component it is impossible to open an object of that class.
It just does nothing, not even log anything.

Using Pimcore 5.1.1


#2

Just pushing the thread


#3

Works for me in 5.6.0.


#4

Hi,

like I said, I am using 5.1.1
Unfortunately an update is no possible solution for us.

In al versions higher than 5.1.1 our EventListener is not functional and it is not possible to implement a new one. I already opened a thread for this problem, but there was no solution for it.

Is there no way to “repair” this component in 5.1.1?


#5

Did you check javascript console if it logs anything?
I would still try to upgrade. For listener thing look at documentation https://pimcore.com/docs/5.x/Development_Documentation/Extending_Pimcore/Event_API_and_Event_Manager.html. Just add to services.yml and create the listener.


#6

I’ll try that.

For the listener:
I did exactly this but my pimcore installation just seems to ignore it.


#7

The following was logged:

TypeError: “field.getLayoutShow is not a function”
getRecursiveLayout http://OurDomain.local/admin/misc/script-proxy?scripts=minified_javascript_core_ac546257ee2290703aa729d0b394d391.js&_dc=180:48673:31
getRecursiveLayout http://OurDomain.local/admin/misc/script-proxy?scripts=minified_javascript_core_ac546257ee2290703aa729d0b394d391.js&_dc=180:48556:40
getRecursiveLayout http://OurDomain.local/admin/misc/script-proxy?scripts=minified_javascript_core_ac546257ee2290703aa729d0b394d391.js&_dc=180:48556:40
getRecursiveLayout http://OurDomain.local/admin/misc/script-proxy?scripts=minified_javascript_core_ac546257ee2290703aa729d0b394d391.js&_dc=180:48556:40
getLayout http://OurDomain.local/admin/misc/script-proxy?scripts=minified_javascript_core_ac546257ee2290703aa729d0b394d391.js&_dc=180:82219:25
getTabPanel http://OurDomain.local/admin/misc/script-proxy?scripts=minified_javascript_core_ac546257ee2290703aa729d0b394d391.js&_dc=180:82576:20
addTab http://OurDomain.local/admin/misc/script-proxy?scripts=minified_javascript_core_ac546257ee2290703aa729d0b394d391.js&_dc=180:82520:46
getDataComplete http://OurDomain.local/admin/misc/script-proxy?scripts=minified_javascript_core_ac546257ee2290703aa729d0b394d391.js&_dc=180:82428:13
bind http://OurDomain.local/pimcore/static6/js/lib/prototype-light.js?_dc=180:261:28
callback http://OurDomain.local/pimcore/static6/js/lib/ext/ext-all.js?_dc=180:22:65413
onComplete http://OurDomain.local/pimcore/static6/js/lib/ext/ext-all.js?_dc=180:22:174169
onStateChange http://OurDomain.local/pimcore/static6/js/lib/ext/ext-all.js?_dc=180:22:173768
bind http://OurDomain.local/pimcore/static6/js/lib/ext/ext-all.js?_dc=180:22:55296