Could not load data, please refresh the page

Created on 26 October 2023, about 1 year ago
Updated 31 October 2023, about 1 year ago

With both the 8.x-1.3 and current dev versions I am getting: "Could not load data, please refresh the page"

Drupal 9.5.11
PHP 8.1.18

Additional error:
At admin/config/user-interface/coffee I see "Warning: foreach() argument must be of type array|object, null given in /app/docroot/core/lib/Drupal/Core/Render/Element/Checkboxes.php on line 113"

🐛 Bug report
Status

Needs review

Version

1.3

Component

Code

Created by

🇺🇸United States plato1123

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

Comments & Activities

  • Issue created by @plato1123
  • 🇺🇸United States plato1123

    Tried coffee 1.2 and 1.1 as well, same issue.

    On status report page I see a few issues I don't think are related but here they are...

    Blazy Not enabled: Use theme_blazy()

    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_display_title field needs to be updated.
    Taxonomy term
    The taxonomy_term.field_display_title field needs to be updated.

    Slick library not installed
    The Slick library should be installed at /libraries/slick-carousel/slick/slick.min.js, or /libraries/slick/slick/slick.min.js, or any path supported by libraries.module if installed. Check out file or folder permissions if troubled.

    Not enabled
    The trusted_host_patterns setting is not configured in settings.php. This can lead to security vulnerabilities. It is highly recommended that you configure this. See Protecting against HTTP HOST Header attacks for more information.

  • 🇮🇳India shalini_jha

    Hi @plato1123
    I did not get any error or warning.

    Drupal 9.5.11
    PHP 8.1.0
    coffee 8.x-1.3

  • Status changed to Needs review about 1 year ago
  • 🇳🇱Netherlands uberengineer

    I am also currently having this issue after a Drupal 10 migration and coffee 1.3
    Saving and exporting the config in the admin UI resolved my issue
    ../admin/config/user-interface/coffee

  • 🇺🇸United States plato1123

    Oh! The coffee config did indeed disappear into the abyss somehow. Can fix with uberengineer's recommendation above or as I did by copying config from the coffee install folder and then config import...

    cp docroot/modules/contrib/coffee/config/install/coffee.configuration.yml config/sync;lando drush cim

  • 🇺🇸United States plato1123

    Hmmm well I thought that had fixed it an indeed now it works when viewing non admin pages of the site, but on admin pages I still get the please refresh message. If I look in the console I see

    GET https://mysite.lndo.site/admin/admin/coffee/get-data 404 (Not Found)

Production build 0.71.5 2024