WSOD when installing on D9

Created on 7 February 2021, over 3 years ago
Updated 31 October 2023, 8 months ago

Problem/Motivation

Installed with Composer. When enabling via admin page, it required two dependencies (expected). After installed, it gives a WSOD. Cannot uninstall -> WSOD. Cannot uninstall via phpMyAdmin -> cannot find the 'event' module. Be warned before installing.

๐Ÿ› Bug report
Status

Fixed

Component

Code

Created by

๐Ÿ‡บ๐Ÿ‡ธUnited States timkroehler

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.

  • ๐Ÿ‡ป๐Ÿ‡ณVietnam tra.duong

    tra.duong โ†’ made their first commit to this issueโ€™s fork.

  • @traduong opened merge request.
  • Status changed to Needs review over 1 year ago
  • ๐Ÿ‡ป๐Ÿ‡ณVietnam tra.duong

    I have check the commit @richgerdes's commit and it removed the BSOD.

    However, depends on https://www.drupal.org/docs/drupal-apis/entity-api/converting-a-content-... โ†’
    I also add a hook_update_N to migrate old data just in case.

    I put an MR.

  • ๐Ÿ‡บ๐Ÿ‡ธUnited States richgerdes New Jersey, USA

    @tra.duong, i looked at your MR, but its hard to tell what was actually changed because you reset formatting on the entire file. Would it be possible for you to split the MR up into two commits, one to include the general formatting updates and one for the update hook you added so it can be easily reviewed?

  • ๐Ÿ‡ป๐Ÿ‡ณVietnam tra.duong

    @richgerdes
    I have check the commit again, it makes me confuse somehow.
    https://git.drupalcode.org/project/event/-/merge_requests/2/diffs
    Please uncheck "Show whitespace changes" in "Preferences", the whitespaces may auto-corrected by my IDE.

  • ๐Ÿ‡ฎ๐Ÿ‡ชIreland lostcarpark

    Just a minor comment on this change.

    The function `event_update_dependencies` has been added between `event_update_8102` and the new `event_update_8103`.

    Just from a viewpoint of making changes easy to follow, I think the `event_update_` functions should be grouped together, and the `event_update_dependencies` function should be placed either at the top or the bottom of the file.

    I'm haven't been involved in this module, but I'd be concerned about an update requiring "Show whitespace changes" to be turned on. I can't see an obvious reason for the whitespace to have changed.

  • Open on Drupal.org โ†’
    Core: 9.5.x + Environment: PHP 7.3 & MySQL 5.7
    last update 8 months ago
    Waiting for branch to pass
  • Open on Drupal.org โ†’
    Core: 9.5.x + Environment: PHP 7.3 & MySQL 5.7
    last update 8 months ago
    Waiting for branch to pass
  • Status changed to Fixed 8 months ago
  • ๐Ÿ‡บ๐Ÿ‡ธUnited States richgerdes New Jersey, USA

    Typically a clean commit should be as simple as possible, only changing the lines required to fix the bug. In this case the MR changes the line endings of the install file form the unix format (only \n) to the windows format (\r\n). This is an easy enough to ignore in the editor but it does clutter the git log and make it harder to trace the cause of a bug in the blame history. Best practice is typically to make a change like that as its own commit.

    In this case, its not necessary and would deviate from the established standard of the repository. I've reverted the line endings changes in a new commit on the branch.

    Otherwise, I think that the two hooks being added are good, and will benefit users of the module. As @lostcarpark, event_update_dependencies is more of an informational hook, instead of a update process, so its ideal that they are kept together. I've also moved the change to the top of the file.

    Otherwise everything looks good to me. @tra.duong, I really appreciate the through and thorough work here to get the hook added.

  • Automatically closed - issue fixed for 2 weeks with no activity.

Production build 0.69.0 2024