theming – Getting error Cannot read property of Big pipe module

I am getting an error in my drupal 8 website. Uncaught TypeError: drupalSettings.bigPipePlaceholderIds is undefined

Here is the complete error show in the developer tool in the firefox: Uncaught

TypeError: Cannot read property 'callback=Drupal%5CCore%5CRender%5CElement%5CStatusMessages%3A%3ArenderMessages&args%5B0%5D&token=_HAdUpwWmet0TOTe2PSiJuMntExoshbm1kh2wQzzzvc' of undefined
at HTMLScriptElement.bigPipeProcessPlaceholderReplacement (big_pipe.js?v=8.9.2:25)
at Function.each (jquery.min.js?v=3.5.1:2)
at S.fn.init.each (jquery.min.js?v=3.5.1:2)
at bigPipeProcessDocument (big_pipe.js?v=8.9.2:52)
at big_pipe.js?v=8.9.2:66

Chrome :

Uncaught TypeError: Cannot read property 'callback=Drupal%5CCore%5CRender%5CElement%5CStatusMessages%3A%3ArenderMessages&args%5B0%5D&token=_HAdUpwWmet0TOTe2PSiJuMntExoshbm1kh2wQzzzAA' of undefined
at HTMLScriptElement.bigPipeProcessPlaceholderReplacement (big_pipe.js?v=8.9.2:25)
at Function.each (jquery.min.js?v=3.5.1:2)
at S.fn.init.each (jquery.min.js?v=3.5.1:2)
at bigPipeProcessDocument (big_pipe.js?v=8.9.2:52)
at big_pipe.js?v=8.9.2:66

How do I translate an application that is protected and cannot be translated by AllTrans Xposed Module?

I’ve been trying to translate this application using AllTrans, yet I don’t know how to do it by extracting and recompiling the APK?

enter image description here

8 – How to check Drupal Node Access Permissions in Custom Module

I am building a custom module , where my company employees only needs to access website without login. They will enter their employee id in one form and will store that employee id in one of the cookie. When ever cookie is set or valid then employees will access my website.

I built a form and cookie is also set but in my test.module file I’ve written like this and none of the functions calling while accessing a node by anonymous users. For first time it is calling hook_node_view , when I refresh second time its opening node normally.

here is my .module file

<?php
use SymfonyComponentHttpFoundationRedirectResponse;
use DrupalCoreUrl;

/**
 * @file
 * Contains test.module.
 */

function test_node_view($node, $view_mode, $langcode)  {
global $base_url;

        
    if (!isset($_COOKIE('empid'))) {
            
            
            $response = new RedirectResponse($base_url.'/mylogin');
            $response->send();
            return; 
    }


}

function test_entity_view(array &$build, DrupalCoreEntityEntityInterface $entity, DrupalCoreEntityDisplayEntityViewDisplayInterface $display, $view_mode) {

      
    if (!isset($_COOKIE('empid'))) {
            echo 'Entity'; exit;
            $host = Drupal::request()->getHost();
            $response = new RedirectResponse($host.'/mylogin');
            $response->send();
            return; 
    }


}

function test_theme($existing, $type, $theme, $path) {

echo 'Theme'; exit;
  return array(
    'relatedlinks' => array(
      'template' => 'templates/relatedlinks',
      'variables' => array('viewresult' => NULL, 'tags' => NULL),
    ),
  );
}

function test_entity_access(DrupalCoreEntityEntityInterface $entity, $operation, DrupalCoreSessionAccountInterface $account) {
    echo 'Theme'; exit;
  // No opinion.
  return AccessResult::neutral();
}

function test_node_view_alter(array &$build, DrupalCoreEntityEntityInterface $entity, DrupalCoreEntityDisplayEntityViewDisplayInterface $display) {

echo 'Theme'; exit;
  if ($build('#view_mode') == 'full' && isset($build('an_additional_field'))) {

    // Change its weight.
    $build('an_additional_field')('#weight') = -10;

    // Add a #post_render callback to act on the rendered HTML of the entity.
    $build('#post_render')() = 'my_module_node_post_render';
  }
}

/**
 * Implements hook_preprocess_node().
 */
