This thread is over two years old and may be outdated. Please create a new thread if you need help, or email us if you have an active Premium license.

SiteOrigin_Panels_Widgets_Layout removes backslashes form class with PSR-namespace

10 years ago · Last reply by David Faber 10 years ago

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.

Need fast email support? Get SiteOrigin Premium

Replies

1
  1. David Faber 10 years, 29 days ago

    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.

Have a different question or issue?

Start New Thread