Moved D8 site and admin can't log in

I know this has been asked many time before, but now it's my turn. I successfully moved a Drupal 8 site from a working sub directory to the main. I had captcha, and recaptcha working but I disabled them. I think I've tried all the suggestions so far but when I try to log in as admin 1 I get "You are not authorized to access this page."

Some pages rendered incorrectly when accessed from Google search

This I have come to think - Some pages are rendered incorrectly when accessed from Google search.... and I don't know what to do... they can be accessed as a simple url or links on-site without such problems....

So... Today I tried Drupal search module... and I was not happy.... I went to Google and asked some other Search Engine... and Google has it - Google's Custom Search Engine....

Populate the value in an edit form

HI I have a function as follows that returns a form with all the values populated, What I have been doing is then hiding the fields I don't want but was wondering if there is a way to just display the fields I do instead, can anyone assist please, for example how would I display just the title field.

thanks

Field update via API and cache problems

Hello

Whenever a user loads the homepage of my website, an API call retrieves values ​​and updates fields in the database.

But when my user is not logged in, the value that appears on my home page is the one that is cached, so the old one.

What is the right method for:
- recover a value by an API (we built a custom module for that)
- update the data in the backend of drupal by php scripts
- display the correct value without the cache being a problem

We do not have this problem when a user has logged on to the site with his account.

Search doesn't work for words in Strong or Emphasized

Hello,

For a long time I never used the Drupals's Search module - because it used to be very high on database usage....

Now - I decided to try it....

It seems - it doesn't find words in <strong> or <em> tags, and since most important keywords on my website are in those tags - I'm getting very poor or no result in search, even I am looking directly on them in article....

what to do?!

Or should I use some other search module?

Adding elements dynamically via Ajax to forms

Hi All,

When adding new elements to an existing form via AJAX using hook_form_alter, for example, clicking a checkbox adds a datefield input, hoping someone can point me in the right direction as I think the below approach seems too hacky.

It's in a .module file, so no class to set vars, so am using user input to define how the element should render.

The approach below works, however can anyone point me in the direction for the "correct" way to do this.

Removed the bulk of the code so only the relevant code is here in this post.

Pages

Subscribe with RSS Subscribe to RSS - Drupal 8.x