function test_preprocess_node(&$variables) {

echo 'Themedsfsdfsdf'; exit;
  // Get the node's content type
  $type = $variables('node')->getType();

  // Get its view mode
  $mode = $variables('view_mode');

  // Make sure we have a class array
  if (!isset($variables('attributes')('class'))) {
    $variables('attributes')('class') = ();
  }

  // Add our classes
  $variables('attributes')('class')() = 'node--type-' . $type; // ex: node--type-article
  $variables('attributes')('class')() = 'node--mode-' . $mode; // ex: node--mode-teaser
  $variables('attributes')('class')() = 'node--type-' . $type . '--mode-' . $mode; // ex: node--type-article--mode-teaser
}

None of the above functions worked for me.

how to run module or plugin functionality on everypage in drupal 8

I have drupal 8 website and I am trying to create google login onetap module but I am stuck to run on everypage and node or article.

Disable fronend in Magento 2 for a specific module for using only the Admin and the API routes

How to disable the fronend in Magento 2 for a specific module so I can use the Adminpanel and the API routes.

plotting – Get a List plot with hep of module

I just want to get a list plot for my model which I wrote with help of the module.

pp(nn_) := Module({},
  n = nn;
(*......Main code Here ....*)
ff(Solve::"svars");
 N(U /. qsol);
 ListPlot(N(U /. qsol), n, AxesLabel -> {"n", "E (J)"}))
Off(Solve::"svars");
Show(Table(pp(j), {j, 1, 5}))

It gave me the correct answer, but I couldn’t get any action.

Its the answer :

Show({ListPlot(0., 1, AxesLabel -> {"n", "E (J)"}), 
  ListPlot(3087.46, 2, AxesLabel -> {"n", "E (J)"}), 
  ListPlot(7312.15, 3, AxesLabel -> {"n", "E (J)"}), 
  ListPlot(8717.81, 4, AxesLabel -> {"n", "E (J)"}), 
  ListPlot(9210.08, 5, AxesLabel -> {"n", "E (J)"})})

I want to get a plot that evaluates all my code for n and plots it for every n.

In Roll for Shoes Prison Module, how much hp should each character have?

The “Prison Module” module by Mongoose systems (given out free in 2020) offers a variant rule for Roll For Shoes involving wounds and scars: you take a wound when you are attacked, hit by a trap, or fail a dangerous action, and if you take a second wound in the same place, it becomes a scar that cannot be healed anymore. It says that if you take as many scars as you have HP, you die. However, I cannot find in the module anywhere how much HP you have. Should I just have them roll a d6? Do I set an HP level based on their class? Or what was the intent here?

debian – Ansible package module keeps installing packages

We hava a mixture of CentOS, RedHat, Debian and Ubuntu servers all over the place. I am trying to install generic packages that have the same name for all Distros. The package module seems to work only on CentOS / Redhat boxes, but on Debian boxes it keeps on installing the package. After the script completes the packages are not installed. Rerun the script and same thing. I am running Ansible on the latest Mac OS and the version is 2.9.11

What am I missing to get this to work on Debian systems?

I know that as a workaround I can use when: ansible_distribution and determine what version I am running, but that means I have to make the script longer and type the packages twice.

## Installs Generic OS independent packages ##
- name: "Installs base packages"
  package:
    name:  "{{ item }}"
    state: present
  with_items:
    - tcpdump 
    - wget 
    - screen 

8 – How to create a link to start a visit with the “Tour” module?

I created a module to make a visit to my site.

I want an ananyme or authenticated user to be able to start the visit by simply clicking on a link.

How to create a link to start a visit with the “Tour” module ?

Here is my file :

langcode: fr
status: true
id: front
label: 'Visite générale'
module: user_tour
routes:
  - route_name: view.front.page_front
