Open donbowman opened 3 years ago
@donbowman can you provide more detail here? What am I looking at above? What do you want it to do?
Hi. sure.
I use wp-stateless, github. I talk about the why here https://www.agilicus.com/cloud-native-wordpress/ but the tldr:
I run my wordpress in kubernetes. I don't have shared storage. wp-stateless allows me to save all media to google cloud storage (GCS). Thus i can run >1 copy of wordpress simultaneously, load balanced.
I've been doing this for some time, it works quite well.
I also use YOAST (for obvious reasons!). Recently (not sure exactly when) it started giving this error.
The root of the error stat failed for gs://BUCKET/path/file.svg
implies that yoast is assuming the file exists locally on the filesystem, it does not. So thus stat() does not work.
From there i'm not really sure. wp-stateless has a few compatibility things in it, i suppose I could look there as to what is missing. but it seems there is an assumption on the stat() here which is not true.
You can see the below stack trace I get when updating a page w/ both wp-stateless and yoast (wordpress-seo) installed.
the affected code in yoast: