Fails if project name different to module/theme name

Created on 28 May 2020, almost 5 years ago
Updated 24 April 2025, 3 days ago

The reporter fails if the project name is different to the module or theme's name. For example, the adminimal_theme project includes a theme with the machine name "adminimal", which causes an infinite loop in hackedProjectWebDevDownloader::download() around line 88 where it runs this code:

    $fp = fopen(drupal_get_path('module', $module) . "/$module.info", 'r');
    $found_generated = FALSE;
    while(!feof($fp))

The problem is that it doesn't first verify the file can be opened before assuming it can be opened and then trying to load it, which results in errors.

πŸ› Bug report
Status

Closed: outdated

Version

2.0

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States DamienMcKenna NH, USA

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.

Production build 0.71.5 2024