-
Notifications
You must be signed in to change notification settings - Fork 63
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
When changing month on calendar , image paths change #712
Comments
Image paths are stored in the database, and changing the |
Why? and How to solve? |
Hello @angpao
The Have you tried disabling other |
I tried to create new server and install wordpress (bitnami) and add wp-stateless again but the features images url is incorrect everymonth Why? How to check code file url ? Can I change file url to use GUID instead of that ? and when choose features images again no show as attached file as below |
How to solve ? |
Hello @angpao, I've tried several combinations of the settings, but still your issue does not reproduce. Most likely it is related to your environment. Please visit Thanks in advance. |
I copied that as below
|
@angpao What features have you activated within Jetpack? Did you upload images in your new test environment? |
Now , I deleted jetpack plugins and yes test environment.
But the same problem no show feature images in last month. |
I configed wp-stateless with google cloud storage using wp-stateless -> config File URL -> Folder -> Single site -> /%date_year/date_month%/ and mode is "stateless" and File URL Replacement is "Enable Editor & Meta" and more default. When I uploaded features images of post by wordpress , The images path was saved correct in google cloud storage. But the problem have just happened on changing month , the file url was changed and also the images is not show on media library . I want to know how wp-stateless plugins work getting file url for features images? Could you explain in details coding? I will help you check this issue. |
Hello @angpao, There seems to be a problem with image sizes on your site.
But seems like image sizes are not generated upon image upload. In the status you have 12 files in Media Library, nut 0 file sizes.
Seems like the upload process breaks at some point, without generating image sizes and most likely without saving correct post meta for images. Could you please open any image for editing: then go to the very button of the page and check the Stateless section, does it have links for different image sizes? Also, if this is possible for you, could you please enable debugging, upload an image and check log for errors? |
Do you have the same problem after disabling the |
For some reason WP-Stateless It is a wrong behaviour, all metadata should be saved to DB. Can you please check tables Also please check SELECT * FROM wp_postmeta
WHERE meta_key = "sm_cloud" |
Thank you @angpao We are preparing a version for you where we can figure out the reason why it is not working properly. |
Hello @angpao , We prepared test version of the plugin with extended diagnostics, please download zip from https://github.com/udx/wp-stateless/releases/tag/4.0.3-test712 and install. Thank you! |
I tested and logs as below [09-May-2024 13:17:45 UTC] $image_sizes: |
Hello @angpao, Please switch bucket permission control from Then try to upload an image again. After upload please open the edit page for this last uploaded image and check Please let us know the result. Thanks! |
@angpao, seems like you don't have the required permissions in Google Cloud. You can also try to set WP_STATELESS_SKIP_ACL_SET constant in your WordPress config file. This can also help. For existing images please try to run Please let us know the result. Thanks! |
Hello @angpao, Google does not allow to change bucket access control after 90 days, so this is probably the reason why edit button is disabled for you. We've prepared another test version, which supports For existing images sync will not work in As always, please let us know the result. Thank you! |
I installed this "https://github.com/udx/wp-stateless/archive/refs/tags/4.0.3-test712.zip" and tested already. Even though the previous images of last month such as "2024/04/..." , I have to manual copy to folder "2024/05" of gcp before then change to Thank you very much for your willingness and support. Can you update plugins in production? , I will download and install again. |
It will be included in next release. Thank you for your help! |
Thanks, About when will you release it? |
Hello @angpao , Currently we are working on the next release. Once it is done we will let you know. Thank you for your patience and collaboration! |
Any updates here? |
Is there any temporary fix? , the website is broken |
Hello, Thanks for your polite patience. Please try our new release 4.0.4, it should fix the issue. |
@angpao @andreibryk @MouMohsen Please let us know how it works for you. |
@planv We are running 4.0.4 and ran into the same issue today. All our image URLs changed to current month and broke production. Any suggestions so it doesn't happen again next month? |
hey @FlorianValery Do you use this constant https://stateless.udx.io/docs/constants/ More information - #712 (comment) |
Hello, I have this issue. My settings for GCP bucket is uniform
That's my status:
|
Hello again, |
I have some problem when changing month , Image url change
for example,
from "gcp/2024/01/a.png" to "gcp/2024/02/a.png"
and Media cannot see last month images.
Seting mode is stateless.
The problem occur with Feature Images only but image in content no problem.
Why? and How to solve?
The text was updated successfully, but these errors were encountered: