bug: site.webmanifest 404 — favicon generator not creating manifest #1

Open
opened 2026-04-22 03:15:41 +00:00 by jmiller · 0 comments
Owner

Problem

<link rel="manifest" href="/images/favicons/site.webmanifest"> returns 404.

The getHeadTags() method in helper/favicon.php always outputs the manifest <link> tag, but site.webmanifest is only created when generateManifest() runs successfully during favicon generation.

Possible causes

  1. No favicon source configured in template params (favicon_source)
  2. Favicon generation failed silently (GD/Imagick not available)
  3. The images/favicons/ directory doesn't exist or isn't writable
  4. Stamp file prevents regeneration even though manifest is missing

Expected behaviour

  • If no favicon source is set, don't output the manifest <link> tag
  • If favicon generation fails, don't output <link> tags for missing files
  • Consider checking file existence before outputting each <link> tag

Files

  • src/helper/favicon.phpgenerateManifest() (line 477), getHeadTags() (line 494)
## Problem `<link rel="manifest" href="/images/favicons/site.webmanifest">` returns 404. The `getHeadTags()` method in `helper/favicon.php` always outputs the manifest `<link>` tag, but `site.webmanifest` is only created when `generateManifest()` runs successfully during favicon generation. ## Possible causes 1. No favicon source configured in template params (`favicon_source`) 2. Favicon generation failed silently (GD/Imagick not available) 3. The `images/favicons/` directory doesn't exist or isn't writable 4. Stamp file prevents regeneration even though manifest is missing ## Expected behaviour - If no favicon source is set, don't output the manifest `<link>` tag - If favicon generation fails, don't output `<link>` tags for missing files - Consider checking file existence before outputting each `<link>` tag ## Files - `src/helper/favicon.php` — `generateManifest()` (line 477), `getHeadTags()` (line 494)
jmiller self-assigned this 2026-04-22 03:15:41 +00:00
Sign in to join this conversation.
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: MokoConsulting/MokoOnyx#1