Closed (fixed)
Project:
radix
Version:
8.x-4.x-dev
Component:
Miscellaneous
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
15 Jan 2021 at 20:20 UTC
Updated:
5 May 2021 at 08:59 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
jcmartinezThis warning isn't caused by smart_ip; this warning comes from a recent update of the components module. In the case reported, the module components probably got updated while adding the smart_ip module or after performing a `composer update`.
I'm seeing the same warning on D8.9.12.
I'm actually seeing the warning twice because I have a sub-theme of Radix, in addition to Radix itself.
Comment #3
rar9 commentedThanks, good to know I'm not alone. Any way to fix this?
Comment #4
jcmartinezI just pushed some code to the branch 3193046-components-api; however, my fix isn't good. After renaming the component key in my commit as indicated at https://www.drupal.org/project/components/issues/3091762, I get a following error:
I hope someone smarter than me can take it from here.
By the way, in my commit, I also made a small change to the composer.json file to ensure that the right version of the components module is required.
Comment #5
lunk rat commentedSame issue here. I tried editing my subtheme (and also radix.info.yml) to use the yml keys as outlined in https://www.drupal.org/project/components/issues/3091762 but this breaks my theme because it can't find components twig files.
Comment #6
rar9 commentedComment #7
lunk rat commentedNot a critical issue because it's only a deprecation warning and everything still works.
Comment #8
begrafx commentedI'm encountering this too... to tie everything together:
Attempted to update via Drush
Google search on this error message lead me here.
Comment #9
kevinfunkOld way
New way
Comment #10
kevinfunkComment #11
rar9 commented@kevinfunk
your patch doesn't seam to work .. If applied i still see the warning .... or do I need to update components?
Comment #12
kevinfunk@Rar9 The patch only updates the warning for Radix. You will also need to update your subtheme.
In your subtheme edit RADIX_SUBTHEME_MACHINE_NAME.info.yml
replace
with
Update RADIX_SUBTHEME_MACHINE_NAME with the machine name of your subtheme.
The warning should have the name of the theme that is causing the warning.
If you are seeing the warning, you have the latest version of Components.
Comment #13
rar9 commentedThanks , that helped to remove the composer drush up error. :-)
Comment #14
philyThanks, patch #9 works using Drupal 8.9.13 and Radix 8.x-4.10
PS: don't forget to edit your custom subtheme as well (RADIX_SUBTHEME_MACHINE_NAME.info.yml file)
Comment #15
lunk rat commented#9 worked for me against 8.x-4.10 on a D9 instance. Marking RTBC.
Comment #16
inst commentedHi,
do I have to use the patch in #9 or can I do this manually too?
Message in Drupal 9:
Components 8.x-1.x API is deprecated in components:8.x-2.0 and is removed from components:3.0.0. Update the xyz.info.yml file to replace the component-libraries.[namespace].paths data with components.namespaces.[namespace]. See https://www.drupal.org/node/3082817
And will the solution be part to the next radix release?
thanks!
Comment #18
kreatil commented+1
Comment #22
ckng