Major errors on installation

Created on 21 October 2022, over 1 year ago
Updated 22 April 2024, 2 months ago

Trying to do anything produces a "The website encountered an unexpected error. Please try again later." error.

A partial listing of the error logs is below. I'm running Drupal 9.4.8. I used the D7 version a lot - I wish I could help, but I'm not a coder. Is there any movement here? Thanks much in advance for anybody's attention!

----Errors---:

Location: admin/modules

Warning: Invalid argument supplied for foreach() in Drupal\Core\Field\FormatterPluginManager->getOptions() (line 176 of /[site]/web/core/lib/Drupal/Core/Field/FormatterPluginManager.php)

Location: admin/structure/formatters
Warning: Invalid argument supplied for foreach() in Drupal\Core\Field\FormatterPluginManager->getOptions() (line 176 of /[site]/web/core/lib/Drupal/Core/Field/FormatterPluginManager.php)

Location: admin/structure/formatters
Message Notice: Trying to access array offset on value of type null in Drupal\custom_formatters\FormatterListBuilder->buildRow() (line 70 of /[site]/web/modules/contrib/custom_formatters/src/FormatterListBuilder.php)

Location: /admin/structure/formatters/add/html_token

Error: Class name must be a valid object or a string in Drupal\custom_formatters\Entity\Formatter->getDependentEntities() (line 107 of /[site]/web/modules/contrib/custom_formatters/src/Entity/Formatter.php)
πŸ› Bug report
Status

Active

Version

4.0

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States bcobin

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

  • πŸ‡ΊπŸ‡ΈUnited States bcobin

    Nope. Patch applied successfully and the install seems to go OK, but the module doesn't work. Presets don't appear and if a new formatter is saved, you just get an extra blank line in the UI. Clicking on Edit results in empty screen with "the website encountered an unexpected error" message.

    Log shows :Error: Call to a member function getPluginDefinition() on bool in Drupal\custom_formatters\Form\FormatterForm->form() (line 135 of /[site]/web/modules/contrib/custom_formatters/src/Form/FormatterForm.php).

    Oh, well...

  • First commit to issue fork.
  • πŸ‡ΊπŸ‡ΈUnited States cobblestone.consulting

    I was seeing errors when trying to edit an existing formatter and I found that when importing the config from a previously created formatter, only a couple of fields were being saved. (also, the listing page has all blank fields). Here is a patch that addresses these issues.

  • I got this one instead

    Class name must be a valid object or a string in Drupal\custom_formatters\Entity\Formatter->getDependentEntities() (line 112 of modules/contrib/custom_formatters/src/Entity/Formatter.php).

    Fixed by deleting the ConfigManagerInterface:: in line 112

  • Open in Jenkins β†’ Open on Drupal.org β†’
    Core: 10.2.x + Environment: PHP 8.1 & MySQL 8
    last update 2 months ago
    run-tests.sh fatal error
Production build 0.69.0 2024