Gutenberg Media Library Issue

Gutenberg Media Library Issue: Just checking, is anyone else who is using Gutenberg also seeing this issue?


In a nutshell, the media library is showing the list of images as though they are not attached to posts, but they are. And the issue is only present for posts posted with Gutenberg.

For example, the top image, of the leaves, is in fact attached to a post. it is attached to the post He, She, Him, His, Her, Her

Why do I care? It’s because I use ‘Unattached’ as a filter to clear unattached images. The unattached ones are usually old header images and that kind of thing.

Checking

Just checking, is anyone else who is using Gutenberg also seeing this issue?

WordPress Problems with Safari Browser

These are problems I am getting using the Safari Browser with WordPress. When I say ‘WordPress’, I mean WordPress.com specifically. I don’t have any issues with WordPress.org

I think both of the following issues relate to how the browser talks to the WordPress.com servers, but I don’t really know.

Here are the two issues:

I want to like you

The first act a problem I have had for a few months trying to ‘like’ a WP.com post in Safari.

I am logged in to WP.com but when I click to like someone’s post – nothing happens.

That is, nothing happens unless and until I go to the comment field and click the WordPress icon.

Then I can ‘like’ a post.

It happens in Safari in iOS as well, except the browser refreshes as though it is opening a new window.

Oops not found

Another issue in Safari is specific to when I write posts with Gutenberg.

What happens is that when I click ‘ Preview on a post I have not yet published, it goes to a ‘page not found’.

It doesn’t recognise the Preview at all. This is the kind of URL it brings up. (Note that I have changed the URL to ‘dot’ so that it doesn’t try to be a live link.)

https://photographworks dot me/?p=10521

However, I can go to ‘All Posts’ and click ‘Preview’ from there and it works. 

https://photographworks.wordpress dot com/?p=10521&preview=true

I wonder whether the issue is connected to the fact that I have a custom domain (photographworks dot me)

Are you getting similar behaviour?

Anyone else getting similar behaviour in Safari?

Caxton Gutenberg Plugin

For the first time since I started using Gutenberg I am really impressed. And strangely, perhaps, I am impressed by creating a page that looks more like a newspaper.

I can’t create anything like it here on WP.com because it needs the Caxton plugin (get it from the WordPress.org repository) to make it work. That is only for self-hosted sites or the Business plan on WP.com.

The plugin is made by the people at PootlePress and here is the layout I was able to do in a few minutes with my typing fingers beating out what was crossing my mind.

The different columns, the different text sizes, they are all east to set and adjust and play with within Caxton.

This is the layout – at a reduced size so I can get it on this page:



I really like the newspaper style layout. I think it will come to WP.com soon because it opens up a lot of possibilities for people who want to get back to well laid out, text heavy pages – like newspapers.

Meanwhile, it is possible – as you can see here – to set quotes in large type, like this in WP.com:

Each uncaring and unthinking person has access to weapons of war. A tweet ricochets off another tweet and spins off into another social media platform. Like a pinball machine full of pinballs, the machine gets hot and melts down. Anger, frustration, good old-fashioned annoyance – they have nowhere they want to go except deeper into the furnace.

And the furnace spits them out. It doesn’t need them except as examples of persons. It doesn’t care about them except for whatever trace they leave behind in the the social weave. If they all disappeared tomorrow, their loss would be calculated in loss of engagement, followers, likes, and shares.

Adding Products in WooCommerce / Gutenberg

I raised the following support ticket on WooCommerce:


“I have been using Gutenberg as a plugin on a couple of sites since last January, but until now not on a WooCommerce site. I just activated Gutenberg on a WooCommerce test site and also activated the WooCommerce Gutenberg Products block plugin.

I see how Gutenberg works on posts and pages but I don’t see any ‘Gutenberg’ on Product pages.

I thought it might be that the theme I am using was not yet G’berg compatible but it’s the same in the default TwentySeventeen theme, so I switched back.

What is the situation with Gutenberg and adding products and Product pages?”


Reply – Automattic to me:

“The reason you are unable to see Gutenberg when you add a new product is because this is not currently a functionality it provides.”


Reply – me to Automattic:

“Thank you for explaining that adding new products is not yet a feature of Gutenberg.

  • Is adding new products with Gutenberg in the pipeline?
  • If so, is there a rough date when this will be implemented so that one will be able to add new products with Gutenberg and edit single product pages with Gutenberg?
  • Will it be another plugin or will it be part of WooCommerce itself?
  • Is it likely to be added by the time Gutenberg is added to core?”

My thoughts

Gutenberg is slated to be incorporated in WordPress core in version 5. Automattic have just announced that version 5 is due for release on November 19. If more time is needed, there’s a backup proposed release date of January 2019.

So I am baffled why WooCommerce is not fully functional with Gutenberg even at this late stage.

I don’t underestimate the coding skills needed to get WooCommerce to work with Gutenberg (or Gutenberg to work with WooCommerce). But WooCommerce is a big part of WordPress ( 4+ million active installations) – so I am really surprised at what I learned.

Update

I got an answer from someone in a Facebook group who pointed me to the discussion group for WooCommerce developers on Github. In it, Mike Jolley said back in May that:

