Language switcher doesn’t work

I have a fresh D8.64+Bootstrap 3 installation, after enable multilingual modules, add languages and config language dection and content/menu translation, I placed the defualt language switcher to the primary sidebar. Then I translated some contents and menus to other languages. Strangely, when I switch languages, nothing happened, even no changes in the admin interface (only the default English)! I changed the theme, changed the language detection order, cleared cache…it was the same. I downloaded a dropdown language block, it even doesn’t show up when I place it on the sidebar (but can show in bartik theme). I searched on internet for hours, but no luck. Could anybody have clue of solution?

Language switcher not working

Is it possible to prevent the access.txt from being re-created?

I have been using EasyPHP (Devserver 17.0) for development tests, and I just discovered that the file size of the access.txt has become 6.59 GB. It contains records of every file which was loaded.

I don't really want to know what files were loaded. But after I deleted it, it is re-created when the server restarts.

Is it possible to prevent the access.txt from being re-created?

bcrypt@3.0.3 install: `node-pre-gyp install –fallback-to-build` bcrypt 3.0.3

Hello i tried everything to solve this issue, nothing worked. im trying to install bcrypt and it drops this meesage

bcrypt@3.0.3 install: node-pre-gyp install --fallback-to-build 

the log of the issue (full log at https://github.com/kelektiv/node.bcrypt.js/issues/692) :

1198 warn rest-shop@1.0.0 No repository field.  1199 verbose stack Error: bcrypt@3.0.3 install: `node-pre-gyp install --fallback-to-build`  1199 verbose stack Exit status 1 1199 verbose stack     at EventEmitter.<anonymous> (C:\Program Files\nodejs\node_modules\npm\node_modules\npm-lifecycle\index.js:301:16) 1199 verbose stack     at EventEmitter.emit (events.js:182:13)  1199 verbose stack     at ChildProcess.<anonymous> (C:\Program Files\nodejs\node_modules\npm\node_modules\npm-lifecycle\lib\spawn.js:55:14)  1199 verbose stack     at ChildProcess.emit (events.js:182:13)  1199 verbose stack     at maybeClose (internal/child_process.js:962:16)  1199 verbose stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:251:5)  1200 verbose pkgid bcrypt@3.0.3  1201 verbose cwd C:\Users\user\Desktop\Programacion\Nodejs\node-rest-shop  1202 verbose Windows_NT 10.0.17134  1203 verbose argv "C:\Program Files\nodejs\node.exe" "C:\Program Files\nodejs\node_modules\npm\bin\npm-cli.js" "install" "bcrypt"  1204 verbose node v10.14.2  1205 verbose npm  v6.4.1 1206 error code ELIFECYCLE  1207 error errno 1  1208 error bcrypt@3.0.3 install: `node-pre-gyp install --fallback-to-build`  1208 error Exit status 1 1209 error Failed at the bcrypt@3.0.3 install script.  1209 error This is probably not a problem with npm. There is likely additional logging output above. 1210 verbose exit [ 1, true ] 

package.json:

"dependencies": { "bcryptjs": "^2.4.3", "body-parser": "^1.18.3", "express": "^4.16.4", "mongoose": "^5.4.0", "morgan": "^1.9.1", "multer": "^1.4.1", "request": "^2.88.0" }, 

VERSIONS:

npm: 6.4.1

node: v10.14.2

How to access the fields of a custom node variable in a custom Rules event?

I have created a custom Rules event, following the instructions in https://drupal.stackexchange.com/a/215857/16550 The event provides a custom node variable:

function MYMODULE_rules_event_info() {   return array(     'my_event' => array(       'label' => t('My custom event'),       'group' => t('My group'),       'module' => 'MYMODULE',       'variables' => array(         'my_variable' => array('type' => 'node', 'label' => t('This is a node')),       ),     ),   ); } 

As expected, the variable my-variable shows up in the available tokens in a new Rule. I would now like to modify a field called Integer of the my-variable node, so I tried adding the conditions

  • Entity is of type: Quiz result answer
  • Entity has field: field_integer

However, I still cannot access my-variable:field_integer in any Rules actions. How can I do that?

Note: As the first Rules condition suggests, my variable my-variable is actually a Quiz result answer, provided by the Quiz module. I don’t think it is related to the problem, but one never knows for certain…

docker: error parsing HTTP 403 response body: invalid character ‘

I’ve just installed the Docker version 18.09.0, build 4d60db4 on windows 10. but (as the docker tutorial step) when I run the:

docker pull hello-world 

I face with this:

Using default tag: latest Error response from daemon: error parsing HTTP 403 response body: invalid character '<' looking for beginning of value: "<html><body><h 1>403 Forbidden</h1>\nSince Docker is a US company, we must comply with US export control regulations. In an effort to comply with thes e, we now block all IP addresses that are located in Cuba, Iran, North Korea, Republic of Crimea, Sudan, and Syria. If you are not in o ne of these cities, countries, or regions and are blocked, please reach out to https://support.docker.com\n</body></html>\n\n" 

I can’t find the problem and I’m very new to docker. any help would be appreciated.