SiteOrigin Widgets CSS issue

moonlike1871

New member
I've got an issue that seems to be triggered by the plugin media storage.

At some point in the recent past, I'm not precisely sure when, parts of my site started rendering strangely. I banged my head on this for a long time until I discovered in the Network tab of the debugging tools, that several CSS style sheets are 404'ing.
Screenshot 2025-04-26 at 11.51.36 AM.png

The cause seems to be that the URLs for the stylesheets are being converted to my R2 domain. If I remove the "static" portion, the files are there (as you might expect). Now obviously I can simply upload these files to R2 but that seems like a temporary solution - these are CSS files for themes and plugins and will change. These CSS files are in a wp-content/uploads/siteorigin-widgets directory.

Why is there a redirect to my R2 domain happening here all of a sudden? Is SiteOrigin doing something stupid by stashing files in wp-content/uploads? Can I fix this?

Thank you!
 
Last edited:
Sorry, I edited my post with a little more clarity.

No, what appears to have happened is that SiteOrigin seems to have added a bunch of CSS files to wp-content/uploads, which seems to have triggered the R2 storage rules.

Is SiteOrigin doing something stupid by stashing files in wp-content/uploads? Can I fix this?
 
R2 doesn’t redirect anything though, it’s just a storage location. And even with that, it will only alter URLs of media that have been explicitly stored in R2 (you can even have some media stored in R2 alongside some media that are not, and it will work fine). It definitely shouldn’t be assuming everything within the upload directory is in R2.

If you’ve look at the browser page source or devtools, are the URLs the upload folder that are then being redirected, or are the URLs actually on your R2 subdomain right out of the gate?
 
If you’ve look at the browser page source or devtools, are the URLs the upload folder that are then being redirected, or are the URLs actually on your R2 subdomain right out of the gate?

Thank you, this caused me to go in and evaluate the Cloudflare redirects I had in place. I was redirecting the /wp-content/uploads to the R2 bucket because it was an in-place migration of an existing site so I couldn't be sure all of the image links were updated.

I added an exclusion for the siteorigin-widgets folder and now it works normally. Appreciate your help, especially because it wasn't an issue with the plugin!
 
Back
Top