Home>Support>PHP Errors With Widgets Bundle

PHP Errors With Widgets Bundle

Hi guys,
I have installed page Builder and the Widgets Bundle plugins on a new website and Bulletproof Security Pro is showing the following PHP errors:

[BPS Pro htaccess Protected Secure PHP Error Log]

[25-Nov-2017 06:15:15 UTC] PHP Warning: Illegal string offset ‘post_type’ in /home/vngjmrpxykpy/public_html/wp-content/plugins/so-widgets-bundle/base/inc/fields/container-base.class.php on line 115
[25-Nov-2017 06:15:15 UTC] PHP Warning: Illegal string offset ‘post__in’ in /home/vngjmrpxykpy/public_html/wp-content/plugins/so-widgets-bundle/base/inc/fields/container-base.class.php on line 115
[25-Nov-2017 06:15:15 UTC] PHP Warning: Cannot assign an empty string to a string offset in /home/vngjmrpxykpy/public_html/wp-content/plugins/so-widgets-bundle/base/inc/fields/container-base.class.php on line 115
[25-Nov-2017 06:15:15 UTC] PHP Warning: Illegal string offset ‘tax_query’ in /home/vngjmrpxykpy/public_html/wp-content/plugins/so-widgets-bundle/base/inc/fields/container-base.class.php on line 115
[25-Nov-2017 06:15:15 UTC] PHP Warning: Cannot assign an empty string to a string offset in /home/vngjmrpxykpy/public_html/wp-content/plugins/so-widgets-bundle/base/inc/fields/container-base.class.php on line 115
[25-Nov-2017 06:15:15 UTC] PHP Warning: Illegal string offset ‘date_type’ in /home/vngjmrpxykpy/public_html/wp-content/plugins/so-widgets-bundle/base/inc/fields/container-base.class.php on line 115
[25-Nov-2017 06:15:15 UTC] PHP Warning: Illegal string offset ‘date_query’ in /home/vngjmrpxykpy/public_html/wp-content/plugins/so-widgets-bundle/base/inc/fields/container-base.class.php on line 115
[25-Nov-2017 06:15:15 UTC] PHP Warning: Illegal string offset ‘date_query_relative’ in /home/vngjmrpxykpy/public_html/wp-content/plugins/so-widgets-bundle/base/inc/fields/container-base.class.php on line 115
[25-Nov-2017 06:15:15 UTC] PHP Warning: Illegal string offset ‘orderby’ in /home/vngjmrpxykpy/public_html/wp-content/plugins/so-widgets-bundle/base/inc/fields/container-base.class.php on line 115
[25-Nov-2017 06:15:15 UTC] PHP Warning: Illegal string offset ‘order’ in /home/vngjmrpxykpy/public_html/wp-content/plugins/so-widgets-bundle/base/inc/fields/container-base.class.php on line 115
[25-Nov-2017 06:15:15 UTC] PHP Warning: Illegal string offset ‘posts_per_page’ in /home/vngjmrpxykpy/public_html/wp-content/plugins/so-widgets-bundle/base/inc/fields/container-base.class.php on line 115
[25-Nov-2017 06:15:15 UTC] PHP Warning: Illegal string offset ‘sticky’ in /home/vngjmrpxykpy/public_html/wp-content/plugins/so-widgets-bundle/base/inc/fields/container-base.class.php on line 115
[25-Nov-2017 06:15:15 UTC] PHP Warning: Cannot assign an empty string to a string offset in /home/vngjmrpxykpy/public_html/wp-content/plugins/so-widgets-bundle/base/inc/fields/container-base.class.php on line 115
[25-Nov-2017 06:15:15 UTC] PHP Warning: Illegal string offset ‘additional’ in /home/vngjmrpxykpy/public_html/wp-content/plugins/so-widgets-bundle/base/inc/fields/container-base.class.php on line 115
[25-Nov-2017 06:15:15 UTC] PHP Warning: Cannot assign an empty string to a string offset in /home/vngjmrpxykpy/public_html/wp-content/plugins/so-widgets-bundle/base/inc/fields/container-base.class.php on line 115
[25-Nov-2017 06:15:15 UTC] PHP Warning: Invalid argument supplied for foreach() in /home/vngjmrpxykpy/public_html/wp-content/plugins/so-widgets-bundle/base/inc/fields/posts.class.php on line 176

They all look like coding errors to me. Any SO expert coders here who can tell me what is happening and how to fix the problems?

Terry

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

  1. 6 years, 10 months ago Alex S
    Hi, I Work Here

    Hi Terry,

    Based on the error message (and the location), it looks like the SiteOrigin Widgets Bundle Posts form field is being checked when no data is present. Do you happen to know the context of when thee errors occurred? I ask as I can’t seem to find reference to these issues in any of my test site logs and I can’t force the error to occur.

  2. 6 years, 10 months ago Terry Chadban

    Hi Alex,
    The Widget Bundle was activated but not configured or used, so that may be causing the problem? Maybe the code is not checking for valid entries before running?

    Interestingly there haven’t been any more PHP errors for the last two days, and in that time I still haven’t used any of the widgets but I have updated a few posts. That would indicate that the widget is checking for posts even when it isn’t being used?

    Terry

  3. 6 years, 10 months ago Alex S
    Hi, I Work Here

    Hi Terry,

    I just tried replicating this issue on a fresh WordPress install and couldn’t. Not too sure what’s happening here but this check should only happen when the post/page itself is saving. I just double checked the code and I can confirm this is the case. I’m really not too sure what’s going on here mate – sorry.

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