Class UIkit not loaded

Created on 26 February 2021, almost 4 years ago
Updated 5 December 2023, about 1 year ago

Problem/Motivation

After Upgrading to Drupal 9 I'm having an issue in the uikit base theme. It seems that in the uikit.theme the class UIkit could not be included. I added a check and a require_once. This fixed it for me.

Steps to reproduce

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes

πŸ› Bug report
Status

Needs review

Version

3.0

Component

Code

Created by

πŸ‡©πŸ‡ͺGermany AndrewTur

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 pfrilling Minster, OH
  • πŸ‡ΊπŸ‡ΈUnited States pfrilling Minster, OH

    Adding a test only patch to confirm this issue. It should fail if this is a problem in Drupal 9.

  • Open in Jenkins β†’ Open on Drupal.org β†’
    Core: 10.1.x + Environment: PHP 8.1 & MySQL 5.7
    last update over 1 year ago
    Unable to generate test groups
  • Open in Jenkins β†’ Open on Drupal.org β†’
    Core: 9.5.x + Environment: PHP 7.4 & MySQL 5.7
    last update over 1 year ago
    Unable to generate test groups
  • Open on Drupal.org β†’
    Core: 10.1.x + Environment: PHP 8.1 & MySQL 5.7
    last update over 1 year ago
    Waiting for branch to pass
  • πŸ‡ΊπŸ‡ΈUnited States pfrilling Minster, OH

    Fixing the test only patch.

  • Open in Jenkins β†’ Open on Drupal.org β†’
    Core: 9.5.x + Environment: PHP 7.4 & MySQL 5.7
    last update over 1 year ago
    1 pass
  • Issue was unassigned.
  • Status changed to Closed: cannot reproduce over 1 year ago
  • πŸ‡ΊπŸ‡ΈUnited States pfrilling Minster, OH

    I manually tested with 10.1 and the automated test is working in 9.5. I think this is a non-issue.

  • First commit to issue fork.
  • @paucala opened merge request.
  • Status changed to Active about 1 year ago
  • πŸ‡ͺπŸ‡ΈSpain paucala

    I'm reopening this issue cause it seems we're finding a similar problem (if not the same) on our Drupal 10 upgrade.

    this error is launched when the css minifyer on the performace module is active:

    Error: Class "Drupal\uikit\UIkit" not found in include_once() (line 13 of /XXXX/web/themes/contrib/uikit/uikit.theme).

    For the moment we have solve it with a little variation of this issue solution. We don't think this is a prpper final solution but for the moment it works.

    We think it can be related with some cahnges intruded on the Drupal 10 upgrade about the css and js agregation.

  • πŸ‡³πŸ‡±Netherlands mvdve

    Same issue here after upgrading to Drupal 10.0.1.6 from 9. Not sure what the purpose of the include helper method is so i replaced it with a simple include_once for now.

  • πŸ‡«πŸ‡·France mitsuko

    I can confirm the issue on a fresh drupal 10 installation.
    So , maybe the issue's priority is not high enough ?
    Patch works for me too !

  • Status changed to Needs review about 1 year ago
Production build 0.71.5 2024