Home>Support>SiteOrigin_Panels_Widgets_Layout removes backslashes form class with PSR-namespace

SiteOrigin_Panels_Widgets_Layout removes backslashes form class with PSR-namespace

Notice: This thread is over two years old; the information may be outdated. Please consider creating a new thread if you require free support. If you have an active SiteOrigin Premium license, you can email our premium support desk at [email protected].

Hi there,
I’m using your plugin mainly for the admin-interface, which is btw. awesome! Now I have a problem. When I use SiteOrigin_Panels_Widgets_Layout to create a complete in-page siteorigin layout, somewhere removes backslashes from my widget-class-name. This results in a missing widget-error.
This is the output of the panels-data’s widget-array.

[widgets] => Array
	(
	    [0] => Array
	        (
	            [title] => asdf
	            [content] => asdf


	            [content_selected_editor] => tinymce
	            [_sow_form_id] => 56a5f94d845b4
	            [panels_info] => Array
	                (
	                    [class] => PwCustomsContentBlocksBlocksText
	                    [raw] => 1
	                    [grid] => 0
	                    [cell] => 0
	                    [id] => 0
	                )
	        )
	)

It says `PwCustomsContentBlocksBlocksText` where it should say `PwCustomsContentBlocksBlocksText`.

This happens as soon as I save the post. This only happens when I add my widget inside a `SiteOrigin_Panels_Widgets_Layout`.

Can you give me a hint, where the problem is?

Thanks,
David

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

  1. 9 years, 5 months ago David Faber

    Okay… I fixed that for now, but I had to use the ‘siteorigin_panels_data’-Filter and walk through all the subwidgets and add back the backslashes…. which is just a dirty but working hack.

    Also the classname is wrong in the db.

    Thanks,
    David

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