• Resolved g.longo

    (@glongo-1)


    I use the plugin with “Page Builder by SiteOrigin”.

    When I change settings (ex. template file name by new select list and/or “Select a thumbnail size to show” value), I click “done” in plugin settings, and “update” on page edit screen, then your plugin settings has not maintained.

    The issue not occur when i put widget in sidebar or with previous version (3.3.1).

    if you want I can help you by arranging a test environment.

    Thanks in advance!

    https://ww.wp.xz.cn/plugins/flexible-posts-widget/

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author DaveE

    (@dpe415)

    Hi g.longo,

    Unfortunately, FPW has never worked within the Page Builder interface (while building a post or page with the Page Builder plugin). This was documented previously and is an issue with the way Page Builder loads widgets into a non-standard interface (not the Admin > Widgets page) to make “building” a page possible.

    FPW works fine from the regular Widgets interface (both version 3.4 and 3.3.1) while Page Builder is active.

    Sorry!

    Thread Starter g.longo

    (@glongo-1)

    Hi Dave,
    thanks for your response.

    Trying to debug, I noticed that these lines (in file flexible-posts-widget.php) may be wrong, in fact, it generates some warning message ‘couse these variables should be arrays:

    protected $posttypes = ”;
    protected $pt_names = ”;
    protected $taxonomies = ”;
    protected $tax_names = ”;
    protected $thumbsizes = ”;
    protected $orderbys = ”;
    protected $orders = ”;
    protected $templates = ”;

    However, this problem is not regarding this post’s issue.

    Plugin Author DaveE

    (@dpe415)

    What version of PHP are you running? I’m on 5.5 and don’t get any errors or warnings related to those variables. They get populated (with array data if necessary) later in the code.

    The Site Builder issue is because Site Builder doesn’t use a standard Widgets code that my JavaScript needs to “hook” to. It’s the same issue WordPress core ran into with the Customizer widgets panel a while back. In the end, the Customizer added a required ID to their HTML to allow widgets such as FPW to function properly. Page Builder would need to do the same to be compatible.

    Thread Starter g.longo

    (@glongo-1)

    PHP Version 5.3.29.

    For the warnings, I replaced with
    = array();
    in place of
    = ”;

    and warnings is gone.

    Thanks for clarifications about Site Builder issue.

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘Plugin does not maintain settings after 3.4 update’ is closed to new replies.