NO BUG: Logo element: Extra Forward Slash being appended to upload image path

Browser: Brave Version 1.62.165 Chromium: 121.0.6167.184 (Official Build) (64-bit)
OS: Windows
URL: can dm in private to admins if needed

I am using the latest Bricks version (new customer).

Using template to make my header I have inserted an image (logo).

After some saves on the header or a post (not sure exactly when it is occurring to be honest it just feels sort of at random) I notice the logo starts 404ing and then when I check the network tab I see:

Which looks like sometimes bricks is adding an extra forward slash after “uploads” when pathing to the image.

The only way I’ve found to fix it once that happens is to completely remove the image in the header, re-add it, and then clear my CDN cache (W3) but even that is not working every time it seems.

This is incredibly inconvenient as you can imagine.

Hi,
Thanks so much for your report!

Unfortunately, I cannot reproduce the issue. “Sometimes/random” problems are always damn hard to replicate without concrete steps.

  1. How did you set WordPress to use non-default month-based folders? Is it in the WordPress media settings or in your config file?

  2. Are you using any permalink/rewrite plugins?

  3. Can you reproduce the problem in a new, fresh installation (without plugins and caching)?

Best regards,
timmse

Hi timmse thanks for the response.

Responses:

  1. Settings → Media → Uploading Files → Organize my uploads into month- and year-based folders

I can turn this back on but why do you ask about this? Is there something in bricks code that relies on this?

  1. I am kinda new to wordpress but no I don’t think so really only have Bricks, yoast, W3 total cache, and smush by way of plugins - its a brand new site.

  2. Again I am new to wordpress but how could I do this for free?

  1. because you could also change the media uploads folder in the wp-config file.
  2. does the problem also occur if you deactivate all (and I really mean all) plugins?
  3. by setting up a new WordPress installation - on a server, or locally with e.g. https://localwp.com/

However, I think it would be easier if you just send us admin login credentials and a link to this thread to help@bricksbuilder.io using the email address you used during the purchase.

Credentials have now been sent.

Hi, Thanks so much for the login data!

Seems like the issue is caused by WPsmush plugin: Smushing image creates a double slash// in Image URL | WordPress.org

So I disabled the plugin, deleted the image, removed it from the logo element, saved, re-uploaded the image, and added it to the logo element: problem solved :slight_smile:

As an alternative to WPsmush I can recommend EWWW, which I have not had any problems with so far: EWWW Image Optimizer – WordPress-Plugin | WordPress.org Deutsch

Thank you @timmse!!! I am so sorry to have wasted your time on non-bricks bug. Smush came pre-installed on Azure Wordpress and I didn’t give it much thought in this. I will get EWWW now!