parasek / concretecms-block-builder

Block Builder is a Concrete CMS addon that lets you easily create your own custom blocks (with one optional set of repeatable entries).
MIT License
13 stars 0 forks source link

Entry's not shown and All input/tab area's shown below eachother #54

Open Mesign opened 3 years ago

Mesign commented 3 years ago

First of all, thanks you for the great plugin! I use the plugin a lot.

But now I get an error in the newest version 9.rc4 PHP 7.4.16. I have created a block with fixed item and repeating items (with multiple object (link, text area, WYSIWYG)). count(): Parameter must be an array or an object that implements Countable Fixed with newest version

When opening Block Builder in ConcreteCMS or when editing a block all tab content area's are shown below eachother. When a go to a other tab, for example: 'text for translation', and back it all shows correcty. I a created block this does not work. All input option/tabs areas are shown below eachother. The block does not show any entry. Closing the block and re-edit it and the entries are shown? Weird behavior.

Inspectmode show's the following errors:

Uncaught TypeError: $(...).concreteFileSelector is not a function
    at HTMLDivElement.<anonymous> (<anonymous>:43:25)
    at Function.each (jquery.js?ccm_nocache=d9098be7433694f6f091057e2cc8882fbb894ee0:2)
    at S.fn.init.each (jquery.js?ccm_nocache=d9098be7433694f6f091057e2cc8882fbb894ee0:2)
    at activateFileSelectors (<anonymous>:39:27)
    at activateSpecialFields (<anonymous>:92:13)
    at loadEntriesAtStart (<anonymous>:195:13)
    at HTMLSpanElement.<anonymous> (<anonymous>:201:9)
    at HTMLSpanElement.n (cms.js?ccm_nocache=d9098be7433694f6f091057e2cc8882fbb894ee0:41)
    at HTMLSpanElement.dispatch (jquery.js?ccm_nocache=d9098be7433694f6f091057e2cc8882fbb894ee0:2)
    at HTMLSpanElement.v.handle (jquery.js?ccm_nocache=d9098be7433694f6f091057e2cc8882fbb894ee0:2)
(anonymous) @ VM2148:43
GET https://xxxxxxx.xxxx/concrete/js/ckeditor/plugins/concretestyles//icons/snippet.png?t=L7CC 404

Warnings:

jquery.js?ccm_nocache=d9098be7433694f6f091057e2cc8882fbb894ee0:2 [Deprecation] Synchronous XMLHttpRequest on the main thread is deprecated because of its detrimental effects to the end user's experience. For more help, check https://xhr.spec.whatwg.org/.

Messages:

[Violation] Forced reflow while executing JavaScript took 57ms
[Violation] Added non-passive event listener to a scroll-blocking 'touchstart' event. Consider marking event handler as 'passive' to make the page more responsive. See https://www.chromestatus.com/feature/5745543795965952

alot of messages like the one above this line

[Violation] 'load' handler took 167ms

Is this something to do with the plugin or the use of bootstrap5 / Javascript

parasek commented 3 years ago

Hi, have you tried to install package from this branch: https://github.com/parasek/c5-block-builder/tree/feature/c5.9 ? It was made for c5.9.rc3 though, so I am not sure if it works flawlessly with rc4.