venveo / craft-bulkedit

Bulk edit any set of elements
MIT License
24 stars 6 forks source link

`Craft.BulkEditModal is not a constructor` when attempting to edit #44

Open ctangney-tulip opened 2 years ago

ctangney-tulip commented 2 years ago

Describe the bug When selecting the "Bulk Edit" option from the dropdown, nothing happens. The following error is instead ejected to the developer console:

Uncaught TypeError: Craft.BulkEditModal is not a constructor

Steps To Reproduce

  1. Select any number of supported types
  2. Select "Bulk Edit" from the Gear / Settings dropdown
  3. Observe that the modal is not displayed
  4. Observe that an error is written to the console.

Screenshots If applicable, add screenshots to help explain your problem.

Environmental Info

Additional context Add any other context about the problem here.

Mosnar commented 2 years ago

Could you try updating to at least Craft 3.7.47.1? I believe this is related to craftcms/cms#11555

ctangney-tulip commented 2 years ago

Unfortunately, we are currently at the highest supported version for one of our critical plugins.

Mosnar commented 2 years ago

Are you sure? Going from 3.7.46 to 3.7.x really shouldn't impact other plugins.

Regardless, it doesn't look like that bug existed prior to 3.7.47, so it's probably not that issue anyway. Could you try clearing your caches, especially the cpresources cache? I just tried the plugin on 3.7.46 and didn't have any issues.

A couple other questions if that doesn't work:

  1. What type of element are you editing?
  2. Are you a site admin in the CMS?
  3. Do you have any other plugins that are modifying the element index that could be interfering?
  4. Do you see any errors in your logs when you try load the page and try to access the bulk edit modal (web.log or phperrors.log)?
ctangney-tulip commented 2 years ago

I will have to take another look at the supported versions for our plugin list.

Clearing all caches did not seem to have any affect.

  1. Thus far, I have tried to bulk-edit Entries and Assets. I can take a look at the other supported types as well later this afternoon.
  2. I am logged in as site admin.
  3. I have included a full list of plugins below.
  4. There are no obvious errors in the web.log or php log.

Full list of plugins / versions:

"adigital/cookie-consent-banner": "^1.2",
"craftcms/cms": "3.7.46",
"craftcms/feed-me": "4.5.3",
"craftcms/redactor": "2.10.9",
"dolphiq/redirect": "^1.1",
"hillholliday/craft-user-manual": "2.1.2",
"jimstrike/craft-intercom-messenger": "^1.0",
"mmikkel/reasons": "^2.3",
"nystudio107/craft-seomatic": "^3.3",
"sebastianlenz/linkfield": "1.0.25",
"spicyweb/craft-embedded-assets": "2.11.2",
"stripe/stripe-php": "^7.79",
"studioespresso/craft-scout": "2.7.2",
"topshelfcraft/wordsmith": "3.3.2",
"venveo/craft-bulkedit": "2.0.6",
"verbb/cloner": "^1.2",
"verbb/icon-picker": "^1.1",
"verbb/smith": "1.2.3",
"verbb/super-table": "2.7.2",
"verbb/tablemaker": "dev-craft-3 as 3.0.1",
"vlucas/phpdotenv": "^2.4.0",
"yiisoft/yii2-redis": "2.0.8"