hyper icon indicating copy to clipboard operation
hyper copied to clipboard

Plugin not working with Craft 5.0.5

Open pascalminator opened this issue 1 year ago • 3 comments

Describe the bug

After updating Craft to 5.0.5, Hyper no longer works. There is nothing showing in the Hyper fields when editing pages, only the title. I had to downgrade to Craft 5.0.4 to get it working again.

Steps to reproduce

  1. Update Craft to 5.0.5

Craft CMS version

5.0.5

Plugin version

2.0.0-beta.8

Multi-site?

No

Additional context

No response

pascalminator avatar Apr 25 '24 18:04 pascalminator

Seems to be all okay on my end! Any JS errors in the developer console? Cleared your caches?

engram-design avatar Apr 27 '24 04:04 engram-design

I tried to clear all caches and it still does the same problem. I checked the console and there is no error. Weirdly enough, this problem also happens with an other Verbb plugin too: the exact same problem is happening with Icon Picker when I update to 5.0.5 but resolves when I downgrade to 5.0.4.

Here's an example with Hyper on Craft 5.0.4: image

And after updating to Craft 5.0.5: image image

pascalminator avatar Apr 29 '24 14:04 pascalminator

So sounds like something related to Vue or Vite if Icon Picker is also having an issue, as both are Vue-based fields.

I've been trying to replicate this, but no luck so far. Something unique to your install might be causing this, but still looking into it.

engram-design avatar May 01 '24 11:05 engram-design

You're right, I just pushed the update in production and it is working fine. I don't know why this is happening in my dev environment but it looks like it is more my problem than yours at this point.

pascalminator avatar May 02 '24 15:05 pascalminator

hyper-xxx.js and hyper-xxx.css are not loading at all in dev: image

But they are in prod: image

Something changed in Craft 5.0.5, because it is working perfectly fine in any previous version <= 5.0.4.

pascalminator avatar May 02 '24 17:05 pascalminator

Interesting that it's happening on your dev environment and not on production. Could almost be a race condition somewhere/somehow. Anything about your dev environment worth noting?

engram-design avatar May 03 '24 04:05 engram-design

My dev environment is running on Wampserver 3.3.5 (yes, I know DDEV is the recommended tool but I never encountered any issues with my setup before this and I've been working with Craft since 2015) on Windows 11 with PHP 8.2, MySQL 8.3 and Apache 2.4.54.2. I tried with different versions of PHP and Apache without any luck.

Since my production environment running on CloudLinux does not have this issue and you are not able to reproduce it, I have a theory: maybe the problem is related to case sensitivity somewhere. Windows is case sensitive, but MacOS and Linux aren't.

pascalminator avatar May 03 '24 13:05 pascalminator

No stress, I use MAMP 😄 But nice to know you're on Windows, I'll spin up an example install just in case.

engram-design avatar May 03 '24 13:05 engram-design

So... I found the problem with a friend. It is Craft related and not a bug from your plugin. In 5.0.5 they changed this: image

and if we go back it fixed the problem with Wamp: image

Anyway, I finally decided to switch to DDEV a few days ago because I feel like i'll encounter more of these weird problems if I keep using Wamp.

pascalminator avatar May 10 '24 13:05 pascalminator

Interesting, and thanks for the insight!

engram-design avatar May 10 '24 13:05 engram-design