verbb / workflow

A Craft CMS plugin to create a workflow for publishing entries.
Other
140 stars 27 forks source link

Entry listing page not loading #198

Closed karthikkstar closed 5 months ago

karthikkstar commented 5 months ago

Describe the bug

The following pages are not working after upgrading Craft 3.9.5 to Craft 4.6.0 admin/formie/forms?site=uk admin/formie/submissions?site=uk

I noticed a console error.

Uncaught SyntaxError: Invalid or unexpected token (at submissions?site=uk:1050:32)

Craft.elementIndex = Craft.createElementIndex('verbb\\formie\\elements\\Form', $('#page-container'), { elementTypeName: 'Form', elementTypePluralName: ' Elements', context: 'index', storageKey: 'elementindex.verbb\\formie\\elements\\Form', criteria: Craft.defaultIndexCriteria, toolbarSelector: '#toolbar', defaultSource: null, defaultSourcePath: null, canHaveDrafts: false, });

Whitespace added before the elementTypePluralName: ' Elements'.

Screenshot from 2023-12-08 17-00-41

NOTE Sent notifications and settings page is working fine. Same issue for the Workflow plugin (https://github.com/verbb/workflow)

Steps to reproduce

After upgrading from Craft 3.9.5 to Craft 4.6.0

Craft CMS version

4.6.0

Plugin version

2.1.2

Multi-site?

Yes

Additional context

Amazon S3 2.0.3 AsyncQueue 3.1.1 Blitz Recommendations 2.1.3 Cloner 2.0.4 Control Panel Body Classes 2.3.0 Default Dashboard 2.0.1 Device Detect 2.0.1 Feed Me 5.3.0 Fetch 2.0.0-beta.1 Formie 2.1.2 GeoMate 2.1.1 Maps 4.0.4 Myproperties 1.8.7 Password Policy 4.1.0 Redactor 3.0.4 SEOmatic 4.0.37 Site Switcher 2.3.0 Social 3.0.0-beta.1 Sprig 2.7.3 Typed link field 2.1.5 Workflow 2.0.7

karthikkstar commented 5 months ago

Issue with the translation file. https://github.com/craftcms/cms/issues/14155 Thanks