After enabling Trusted Host I Can't Acces Admin Panel

When I enabled and edited
@code
 $settings['trusted_host_patterns'] = [
   '^mydomain\.tld$',
   '^.+\.mydomain\.tld$',
   '^mydomain\.tld$',
   '^.+\.mydomain\.tld$',
 ];
@endcode

In /sites/default/settings.php

I get the error:

Redirects to external URLs are not allowed by default, use \Drupal\Core\Routing\TrustedRedirectResponse for it.

If I comment those lines out, I still get the error.

How to show all sub-categories in the list of the parent catagory

I have just add some categories and they have also  sub-categories but on the list of the categories there showing all parent categories along with sub-categories. But i want show only parent categories in one page and after clicking on the parent categories then show the sub-categories in one page.

list like this

Ticket online store – Stage Entertainment

theatr-website-development-case

Stage Entertainment is an international entertainment company and one of the world’s largest theater producers that plays a key role in the popularity of the musical genre on the European Continent.

Over 10 million visitors attend Stage Entertainment productions and shows every year, and AnyforSoft is genuinely excited about participating in Stage Entertainment's mission by developing a new content solution and launching a revamped digital platform.

Sectors: 
Entertainment

Html5 Attribute on custom field <input>

I'm developing a custom module with an image field.

Where can I set the following HTML attribute to my custom field?

<input type=file
       accept="image/*"
       capture=environment>

I have created the image field and i'm able to process some OCR with an external library uploading the image but I need to use webcam instead and I can't find the way to set the "capture=enviroment" tag to my input form in the field widget file.

Thank you

Not able to update the database

Hello.
I have updated drupal from 8.7.12 to 8.8.5 but now in the status report I have these errors:

    Database updates
    Out of date
    Some modules have database schema updates to install. You should run the database update script immediately.

    Entity/field definitions
    Mismatched entity and/or field definitions
    The following changes were detected in the entity type and field definitions.
    Media

        The Media entity type needs to be installed.

    Media type

External QR Reading Class

Hi,

I'm devolping a Drupal 8 module for employee check-in / check-out time based on QR code reading / decode with an external php library.

I've installed khanamiryan/qrcode-detector-decoder with composer.

Now I need to call the QrReader class inside MyModuleFieldDecoderWidget.php but I got allways an error message like this:

Error: Class 'Drupal\FieldQrDecoder\Plugin\Field\FieldWidget\QrReader' not found.

I've tried with

use Khanamiryan;

and also

Pages

Subscribe with RSS Subscribe to RSS - Drupal 8.x