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

Use AJAX not working when view is rendered programmatically

I have a view that is being rendered like this

$view = Views::getView('view_id');
$view->setDisplay('block_1');
$view->execute();
$render = $view->render(); 
$html = \Drupal::service('renderer')->render($render);

The $html variable is being returned in the build method of a Block

public function build() {
    return array(
      '#theme' => 'theme_template',
      '#view' => $html,
    );
  }

Then being outputted in the twig file {{ view }}

Reset password goes to wrong destination. Refreshing page redirects to login

The password reset/forgot password one-time link goes to the wrong destination when clicked from Gmail. However, when the link is copied and pasted onto the browser tab, it goes to the right location.

**Example:**

Error: Call to a member function hasPermission() on null in comment_node_update_index()

Hello,

I don't know if I'm right in this forum but I didn't find a better one. I need help on the error message above, and I'm not a developer.

Form customization with CSS

I have to customize the input form with CSS. I thought I'd do it with a small example interacting with CSS.
I currently use the bartik theme.
Compared to the normal view of drupal with vertical positioning, below the picture
https://ibb.co/gMpyyqT

I have to position them as indicated by the second image
https://ibb.co/sQ5zYvN

notice : ResponseAttachmentsProcessor->processHtmlHead() on each page

Hello

I'm coming from Drupal 8.7, through 8.9 and I'm now in 9.3

Since D 8.7 I'm repeatedly getting this error whose I like to get rid of. I see it on every page request and it pollutes very much my watchdog. It doesn't seem harming anything though.

I've not the beginning of a clue and  couldn't find anything  that can help on Google.
If someone knows how to solve it or how at least remove this error from filling up my watchdog...

How to get user's token for firebase messaging

Hi,

I need to send push notification when a content is added to a group.
I just install firebase module,
I see how to send a push message, but I can't see how to get the user's token.

Pages

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