Whenever I generate static files for my build, I have encountered an issue with the file path.
The homepage contains a business logo which, when converted into html, does not display the logo’s PNG file on my local machine (the build was created using LocalWP on Windows 11). Upon inspection (the html was viewed in both FireFox and Edge, and neither displayed the image), I determined that the image is not displaying in either browser.
During file generation, I received this error:
2024/05/21 at 12:22 pm – Crawl ‘https://urbanbirdservices.local/wp-content/uploads/2024/03/elementor/thumbs/UBS-Logo-2024-02-06-High-Quality-Cornerless-qlggdi1juyf9cleg0psnukzxka2r3my325cxh7weie.png’ rejected (Client error: GET https://urbanbirdservices.local/wp-content/uploads/2024/03/elementor/thumbs/UBS-Logo-2024-02-06-High-Quality-Cornerless-qlggdi1juyf9cleg0psnukzxka2r3my325cxh7weie.png resulted in a
404 Not Found` response: <link rel=”profile” href=”https://gmpg. (truncatedā¦) ) (found on https://urbanbirdservices.local/404_not_found/)
I discovered that the PNG file had been renamed to something much different then what I uploaded the file to WordPress (the PNG had been renamed to the one mentioned in the error above), and the file’s name had about 40 additional random characters appended to its original name. When the name of the PNG was changed to something short like ‘Logo.png’ and the file path edited to match, the image displayed properly (‘logo.png’ was not the original name of the image file, as the original name is the one listed in the error, sans additional characters). This seems to me to be an issue with the file path being too long, a consequence of the PNG file being renamed.
While I could leave it at that for this particular instance of the error, I have this same PNG file referenced throughout the website, and the file paths are all broken as a result. It seems to me that the solution should be to prevent this png’s file rename from being excessively long either prior to or during static generation, but I’m not sure if the issue comes from Staatic’s generation process or WordPress prior to giving the PNG over to Staatic. Does anyone else have this issue? Is there a known solution?
Plugins Used:
-Staatic
-Elementor
-Yoast SEO
-Elementor Header & Footer Builder
Settings:
-built on LocalWP
-Web server: Apache
-PHP version: 8.3.0
-Wordpress version: 6.5.3
Thanks in advance!
]]>/forumafrica.net/wp-content/themes/customify-child/bbpress.css
When I copied this path and put it in the css location field it did not work. I would like to know what I did wrong and whether there is anything more to be done to make things work for me. I’m using the theme Customify. And WordPress 6.0.1. And bbpress 2.6.9. Thanks in advance for your support.
]]>?Where does wordpress store all images are posted by users in the comments?
?Do you happen to know what folder paths are those?
Kind Regards,
]]>I’m running into a weird situation with a multisite. In short, all of the images are pulling from the same S3 bucket and that works great for displaying them on the frontend and in the Media Library. However, when someone is authoring a post the image does not display in the editor because it’s looking for the origin files.
As an example, here would be the URL where you can find the image and what is displayed on all of the frontends:
example.com/wp-content/uploads/sites/6/2020/10/just-a-picture.jpg
In the post editor, it’s looking for:
example.com/siteslug/wp-content/uploads/sites/6/2020/10/just-a-picture.jpg
, which doesn’t exist at that path since it’s uploaded directly to S3.
Is there some way I can force the WordPress editor to omit the site slug in the URLs so it uses the CDN url for an upload?
Thank you!
]]>I have an issue with Migration…
I am in different situation for Migration of the database
I have to transfer my website to new server, Domain will remain same, So i know the “New URL” but do not know the “New file path” without installing fresh WordPress on new server.
Hope you understand the situation. So now answer the question to help me
1). How can i get to know the “New file path” of the server?
2). Also is there any alternatives?
3). Is this compulsory to update “New file path” to website works?
Thanks & Regards,
Naimesh Rao
www.webbkod.com
thanks
Xian
Currently, I try to set up a page for uploading files and moving that entries in custom post types. All that is working fine. But there is one problem: I save the file path of Advanced File Upload 2.0 filed in a custom post type. This is working.
But the file-path looks like this: “http:\/\/www.pd-design.eu\/video-upload\/wp-content\/uploads\/2020\/05\/sendungsdesign-beispiel-01-2.jpg”. Where do this slashes come from? When I use the basic html-5 Upload, I get the normal/correct link. In WordPress Media, it is also saving the right file/link (https://www.pd-design.eu/video-upload/wp-content/uploads/2020/05/sendungsdesign-beispiel-01-2.jpg).
I couldn’t find any answer .. can you help?
And by the way: Is it planned to get the status bar of Advanced file uploader 1.0 to the 2.0? Because when you upload a bigger file, a status bar would be great!
Thanks very much for your help!
Patrick
I need to be able to change the file upload path of the sub sites.
I know I need to make the wp-config change for /uploads to something like
?define(‘UPLOADS’, ‘wp-content/gluster/uploads’);
However, is there a way to change where the sub sites are being uploaded to from /blogs.dir to /wp-content/gluster/blogs
]]>We’re setting up on Digital Ocean Spaces using the Media Cloud plugin to pass all uploads to DO Spaces instead of the WordPress Media Library. We’re going to have our DJs logging in with a restricted member role to create their Podcasts in OnAir2 theme. When they access the Podcasts CPT, they’ll use PowerPress to enclose their MP3 file, but I’d prefer that they simply click “Upload” in the PowerPress panel and the Digital Oceans Spaces URL simply populates for them, instead of having to always copy and paste a URL. And, since WordPress always changes the folder pathname based on YEAR/MONTH, every month they’s have to prepend a new DO Space path to the file name. It’s just very messy, I think.
So, I’m trying to think of a way to solve this by creating a custom function in PowerPress to upload the media using a button in the PowerPress panel that integrates with Media Cloud and pushes the file, as well as sets the URL, so that no one has to manually copy and paste the resulting file into PowerPress to set the enclosure into the Podcast CPT page.
]]>