tips:
  le-menu-de-navigation:
    id: le-menu-de-navigation
    plugin: text
    label: 'Le menu de navigation'
    weight: 1
    body: "Le menu de navigation, permet de naviguer sur le site.rn<div class="icon-tour position-relative">rn  <i class="fas fa-exclamation-circle fa-lg position-absolute"></i>rn  <i class="fas fa-th-list"></i>rn</div>rnUn badge rouge apparaît sur l’icône, lorsque vous pouvez administrer la page actuelle."
    location: right
  les-notifications:
    id: les-notifications
    plugin: text
    label: 'Les notifications'
    weight: 2
    attributes:
      data-class: navbar-toggler-left
    body: "Le logo notification, permet d'accéder aux notifications liées à l'activité de votre compte (statut des commandes, message privé, ...), ainsi qu'à celle du site (suivi des groupes, suivi des boutiques, ...).</p>rn<div class="icon-tour position-relative">rn  <i class="fas fa-exclamation-circle fa-lg position-absolute"></i>rn  <i class="fas fa-comment-dots"></i>rn</div>rnUn badge rouge apparaît sur l’icône, lorsque vous avez un nouveau message."
    location: right
  le-logo:
    id: le-logo
    plugin: text
    label: 'Le logo'
    weight: 3
    attributes:
      data-class: logo
    body: "Cliquer sur le logo S1BIOSE pour revenir à la page d'accueil. Vous y trouverez toutes l'activité du site classé par ordres chronologiques.rn<div class="icon-tour position-relative">rn  <i class="fas fa-exclamation-circle fa-lg position-absolute"></i>rn  <i class="fas fa-check-circle fa-lg position-absolute"></i>rn  <div class="logo navbar-btn pull-left rounded-circle overflow-hidden timeline-notification m-0">rn    <img src="/themes/custom/bootstrap_subtheme_front_office_old/images/icon-96.png" alt="Accueil">rn  </div>rn</div>rnUn badge <i class="fas fa-exclamation-circle"></i> apparaît sur le logo, lorsque de nouvelles notifications arrivent dans votre fil d'actualité privé. Un badge <i class="fas fa-check-circle"></i> apparaît sur le logo, lorsque vous avez de nouvelles tâches importantes."
    location: bottom
  les-paniers:
    id: les-paniers
    plugin: text
    label: 'Les paniers'
    weight: 4
    attributes:
      data-class: navbar-toggler-right
    body: "Le logo panier, permet d'accéder à vos paniers d'achats.</p>rn<div class="icon-tour position-relative">rn  <i class="fas fa-exclamation-circle fa-lg position-absolute"></i>rn  <i class="fas fa-shopping-basket"></i>rn</div>rnUn badge rouge apparaît sur l’icône, lorsque vous ajoutez des produits ou des services."
    location: left
  le-menu-de-recherche:
    id: le-menu-de-recherche
    plugin: text
    label: 'Le menu de recherche'
    weight: 5
    attributes:
      data-class: navbar-toggler-second
    body: "Le menu de recherche, permet de filtrer et trier le contenu d'une page.</p>rn<div class="icon-tour position-relative">rn  <i class="fas fa-exclamation-circle fa-lg position-absolute"></i>rn  <i class="fas fa-filter"></i>rn</div>rnUn badge rouge apparaît sur l’icône, lorsque vous pouvez filtrer ou trier le contenu de la page actuelle."
    location: left
  le-bouton-plus:
    id: le-bouton-plus
    plugin: text
    label: 'Le bouton plus'
    weight: 6
    attributes:
      data-class: 'block--boutonplus .fa-circle'
    body: 'Ce bouton vous permet de créer votre compte, mais aussi des groupes, du contenu, des boutiques et des produits.'
    location: right
  trouver-de-l-aide:
    id: trouver-de-l-aide
    plugin: text
    label: 'Trouver de l''aide'
    weight: 7
    attributes:
      data-class: panel-help
    body: 'Nous mettons à votre disposition des guides, des tutoriels, une foire aux question, ... où vous trouverez facilement de l''aide.'
    location: top
  les-modes-de-contact:
    id: les-modes-de-contact
    plugin: text
    label: 'Les modes de contact'
    weight: 8
    attributes:
      data-class: panel-contact
    body: 'Vous pouvez nous contacter par téléphone, courrier postal et par e-mail.'
    location: top
  les-informations:
    id: les-informations
    plugin: text
    label: 'Les informations'
    weight: 9
    attributes:
      data-class: panel-information
    body: 'Ici vous trouverez toutes les informations juridiques concernant notre site.'
    location: top
  le-bouton-retour-en-haut:
    id: le-bouton-retour-en-haut
    plugin: text
    label: 'Le bouton retour en haut'
    weight: 10
    attributes:
      data-id: back-to-top
    body: 'Ce bouton vous permet de remonter en haut de la page.'
    location: left

How to resolve error while installing mod_logio module in Apache web server 2.2.17

We are trying to install new module “mod_logio” in Apache 2.2.17 for monitoring purposes.Apache 2.2.17 mod_logio module

However we are getting error while installing the module

We are following the below documentation for installing the module to apache : https://mahendratipale.blogspot.com/2009/07/installing-module-in-httpd-apache-on.html

While running the command : /apache2.2.17sp1-64 bin/apxs -c modules/loggers/mod_logio.c

We are getting error : apache2.2.17sp1-64/build/config_vars.mk: No such file or directory at bin/apxs line 217

We can see there is no file such as config_vars.mk in our apache .