Conversation
supportHi there, Thanks for the great plugin. It seems that if I add a File type field to a CPT I cannot add a file when editing a post of that type. Description: Click blue arrow button to select a file for the field Click file I want from the WP file chooser Click the button “Choose file” The file field is not updated and I get a JS console error: caught TypeError: Cannot read properties of undefined (reading 'url') at h.Collection.<anonymous> (backend.js:14:53646) at p (backbone.min.js?ver=1.4.1:2:3644) at f (backbone.min.js?ver=1.4.1:2:3497) at a (backbone.min.js?ver=1.4.1:2:692) at e.trigger (backbone.min.js?ver=1.4.1:2:3380) at h.Collection._onModelEvent (backbone.min.js?ver=1.4.1:2:13944) at p (backbone.min.js?ver=1.4.1:2:3700) at f (backbone.min.js?ver=1.4.1:2:3508) at a (backbone.min.js?ver=1.4.1:2:692) at e.trigger (backbone.min.js?ver=1.4.1:2:3380) This looks like a bug. I am using the latest version 4.0.3. Any tips? Thanks, Dom
Hi @dealespaloit thanks for using this plugin <3 After some tests we can’t replicate the bug, it could be compatibility with 3rd party plugins/themes. If the project is in a staging/testing environment (not production) create temporary credentials and send url and credentials using the “Send suggestion” form on the page https://totalpress.org/support If not, we need more details: WordPress version, active theme + version, active plugin list + version.
Unfortunately I don’t have a site you can access. I will continue to debug. I am unsure, but the styling and behaviour of the File Upload field also looks incorrect on when the field is used in a Repeater. Can you confirm this?
Version 4.0.4 fixes file field styling problems inside the repeater. I suggest you deactivate all the plugins and try if you still receive them in the console, then proceed by reactivating them one by one, if possible make a video and send us the link. Thanks for the support.
Thank you for the update with the styling fixes. It is looking much better! I have tried a fresh version of WP with the majority of my plugins and the File Upload is working correctly there. I am attempting to work out why it is failing on the main site I am working on. Is there a way I could try with the unminified version of the backend.js file to get more information about what is happening?
Hi @dealespaloit We can’t share the source files, it looks like a compatibility issue. Could you provide list of active plugins (and version), active theme (and version) and WordPress version?
Hi @totalpressorg It looks like the issue is that the image I am selecting does not have a size “thumbnail”… (ie. t.sizes.thumbnail does not exist) i = !!t.sizes && t.sizes.thumbnail.url I am not sure if all images would have a thumbnail, if so then the issue may be in the configuration of the site somewhere. If some images might not have a thumbnail, then it may be better to update the code to use the full size if there is no thumbnail. I am using version 6.2.2 of the Core, and the following plugins: Custom Dashboard & Login Page – AGCA – Version 7.1.5 Custom PHP settings – Version 1.4.5 Custom post types – Version 4.0.4 Force First and Last Name as Display Name – Version 1.2.1 Force Login – Version 5.6.3 Gitium – Version 1.0.5 PublishPress Capabilities – Version 2.8.1 W3 Total Cache – Version 2.3.2 WP BASIC Auth – Version 1.1.4
Hi @dealespaloit We were unable to reproduce the problem. The new version 4.0.5 adds a check on the thumbnail value (which for images is always present in all our tests), it should work. Dont forget you review 😀
Hi @dealespaloit thanks for using this plugin <3 After some tests we can’t replicate the bug, it could be compatibility with 3rd party plugins/themes. If the project is in a staging/testing environment (not production) create temporary credentials and send url and credentials using the “Send suggestion” form on the page https://totalpress.org/support If not, we need more details: WordPress version, active theme + version, active plugin list + version.
Unfortunately I don’t have a site you can access. I will continue to debug. I am unsure, but the styling and behaviour of the File Upload field also looks incorrect on when the field is used in a Repeater. Can you confirm this?
Version 4.0.4 fixes file field styling problems inside the repeater. I suggest you deactivate all the plugins and try if you still receive them in the console, then proceed by reactivating them one by one, if possible make a video and send us the link. Thanks for the support.
Thank you for the update with the styling fixes. It is looking much better! I have tried a fresh version of WP with the majority of my plugins and the File Upload is working correctly there. I am attempting to work out why it is failing on the main site I am working on. Is there a way I could try with the unminified version of the backend.js file to get more information about what is happening?
Hi @dealespaloit We can’t share the source files, it looks like a compatibility issue. Could you provide list of active plugins (and version), active theme (and version) and WordPress version?
Hi @totalpressorg It looks like the issue is that the image I am selecting does not have a size “thumbnail”… (ie. t.sizes.thumbnail does not exist) i = !!t.sizes && t.sizes.thumbnail.url I am not sure if all images would have a thumbnail, if so then the issue may be in the configuration of the site somewhere. If some images might not have a thumbnail, then it may be better to update the code to use the full size if there is no thumbnail. I am using version 6.2.2 of the Core, and the following plugins: Custom Dashboard & Login Page – AGCA – Version 7.1.5 Custom PHP settings – Version 1.4.5 Custom post types – Version 4.0.4 Force First and Last Name as Display Name – Version 1.2.1 Force Login – Version 5.6.3 Gitium – Version 1.0.5 PublishPress Capabilities – Version 2.8.1 W3 Total Cache – Version 2.3.2 WP BASIC Auth – Version 1.1.4
Hi @dealespaloit We were unable to reproduce the problem. The new version 4.0.5 adds a check on the thumbnail value (which for images is always present in all our tests), it should work. Dont forget you review 😀