Error after composer installation

I went through the standard composer installation steps for D8 outlined in the installation docs. I used drupal/recommended-project as the project template. The web UI portion of the installation went fine, but immediately after completing that, I get an error when visiting the root of my website that says:

Uncaught PHP Exception InvalidArgumentException: "Class "Drupal\\views\\Routing\\ViewPageController" does not exist."

Does anyone know why this is happening?

Mismatched entity and/or field definitions

In my site's status report I have:

Entity/field definitions

Mismatched entity and/or field definitions

The following changes were detected in the entity type and field definitions.

Content

  • The node.field_report field needs to be uninstalled.

How do I fix this?  Previous posts suggest I run:

how to add css to a text filter?

Hi there,

I have created a text filter : [job_openings] that inserts markup where this string is found, does anyone know how to attach css to it , I already have a css file that is used by the block .

thanx

Preserve file permissions on folder default

Hello,

Every time i log in on my site, permissions get changed to 550 on "docroot/sites/default". Can I prevent this?

The folder "default" must be writable for the owner in order for composer to work.

Owner of the directory "default" is an ordinary user without sudo rights. The group is the server. If the server is booth owner and group, it makes sense to chage to 550 but not if server already only has reading writes.

Fred

Difference between composer create-project drupal/recommended-project and composer create-project drupal-composer/drupal-project

Both install drupal 8.8.1

But /vendor folders are differents:

1) composer create-project drupal/recommended-project:

/vendor: 4485 files, ~21 Mo

2) composer create-project drupal-composer/drupal-project:

/vendor: 12624 files, ~62 Mo

What does it change? What does it mean? Which one is the best and why?

Twig Filter replace

I need replace field value to some text if value equal 0
in node--new_material.html.twig

{{ content.field_cena }} - it displays the value

These filter versions don't work

{{ content.field_cena|replace({'%0%': 'some text'}) }}
{{ content.field_cena|replace('0', 'some text') }}
{{ content.field_cena.0|replace({'%0%': 'some text'}) }}
{{ content.field_cena.0|replace('0', 'some text') }}

nothing is displayed.

Please tell me the solution!

Pages

Subscribe with RSS Subscribe to RSS - Drupal 8.x