Skip to content
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

[3.8.10]: Unable to add Matrix blocks to entries #13177

Closed
emmaswann opened this issue May 10, 2023 · 6 comments
Closed

[3.8.10]: Unable to add Matrix blocks to entries #13177

emmaswann opened this issue May 10, 2023 · 6 comments

Comments

@emmaswann
Copy link

What happened?

Description

Following updating to 3.8.10 today, we are unable to add Matrix blocks to an entry.

Steps to reproduce

Create or open entry, click on 'add a block' - block should appear.

Actual behavior

Create or open entry, click on 'add a block' - block does not appear.

Craft CMS version

3.8.10

PHP version

7.4.3

Operating system and version

Linux 5.4.0-147-generic

Database type and version

MySQL 8.0.32

Image driver and version

Imagick 3.4.4 (ImageMagick 6.9.10-23)

Installed plugins and versions

Plugins
Amazon S3 1.3.2
Asset Usage 2.3.1
AsyncQueue 2.3.0
Blitz 3.12.9
Bulk Edit 2.0.6
Cloudflare 1.1.0
Control Panel Nav 3.1.0
Docs 2.1.2
Feed Me 4.6.3.1
ImageOptimize 1.6.50
Json Client 1.0.3
Logs 3.0.5
Minify 1.2.11
Redactor 2.10.12
Redactor Custom Styles 3.0.4
Redirect Manager 1.1.1
Relabel 2.0.2
Retcon 2.6.1
Retour 3.2.10
Schedule 0.3.2
shopify 2.2.0
Tags 1.0.9
Typogrify 1.1.20
Views Work 1.3.0.7

@i-just
Copy link
Contributor

i-just commented May 10, 2023

Hi, thanks for reporting.

I can see this is affecting Craft 3 and 4, and it only happens if you have enough block types to cause the buttons to fold into a menu (“add a block” instead of a list of blocks visible straight away). I am looking into it.

@yingban
Copy link

yingban commented May 10, 2023

@i-just
Matrix blocks are also not propagated correctly when an entry is translated/enabled to another website.
I have the propagation method set to "save blocks to other sites"

@DenyEs
Copy link

DenyEs commented May 10, 2023

I am having the same issue when you have a lot of blocks and it hides behind 'click to reveal blocks' button. Tested on 4.4.9 and it works. It breaks after an update to 4.4.10

@brandonkelly
Copy link
Member

Sorry about this. Craft 3.8.10.2 and 4.4.10.1 are out with a fix.

@emmaswann
Copy link
Author

emmaswann commented May 10, 2023 via email

@jamesmacwhite
Copy link
Contributor

I'm getting the reverse problem since updating to 3.8.10.2, if a matrix field has several block types but before the amount before it collapses into an add a block menu, clicking on any block doesn't work.

Uncaught TypeError: Cannot read properties of undefined (reading 'on')
at s.constructor.init (MatrixInput.js:122:36)
at s.constructor.constructor (Base.js:20:15)
at s.constructor (Base.js:32:21)
at new s.constructor (Base.js:32:21)
at HTMLDocument. (922094-restaurant?site=fletchers:941:19)
at l (jquery.js?v=1684140902:2:30361)
at c (jquery.js?v=1684140902:2:30663)
at nrWrapper (922094-restaurant?site=fletchers:6:29217)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

6 participants