Account created on 10 February 2020, almost 5 years ago
#

Recent comments

best regard

I am new to drupal and I have the same error, can you help me thanks

my site is in drupal 9.5.7 and when executing update.php through the browser I get the error.

I understand, I apologize if I have not been able to express myself, I am using an English translator since I am from Colombia and I do not speak the language.
The process that I mentioned above is what I did and the site was in version 9.5.7 with the error mentioned above, in the console when I used the composer update I did not get any error.
I don't know if the composer.json validates

I was on drupal 8.9.20, use the upgrade_status module and update everything needed, then use the commands: composer require 'drupal/core-recommended:^9' 'drupal/core-composer-scaffold:^9' 'drupal/ core-project-message:^9' --update-with-dependencies --no-update and then composer update, then update.php and the site is on drupal 9.5.

This error does not allow loading the home page of the site
Error: Calling a member function getPattern() on null in Drupal\Core\Datetime\DateFormatter->format() (line 135 of core/lib/Drupal/Core/Datetime/DateFormatter.php).
Drupal\Core\Datetime\DateFormatter->format('1678885847', 'medium', '', 'America/Bogotá', 'es') (Line: 183) Drupal\Core\Field\Plugin\Field\FieldFormatter\
TimestampFormatter ->viewElements(Object, NULL) (Line: 89)
Drupal\Core\Field\FormatterBase->view(Object, 'is') (Line: 265)
Drupal\Core\Entity\Entity\EntityViewDisplay->buildMultiple(Array) (Line: 340)
Drupal\Core\Entity\EntityViewBuilder->buildComponents(Array, Array, Array, 'teaser') (Line: 24)
Drupal\node\NodeViewBuilder->buildComponents(Array, Array, Array, 'teaser') (Line: 282)
Drupal\Core\Entity\EntityViewBuilder->buildMultiple(Array) (Line: 239)
Drupal\Core\Entity\EntityViewBuilder->build(Array)
call_user_func_array(Array, Array) (Line: 101)

Production build 0.71.5 2024