Quantcast
Channel: Threads Archive - SiteOrigin
Viewing all articles
Browse latest Browse all 290

Blocks stop being displayed when the site is moved

$
0
0

Blocks stop being displayed when the site is moved and are displayed.
Page Builder data is stored in serialized form in the `wp_postmeta` table, where the `meta_key` field is equal to ‘panels_data’

Here’s an example, part of that data (domain=home.pl):
a:3:{i:0;a:8:{s:5:”title”;s:4:”Home”;s:4:”link”;s:20:”https://home.pl/add/”;s:7:”picture”…

By changing the site address (domain), you also change the links to your files on the hosting in the database, for example to this (domain=example.com):
a:3:{i:0;a:8:{s:5:”title”;s:4:”Home”;s:4:”link”;s:20:”https://example.com/add/”;s:7:”picture”…

And as a result, the page https://example.com/add does not display the blocks.

The reason for this is that:
1. Page Builder data stores the number of letters in a block element (for example,s:20)
2. The number of letters in the link changes.

Therefore, in order for everything to work, you need to change the old number of letters in the link to a new one, as here:
a:3:{i:0;a:8:{s:5:”title”;s:4:”Home”;s:4:”link”;s:24:”https://example.com/add/”;s:7:”picture”…

And unfortunately, this needs to be fixed for every block on pages that have YYYY blocks…

The developers are requested to propose a simple solution to this problem, or fix it in the next updates of Page Builder.

The post Blocks stop being displayed when the site is moved appeared first on SiteOrigin.


Viewing all articles
Browse latest Browse all 290

Trending Articles