verbb / hyper

A Craft CMS plugin for managing links, focusing on user experience.
Other
24 stars 15 forks source link

Plugin not working with Craft 5.0.5 #144

Closed pascalminator closed 6 months ago

pascalminator commented 6 months ago

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

engram-design commented 6 months ago

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

pascalminator commented 6 months ago

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

engram-design commented 6 months ago

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.

pascalminator commented 6 months ago

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 commented 6 months ago

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.

engram-design commented 6 months ago

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?

pascalminator commented 6 months ago

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.

engram-design commented 6 months ago

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

pascalminator commented 6 months ago

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.

engram-design commented 6 months ago

Interesting, and thanks for the insight!