Closed (fixed)
Project:
Commerce Stripe
Version:
8.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
14 Jun 2023 at 18:10 UTC
Updated:
5 Feb 2024 at 03:54 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #4
elberComment #5
kiwad commentedThat was fast :)
I've tested with normal test card and insufficent funds test card it removes
User warning : The following theme is missing from the file system: classy dans Drupal\Core\Extension\ExtensionPathResolver->getPathname()
and
Deprecated function : dirname(): Passing null to parameter #1 ($path) of type string is deprecated dans Drupal\Core\Extension\ExtensionPathResolver->getPath()
in /checkout/{id}/review and checkout/{id}/order_information
Comment #6
johnpitcairn commentedComment #7
grimreaperHi,
Thanks for the MR, I encountered the same issue and it fixed it.
Comment #8
grimreaperUploading patch for easier Composer usage.
Comment #9
c_archer commentedPatch works for me on D10
Comment #10
rszrama commentedI've noticed this issue during testing in a clean Commerce Kickstart 3.x instance as well.
Comment #11
vmarchuk@rszrama
I also noticed that we lost styles for error messages on D10. See the attached screenshot for more information.

So it seems we need to create our own styles if we don't want to have dependencies on other themes or modules.
Also, I see a dependency on "classy/messages" in the commerce_braintree module (we need to create an issue there), so maybe it makes sense to create global styles?
Comment #12
rszrama commentedOk, since this change simply removes styling that should be there, it's not an appropriate fix. Instead, we've created an issue against Commerce Core for defining a replacement library that this module can then be updated to use: #3385414: Provide a basic replacement for Classy's messages library in the Payment module
Comment #14
vmarchukOpened MR with the fixes. Since we don't know in which version of commerce the payment_messages library will be available, we need to add it dynamically (check if it exists and then add it).
Comment #15
rszrama commentedAre we sure the string of
../../../there on image URLs is safe? Does core use that same pattern? Just concerned that we can't actually guarantee the module's placement in a directory structure and should probably copy images to our module instead.Comment #16
vmarchuk@rszrama
Yes, you're right. I updated the MR here https://www.drupal.org/project/commerce/issues/3385414#comment-15295716
Comment #17
sagesolutions commentedAdding the styling is now completed in the main commerce module, specifically https://www.drupal.org/project/commerce/issues/3385414#comment-15298522
The patch #8 fixes the classy dependency error. Alternatively, MR #26 fixes the error too. Both fixes simply remove the dependency.
Comment #18
bserem commented+1, this takes care of all the warnings
Comment #19
liliplanet commentedAwesome thank you #8 removes the error
Comment #20
leducdubleuet commentedNow that the fix in the issue #3385414 has landed in Commerce core 2.37, it would be great to have a new release including this fix please.
Thank you!
Comment #22
c_archer commentedComment #24
tomtech commented