- Issue created by @trickfun
- Status changed to Postponed: needs info
over 1 year ago 11:12pm 26 June 2023 - Status changed to Closed: works as designed
over 1 year ago 11:58pm 26 June 2023 I am closing this as it's the general update process of drupal when caches aren't cleared and there are changes to dependency injection.
Somehow the old code is cached. There is nothing on line 11 in rc1.
Feel free to dig in and find the problem, I am unable to get to my computer for the next week or so.
- 🇺🇦Ukraine proweb.ua
I update the commerce_ajax_atc module via composer, after that I clear the cache:
composer update
drush crand you get this error
- Status changed to Postponed: needs info
over 1 year ago 1:53pm 27 June 2023 For now you can try
https://www.drupal.org/project/commerce_ajax_atc/issues/3364372#comment-... 🐛 Ajax error after update commerce cart FixedCan't dig into this for at least a week.
- 🇺🇦Ukraine proweb.ua
Drupal 9.5.9
PHP 8.1.20
commerce 8.x-2.36Before commerce_ajax_atc 1.0.0-rc1 update, I used commerce_ajax_atc 1.0.0-beta4 + patch https://www.drupal.org/project/commerce_ajax_atc/issues/3364372#comment-... 🐛 Ajax error after update commerce cart Fixed
+ https://www.drupal.org/project/commerce_ajax_atc/issues/3229311#comment-... ✨ Ajax feature on cart page Needs workand there was no error
Yeah, this is strange. All that was introduced was the dependancy from commerce cart subscriber update.
See here
https://git.drupalcode.org/project/commerce/-/commit/2ff4881ab4636efbbb8...The error is still from beta though, as there is no code on line 11 rc1 in the event subscriber.
I'm on vacation, looking at this with a phone, so best bet might be to composer remove the module, then composer require a fresh.
As with all updates, test locally.
Actually make sure you remove those patches first. That might be part of the problem.
- 🇺🇦Ukraine proweb.ua
for commerce_ajax_atc 1.0.0-rc1 i didn't use the first patch
Again, somehow the old subscriber is cached in your system. No code lives on line 11 in the event subscriber in rc1.
I don't have any other solutions atm than what I already mentioned.
It would be helpful to have the entire error, and also the entire results from composer update.
Thanks
- 🇮🇹Italy trickfun
I don't know why but i was 2 time EntityTypeManagerInterface
use Drupal\Core\Entity\EntityTypeManagerInterface;
and 2 times
/**
* The entity type manager.
*
* @var \Drupal\Core\Entity\EntityTypeManagerInterface
*/
protected $entityTypeManager;in AjaxCartEventSubscriber.
i remove module and download again with composer and now it works. Sometimes this happens if you update with a patch that is fixed in the new version
- Status changed to Closed: works as designed
over 1 year ago 7:42pm 27 June 2023