Skip to main content

[Bug Report] Icons missing on Windows / LocalWP (Vite asset URL issue)

Hi Shahjahan Jewel and team, I wanted to report a bug. On Windows local environments (e.g. LocalWP), the icons under:

  • FluentCart → Settings → Payment Settings
  • FluentCart → Settings → Storage Settings

do not load.

The image URLs are generated incorrectly as:

.../wp-content/plugins/fluent-cart/assetsimages/payment-methods/stripe-icon.svg

because Vite.php uses DIRECTORY_SEPARATOR (which is \ on Windows) when building web URLs, causing an invalid path.

File

wp-content/plugins/fluent-cart/app/Vite.php

Current code

return FLUENTCART_URL . 'assets' . DIRECTORY_SEPARATOR . $path;

Suggested fix

return FLUENTCART_URL . 'assets/' . ltrim($path, '/');

This fix ensures asset URLs load correctly across all OS environments and resolves the missing icons on those settings pages.

Shahjahan Jewel

Noted. Done on the dev branch.