Since WooCommerce is not optimised for the Gutenberg editor we’ve decided to keep the old editor for now so sites do not break when WordPress 5.0 is released. Products are not content focussed so using Gutenberg with our meta box placed awkwardly at the bottom is not ideal.

And back in February, Cladiu Lodromanean said:

It’s just temporary until we develop nice Gutenberg-compatible screens for Products/Orders/etc. When Gutenberg is merged into WP core and released we will be ready with the Products block in WooCommerce 3.4 but editing products and orders in Gutenberg will come in a future WooCommerce release.

So now I know and I will be following the discussion on Github more closely.

That said, what this illustrates for me is that WooCommerce has a communication problem. They should be giving a roadmap to users and not just to developers.

I just gave feedback saying that.

Somewhere Warm in WooCommerce

Tamara and I have a self-hosted WordPress site where we sell greeting cards.

The e-commerce on the site is handled by a plugin named WooCommerce, that you may have heard of. 

Recently I had an issue with an additional plugin used to make bundles of products.

It is built on top of WooCommerce and it is an official WooCommerce plugin but it is not built by the WooCommerce team themselves.

It is built by a third party team of three developers who go under the name of Somewhere Warm.

They are based in Greece, so when I raised the issue at WooCommerce I was directed to the developers to help me.

We worked to isolate the issue and eventually tracked it down to a permissions issue in the database that for some reason must have happened when I first added the plugin and it was talking to the database.

This is what Jason at Somewhere Warm said:

We had an internal discussion about this issue with our lead developer and it turns out that in the past, we’ve seen this caused by incorrect database access permissions: If thewp_woocommerce_bundled_itemmeta and wp_woocommerce_bundled_items tables don’t exist in your database, then this usually indicates that the DB user in your wp-config.php file doesn’t have the required permissions to create new tables.

In the end I had to delete some permission keys (they showed me how) and it’s fixed now and everything is running smoothly.

Why Did It Happen

The database user (that’s me) has full permissions, so there’s no reason that the permissions issue occurred. So why did it?

Anyone who has been running a website that involves a database (as WordPress does) will have seen the message ‘Error Establishing a Database Connection’ when the code is unable to speak to the database in the back end. 

So maybe there was a temporary glitch when the connection was broken just when I was uploading the code. 

Whatever the reason, how was I going to solve it? As it turned out, the developer was able to pinpoint a possible issue, and that worked.

If not though, what would I have done?

I have to be thankful that I have had no issues with WooCommerce in the time I have been using it, and luckily, the issue here was easily solved.

It made me think though that one of the issues that you get when running a website is that when things don’t work as you expect you can’t just complain to someone else and expect them to fix it.

If someone else is running the show then you can complain to them. When you build it yourself, you have to figure it out yourself.

Code is often built on libraries of more specific code. Over time it becomes like the Tower of Babel built on foundations that become increasingly shaky, endangering the structure above.

In the case of WordPress and WooCommerce I have added other plugins. Perhaps they were in conflict with this one?

I have added snippets of php code. Perhaps they were in conflict with this plugin?

As I’ve explained – it was a permissions issue and it was easy to correct. But if it had not been that, then what?

four greeting cards on a wooden shelf


When Gutenberg Is In Core On Self-hosted WordPress

This post is not about WordPress.com. It is about WordPress.org – the version of WordPress that you can download and import into your own self-hosted website, as many people do.

Although this posts is not about WordPress.com, I think there are lots of people who do have their own self-hosted sites as well as sites here on WordPress.com, and that is my reason for posting it here.

By way of background – at the moment, Gutenberg is available as a plugin for self-hosted sites. Soon though it will be added to the core code of WordPress.

It occurred to me today that some of the extra Gutenberg blocks that people are making, and which are available as plugins, could start to clutter up sites with lots of plugins.

So I asked a question.

I have asked this question today everywhere I can think of.

I have asked it on the Gutenberg forum and on the Gutenberg group on Facebook, and on WPTavern, a website that specialises in all things WordPress. I have had some answers already, and some surprises.

The Question

So – to the question, which is this:

I am going to ask a question as a non-developer, perhaps as a typical user of Gutenberg when it reaches core.

At the moment, Gutenberg is a plugin. A few people, Mike McAllister and Danny Cooper to name two, have made additional blocks that are available as plugins.

When Gutenberg goes into core, I will want to use some additional blocks (pricing tables from Danny Cooper would be an example).

If that block is in a collection of blocks available as a plugin I could add the plugin.

I could then end up with many plugins, really only wanting just one or two blocks from each plugin, and perhaps lots of repetition because the different plugins cover a lot of the same ground.

In an ideal world, I don’t want extra plugins on my site if they don’t need to be.

Is there a way I could extract the blocks I want, keep them and remove the plugin? Would reusable templates enable me to do this?

Is there a different way to do it? Will there be a repository of just blocks and only blocks that can be exported to a site without the need to add a plugin at all?

So that’s it. I’ve had some answers from a few developers already and I will crystallise those into something when I have more of a handle on it and post it here.

Comments more than welcome!