Home>Support>Updating Page Builder to 2.5.0 breaks Widgets with namespace

Updating Page Builder to 2.5.0 breaks Widgets with namespace

Hi

After I have updated Page Builder to v. 2.5.0 I have problems with widgets, created with a namespace in PHP code.
It says the Widgets is missing:

Missing Widget
MTTSiteoriginWidgets\Widgets\MTTBox\MTTBox

The problem only appears after saving a page.
I think it is because it sanitize the widget name? Because every time I save the page, it will add an extra ” before other backslashes. So after saving three times it looks like this:

Missing Widget
MTTSiteoriginWidgets\\Widgets\\MTTBox\\MTTBox

It is my own widgets, so of course I could just remove the namespace, but then I need to rebuild all sites with all pages, to use the widgets without namespace.

This is our free support forum. Replies can take several days. If you need fast email support, please purchase a SiteOrigin Premium license.

  1. 7 years, 5 months ago mschadegg

    the two code blocks above should look like this:

    Missing Widget
    MTTSiteoriginWidgets\\Widgets\\MTTBox\\MTTBox

    and

    Missing Widget
    MTTSiteoriginWidgets\\\\Widgets\\\\MTTBox\\\\MTTBox

  2. 7 years, 5 months ago Alex S
    Hi, I Work Here

    Hi Mschadegg,

    Just as a heads up – we’re definitely working on fixing this. We’ll hopefully have this fixed in the next update but if things don’t go according to plan, this will definitely be fixed in the update after that. Very sorry about this!

Replies on this thread are closed. Please create a new thread if you have a question, or purchase a SiteOrigin Premium license if you need one-on-one email support.

Get The Most Out of SiteOrigin with SiteOrigin Premium

Find Out More