Preventing redirection to www.xyz.com

I am running a multisite Drupal 8.5.3 installation on Apache under FreeBSD and I'm finding that when you access http://xyz.com the browser is instructed to redirect to http://www.xyz.com. I don't want this to occur. The really strange thing is that this behaviour does not occur when you access https://xyz.com

Enviroment variables (settings.php)

I am trying to set a couple of enviroment variables in settings.php and get them in mymodule.module. Here is my harcoded code:

$account_sid = '123456';
$auth_token = '78910';
// In production, these should be environment variables.

I have placed in the settings.php:

$settings['event_account_sid'] = '123456';
$settings['event_auth_token'] = '78910';

and then I changed the code in mymodule.module to:

use Drupal\Core\Site\Settings;

$account_sid;
$auth_token;

Updating database fails

Im been trying to update my database using the web UI. Im running 8.5.3 

I have 8 pending updates as below

Performance: huge amount of nodes vs comments

I am developing a booking directory website. Under each vendors'/store's profile(that is a node) everybody will be able to post a review. What is the better approach for this if we consider that the site will grow a lot in the future and will have a huge amount of reviews? What could cause less database queries, comments as reviews or nodes with a reference field to the node?

Fatal error: Call to a member function getContextDefinitions()

I've started getting an error as follows when trying to clear all caches or run update.php

Fatal error: Call to a member function getContextDefinitions() on boolean in /var/sites/n/mysite/public_html/modules/services/src/Routing/ServiceEndpoint.php on line 27

This has started since uninstalling a few modules (BAT and BEE plus dependencies).  Any ideas?

Strange block visibility issue

Hi there

I'm fairly new to Drupal 8 but have been using Drupal since version 4 so am not a total n00b ... but i have run in to a very strange issue mid way through a build.

I'm currently on Drupal 8.5.3.  I downloaded a premium theme to start a project (gavias tico).  Over the build time i upgraded from 8.5.1 to 8.5.2 and 8.5.2 to 8.5.3 using composer - didn't seem to have any errors.

Pages

Subscribe with RSS Subscribe to RSS - Drupal 8.x