- Issue created by @thanosdk
What are CTA buttons?
I can't tell if "custom CTA buttons" means you have custom code. But if you do you should show it for us to be able to provide any support.
Have you looked at what the browser console is logging?
CTA means Call to Action, I suspect its due to jquery.cookie replaced with js-cookie. Before I upgrade to D10, upgrade_status reports:
The 'global' library is depending on a deprecated library. The core/jquery.cookie asset library is deprecated in Drupal 9.0.0 and will be removed in Drupal 10.0.0. Use the core/js-cookie library instead.
So I change in my module(s) core/jquery.cookie to core/js-cookie and upgrade_status does not complain anymore.
I am able to upgrade to D10 without any problems but my buttons or popups dont work anymore.
I have for example a button that when you click on it it shows a webform where you put your name and email and submit it.
Those webforms wont open once in D10.
- Status changed to Postponed: needs info
11 months ago 8:51pm 1 March 2024 Below I am linking two articles about the deprecation. You probably must change your custom code too:
https://www.drupal.org/node/3104677 →
https://www.drupal.org/node/3322720 → Note, the js-cookie library is deprecated in Drupal 10.Please read comment #2 above again and get all the information for support.
Thanks for helping.
The error I got in console is: $.cookie is not a functionthe js-cookie library is deprecated in Drupal 10 indeed, but the module(s) depedencies had to be changed to js-cookie to be able to upgrade to D10.
If its deprecated, what library do I have to use?
- Status changed to Fixed
11 months ago 1:17pm 2 March 2024 Finally fixed it, I had to change my module to point to the correct js.
js:
https://cdnjs.cloudflare.com/ajax/libs/jquery-cookie/1.4.1/jquery.cookie...Automatically closed - issue fixed for 2 weeks with no activity.