@k1d0 Thanks for your report!
1. Which version of WordPress are you using? This plugin currently requires WordPress 5.3 or newer.
2. When you go to Tools -> Site Health, does it say the REST API is available?
3. Could you share what your WordPress and Site address URLs are in WordPress site settings under Settings > General from the WordPress Dashboard?
Thread Starter
k1d0
(@k1d0)
Hi Luckyna,
I’m using 5.5.3 but tried to update on 5.6 on localhost and the issue persists.
REST API is available and it is under “Passed tests” under Site health -> Status.
Thank you for your help.
@k1d0 Could you please share your Site Health info with us to check your configuration and any possibly conflicting plugins? You can share privately if you prefer. Thank you.
Thread Starter
k1d0
(@k1d0)
Hi Luckyna,
I sent the details through the form, let me know if you have any more questions.
@k1d0 Thanks for the info. It looks like this is referenced in your Site Health:
{"6":{"name":"test__outbound_https","label":false,"short_description":"Your server did not successfully connect to the Jetpack server using HTTPS\n\t\t\t\tPlease ask your hosting provider to confirm your server can make outbound requests to jetpack.com.","long_description":false,"severity":"critical","action":false,"action_label":false,"show_in_site_health":true,"pass":false,"group":["default"],"type":"direct"}}
The error message may not be coming from the Web Stories plugin.
1. Does this issue occur when only Web Stories is enabled?
2. Are you able to temporarily disable all other plugins (except Web Stories) safely and test if the issue persists in an incognito window?
3. Then, can you enable the other plugins (maybe start with Jetpack) one by one to see what could be causing the conflict?
Thread Starter
k1d0
(@k1d0)
I have explained that already in my previous posts, but to repeat again:
1. Yes, this issue occurs when only web stories are enabled. I have disabled all other plugins and switch to the twenty-twenty theme. Only the web story plugin is active and I can see this error. And it only occurs when I visit “add new web-story”.
2. Yes. I receive the same error after I disable all other plugins and leave only web-story active.
3. I have disabled all plugins, and switch theme, and the error is still there when I visit “add new web story”
Thread Starter
k1d0
(@k1d0)
This is what is confusing me. It is usually in conflict with some other plugin, but I have tested already with disabling all other plugins but web stories, and it didn’t help. And this error happens ONLY on “add new story”.
From the error I copied, I can see that Google\Web_Stories\REST_API\Stories_Media_Controller->get_items(Object(WP_REST_Request)) and \wp-content\plugins\web-stories\includes\namespace.php are mentioned with \wp-includes\rest-api\endpoints\class-wp-rest-attachments-controller
-
This reply was modified 5 years, 4 months ago by
k1d0.
@k1d0 I really appreciate your patience and efforts in sharing all these details. To confirm, are you able to create and save any stories from “Explore templates”?
Do you have any SVG file types uploaded in your WordPress media?
Thread Starter
k1d0
(@k1d0)
Hi Luckyna,
Thank you for your help in figuring this out. This is really strange and I would like to use the plugin but it seems impossible.
1. No I cannot. If I got to create a new story I get an error. If I go to templates and choose one of the templates “use template” I see an error again.
2. Searching for my media files I didn’t find any .svg uploaded. Only jpg and png.
Here is short video showing what happens when I visit add new story or if I choose “use template”: https://recordit.co/GjNqH2DmJY
-
This reply was modified 5 years, 4 months ago by
k1d0.
To display the images and videos in the media library within the Web Stories editor, the plugin loads these through the WordPress REST API (../class-wp-rest-attachments-controller.php).
For all images, WordPress tries to get intermediate image sizes from the image’s metadata. In your case, it seems like some images have malformed metadata and no such intermediate image sizes. This could easily be the case when using plugins to allow SVG uploads (hence that question), or other image-related plugins.
The problem is that we can’t really do anything about this from our side, as this is WordPress processing the images, not Web Stories.
You could try to do some debugging in ../class-wp-rest-attachments-controller.php to find out which image specifically is causing errors.
@k1d0 We’ll close this topic since you’ll need to debug further as mentioned above. Thanks again for reaching out with your topic. Of course, you can open a new support topic if you continue to experience any issues with the plugin.