This forum is for module development and code related questions, not general module support. For general support, use the Post installation forum.

Drupal Commerce Error in Drup 9

Hello,

It seems an update to drupal core 9.3.7 is now causing this error when clicking login or continue as guest when trying to check out. I have done some searching and haven't found an answer to this one. The error is below.

The website encountered an unexpected error. Please try again later.
Error: Class 'Drupal\commerce\EventBase' not found in include() (line 13 of modules/contrib/commerce_shipping/src/Event/ShipmentEvent.php).

Strong Customer Authentication (SCA) for SagePay(Opayo)

Hi 

Can anyone advise me on the imminent Strong Customer Authentication (SCA) policy.  We have a Drupal 9 site running Commerce using Commerce SagePay integration.

Do i need to make changes to my setup, have any patches/updates been create for the less technical Drupal administrators.  

Do i need to do anything, I have found this comment.

API Response object PDF File not able to read text Getting Encode Character api response pdf file to show modal popup

Hi Team,

I am getting the API Response object PDF File in apigee edge not able to read text, Getting Encode Character in api response and 
Note: Postman am getting the proper pdf file in response
Scenario: i need to show pdf file(with out file save) in modal popup with cancel & submit button.

Drupal 9 update yml config

Every time I added a new field to my yml configs or add a new node.type.yml to my config folder in my module, I reinstall the module to see newly added fields. It is very inefficient but I couldn't find a way to write a hook for update node type in drupal. Is there a way for drupal to see my newly added yml config files? I couldn't find a proper example or document for it.

What the comments tell Drupal?

Hello.

I have this code:

```

<?php

namespace Drupal\module_hero\Plugin\Block;

use Drupal\Core\Block\BlockBase;

/**
* It provides a block called "Example hero block".
* class HeroBlock extends BlockBase{
*
* @Block(
* id = "module_hero_hero"
* admin_label = @Translation("Example hero block")
* )
*/

}

Do we always need a <module>.module file to pass data from controller to template?

Hello.

I have this file HeroController.php:

```

<?php

namespace Drupal\module_hero\Controller;

use \Drupal\Core\Controller\ControllerBase;

Pages

Subscribe with RSS Subscribe to RSS - Module development and code questions